Skip to content

Commit

Permalink
remove hardcoded version in win_setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
daringer committed Jun 8, 2021
1 parent bd5bb31 commit d52476f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions win_setup.py
Original file line number Diff line number Diff line change
@@ -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(
Expand All @@ -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),
Expand Down

0 comments on commit d52476f

Please sign in to comment.