From d52476f39e0c2335f5c0e543bf6a2e82cc7ca7bc Mon Sep 17 00:00:00 2001 From: Markus Meissner Date: Tue, 8 Jun 2021 11:30:59 +0200 Subject: [PATCH 1/2] remove hardcoded version in win_setup.py --- win_setup.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/win_setup.py b/win_setup.py index 5d7bce9e..cdd53511 100644 --- a/win_setup.py +++ b/win_setup.py @@ -1,7 +1,6 @@ +import pathlib from cx_Freeze import setup, Executable -# Dependencies are automatically detected, but it might need -# fine tuning. buildOptions = dict(packages = [], excludes = []) msiOptions = dict( @@ -15,8 +14,11 @@ Executable('nitropy.py', base=base) ] +__version_path__ = pathlib.Path(__file__).parent.resolve().absolute() / "pynitrokey" / "VERSION" +__version__ = open(__version_path__).read().strip() + setup(name='pynitrokey', - version = '0.4.2', + version = __version__, description = 'Nitrokey Python Tools', options = dict(build_exe = buildOptions, bdist_msi = msiOptions), From 1063820d490318dbe75c6a8e42144c990a4d65cc Mon Sep 17 00:00:00 2001 From: Markus Meissner Date: Tue, 8 Jun 2021 11:31:36 +0200 Subject: [PATCH 2/2] bump version to 0.4.3.1 --- pynitrokey/VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pynitrokey/VERSION b/pynitrokey/VERSION index 17b2ccd9..a0535ea1 100644 --- a/pynitrokey/VERSION +++ b/pynitrokey/VERSION @@ -1 +1 @@ -0.4.3 +0.4.3.1