Add version file

This commit is contained in:
Eren Dogan 2023-02-07 10:30:48 -08:00
parent aea39e8c82
commit 78e84ee8df
5 changed files with 17 additions and 13 deletions

View File

@ -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

1
VERSION Normal file
View File

@ -0,0 +1 @@
1.2.1

View File

@ -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"

View File

@ -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"

View File

@ -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,