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/*
|
include docker/*
|
||||||
recursive-include compiler *
|
recursive-include compiler *
|
||||||
recursive-include technology *
|
recursive-include technology *
|
||||||
|
include VERSION
|
||||||
exclude .DS_Store
|
exclude .DS_Store
|
||||||
exclude .idea
|
exclude .idea
|
||||||
exclude **/model_data
|
exclude **/model_data
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,8 @@ from openram import debug
|
||||||
from openram import options
|
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)
|
NAME = "OpenRAM v{}".format(VERSION)
|
||||||
USAGE = "sram_compiler.py [options] <config file>\nUse -h for help.\n"
|
USAGE = "sram_compiler.py [options] <config file>\nUse -h for help.\n"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,3 @@
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["setuptools"]
|
requires = ["setuptools"]
|
||||||
build-backend = "setuptools.build_meta"
|
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()
|
reqs = f.read().splitlines()
|
||||||
|
|
||||||
|
|
||||||
|
# Read version from file
|
||||||
|
version = open("VERSION", "r").read().rstrip()
|
||||||
|
|
||||||
|
|
||||||
# Call the setup to create the package
|
# Call the setup to create the package
|
||||||
setup(
|
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,
|
packages=packages,
|
||||||
package_dir=package_dir,
|
package_dir=package_dir,
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue