diff options
author | Tristan Gingold <tgingold@free.fr> | 2023-03-17 08:02:02 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2023-03-17 08:02:02 +0100 |
commit | db9d2b8196cb642eb7b3a5ee34ed7f317848ff55 (patch) | |
tree | 61fb639835476ba9ed6ac490d57065c4d1339c57 | |
parent | d6ccf3815f88ba0b51a8efa6b421dceecff9c43b (diff) | |
download | ghdl-db9d2b8196cb642eb7b3a5ee34ed7f317848ff55.tar.gz ghdl-db9d2b8196cb642eb7b3a5ee34ed7f317848ff55.tar.bz2 ghdl-db9d2b8196cb642eb7b3a5ee34ed7f317848ff55.zip |
standalone wheels: put date in development versions
-rw-r--r-- | Makefile.in | 3 | ||||
-rw-r--r-- | pyGHDL/__init__.py | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in index 34382f004..a0a949ff3 100644 --- a/Makefile.in +++ b/Makefile.in @@ -667,11 +667,14 @@ uninstall.vhdllib: ####################### pyGHDL standalone ################################ setup-standalone.py: $(srcdir)/setup-standalone.in +# Replace #@__init__ with the variables from __init__.py + case "$(ghdl_version)" in *dev*) version="$(ghdl_version).$$(date +%Y%m%d.%H%M)";; *) version="$(ghdl_version)";; esac; \ ( \ sed -n -e '1,/^#@__init__/p' < $<; \ sed -n -e '/__author__/,/^$$/p' < $(srcdir)/pyGHDL/__init__.py; \ echo 'srcdir = "$(srcdir)"' ; \ echo 'soext = "$(SOEXT)"'; \ + echo __version__ = \"$$version\"; \ sed -n -e '/^#@__init__/,$$p' < $< ; \ ) > $@ diff --git a/pyGHDL/__init__.py b/pyGHDL/__init__.py index 600c35545..f6309cdf5 100644 --- a/pyGHDL/__init__.py +++ b/pyGHDL/__init__.py @@ -47,11 +47,13 @@ this is provided from a ``pyGHDL`` packages with four sub-packages: * :mod:`pyGHDL.lsp` - A :wikipedia:`language server protocol <Language_Server_Protocol>` (LSP) written in Python. The implementation offers an HTTPS service that can be used e.g. by editors and IDEs supporting LSP. """ + +__version__ = "4.0.0-dev" + __author__ = "Tristan Gingold and contributors" __email__ = "tgingold@free.fr" __copyright__ = "2002-2023, Tristan Gingold and contributors" __license__ = "GNU General Public License v2" -__version__ = "4.0.0-dev" __keywords__ = ["vhdl", "parser", "compiler", "simulator", "ghdl"] from pyTooling.Decorators import export |