Skip to content

Commit

Permalink
Use scm_dict in setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Caspar van Leeuwen committed Sep 24, 2024
1 parent 4b80f96 commit c835884
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
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'}
# scm_require = ['packaging<=21.3', 'setuptools_scm<7']
Expand All @@ -39,7 +42,7 @@
from eessi.testsuite import __version__

setuptools.setup(
use_scm_version={scm_arg_key: 'eessi/testsuite/_version.py', 'fallback_version': __version__},
# use_scm_version=scm_dict,
# use_scm_version={scm_arg_key: 'eessi/testsuite/_version.py', 'fallback_version': __version__},
use_scm_version=scm_dict,
setup_requires=[setuptools_scm_requirement],
)

0 comments on commit c835884

Please sign in to comment.