Skip to content

Commit

Permalink
Fixed compat for old pythons
Browse files Browse the repository at this point in the history
  • Loading branch information
Sylvain MARIE committed Mar 15, 2024
1 parent 9b6269a commit 561913c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ tests_require =
numpy
pandas
tabulate
pytest-cases>=2.3.0
pytest-cases>=2.3.0,<3.7
# for some reason these pytest dependencies were not declared in old versions of pytest
six;python_version<'3.6'
attr;python_version<'3.6'
Expand Down
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@
setup(
download_url=DOWNLOAD_URL,
use_scm_version={
"write_to": "pytest_harvest/_version.py"
"version_file": "pytest_harvest/_version.py",
# Custom template to avoid type hints and annotations (python <3.8)
"version_file_template": """# file generated by setuptools_scm
# don't change, don't track in version control
__version__ = version = '{version}'
__version_tuple__ = version_tuple = {version_tuple}
"""
}, # we can't put `use_scm_version` in setup.cfg yet unfortunately
)

0 comments on commit 561913c

Please sign in to comment.