Skip to content

Commit ab25ec0

Browse files
committed
Merge branch 'fix-versioning'
2 parents bd5bb31 + 1063820 commit ab25ec0

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

pynitrokey/VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.4.3
1+
0.4.3.1

win_setup.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1+
import pathlib
12
from cx_Freeze import setup, Executable
23

3-
# Dependencies are automatically detected, but it might need
4-
# fine tuning.
54
buildOptions = dict(packages = [], excludes = [])
65

76
msiOptions = dict(
@@ -15,8 +14,11 @@
1514
Executable('nitropy.py', base=base)
1615
]
1716

17+
__version_path__ = pathlib.Path(__file__).parent.resolve().absolute() / "pynitrokey" / "VERSION"
18+
__version__ = open(__version_path__).read().strip()
19+
1820
setup(name='pynitrokey',
19-
version = '0.4.2',
21+
version = __version__,
2022
description = 'Nitrokey Python Tools',
2123
options = dict(build_exe = buildOptions,
2224
bdist_msi = msiOptions),

0 commit comments

Comments
 (0)