Skip to content

Commit

Permalink
Make sure to import the fallback version _first_
Browse files Browse the repository at this point in the history
  • Loading branch information
Caspar van Leeuwen committed Sep 24, 2024
1 parent c835884 commit 8eb5e25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
setuptools_scm_requirement = 'setuptools_scm>=4.0.0,<=4.1.2'
scm_dict = {'write_to': version_file_path, 'write_to_template': '__version__ "{version}"'}

# Add the fallback version to whatever was set for scm_dict
scm_dict['fallback_version'] = __version__

# if python_version < (3, 8):
# scm_dict = {'write_to': 'eessi/testsuite/_version.py'}
Expand All @@ -38,8 +36,10 @@
# scm_require = ['setuptools>=61', 'setuptools_scm>=8']
# scm_arg_key = "version_file"

# Add the fallback version to whatever was set for scm_dict
sys.path.append('.')
from eessi.testsuite import __version__
scm_dict['fallback_version'] = __version__

setuptools.setup(
# use_scm_version={scm_arg_key: 'eessi/testsuite/_version.py', 'fallback_version': __version__},
Expand Down

0 comments on commit 8eb5e25

Please sign in to comment.