mirror of https://github.com/VLSIDA/OpenRAM.git
Add version file
This commit is contained in:
parent
aea39e8c82
commit
78e84ee8df
|
|
@ -6,6 +6,7 @@ include install_conda.sh
|
|||
include docker/*
|
||||
recursive-include compiler *
|
||||
recursive-include technology *
|
||||
include VERSION
|
||||
exclude .DS_Store
|
||||
exclude .idea
|
||||
exclude **/model_data
|
||||
|
|
|
|||
|
|
@ -22,7 +22,8 @@ from openram import debug
|
|||
from openram import options
|
||||
|
||||
|
||||
VERSION = "1.2.0"
|
||||
from openram import OPENRAM_HOME
|
||||
VERSION = open(OPENRAM_HOME + "/../VERSION").read().rstrip()
|
||||
NAME = "OpenRAM v{}".format(VERSION)
|
||||
USAGE = "sram_compiler.py [options] <config file>\nUse -h for help.\n"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,15 +1,3 @@
|
|||
[build-system]
|
||||
requires = ["setuptools"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "openram"
|
||||
version = "1.2.0"
|
||||
description = "An open-source static random access memory (SRAM) compiler"
|
||||
authors = [
|
||||
{ name="Matthew Guthaus", email="mrg@ucsc.edu" },
|
||||
]
|
||||
keywords = [ "sram", "magic", "gds", "netgen", "ngspice", "netlist" ]
|
||||
readme = "README.md"
|
||||
license = { text = "BSD-3-Clause License" }
|
||||
requires-python = ">=3.6"
|
||||
13
setup.py
13
setup.py
|
|
@ -48,8 +48,21 @@ with open("requirements.txt") as f:
|
|||
reqs = f.read().splitlines()
|
||||
|
||||
|
||||
# Read version from file
|
||||
version = open("VERSION", "r").read().rstrip()
|
||||
|
||||
|
||||
# Call the setup to create the package
|
||||
setup(
|
||||
name="openram",
|
||||
version=version,
|
||||
description="An open-source static random access memory (SRAM) compiler",
|
||||
url="https://openram.org/",
|
||||
author="Matthew Guthaus",
|
||||
author_email="mrg@ucsc.edu",
|
||||
keywords=[ "sram", "magic", "gds", "netgen", "ngspice", "netlist" ],
|
||||
readme="README.md",
|
||||
license="BSD-3",
|
||||
packages=packages,
|
||||
package_dir=package_dir,
|
||||
include_package_data=True,
|
||||
|
|
|
|||
Loading…
Reference in New Issue