Skip to content

Commit

Permalink
Fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
Caspar van Leeuwen committed Sep 24, 2024
1 parent bf82ccc commit 503e070
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@
# Get setuptools version
# We control it when installing from pyproject.toml, but not when installing from setup.py / setup.cfg
# Check setuptools version
current_setuptools_version = pkg.resources.parse_version(pkg_resources.get_distribution("setuptools").version)
current_setuptools_version = pkg_resources.parse_version(pkg_resources.get_distribution("setuptools").version)

# Set the version requirement for setuptools_scm, depending on the combination of Python and setuptools version
if python_version >= (3, 8) and current_setuptools_version >= pgk.resources.parse_version("61.0.0"):
if python_version >= (3, 8) and current_setuptools_version >= pgk_resources.parse_version("61.0.0"):
setuptools_scm_requirement = 'setuptools_scm>8.0.0,<=8.1.0'
scm_arg_key = "version_file"
elif python_version >= (3, 7) and current_setuptools_version >= pkg.resources.parse_version("45.0.0"):
elif python_version >= (3, 7) and current_setuptools_version >= pkg_resources.parse_version("45.0.0"):
setuptools_scm_requirement = 'setuptools_scm>7.0.0,<=7.1.0'
scm_arg_key = "write_to"
elif python_version >= (3, 6) and current_setuptools_version >= pkg.resources.parse_version("45.0.0"):
elif python_version >= (3, 6) and current_setuptools_version >= pkg_resources.parse_version("45.0.0"):
setuptools_scm_requirement = 'setuptools_scm>=6.0.0,<=6.4.2'
scm_arg_key = "write_to"
elif python_version >= (3, 6) and current_setuptools_version >= pkg.resources.parse_version("42.0.0"):
elif python_version >= (3, 6) and current_setuptools_version >= pkg_resources.parse_version("42.0.0"):
setuptools_scm_requirement = 'setuptools_scm>=5.0.0,<=5.0.2'
scm_arg_key = "write_to"
elif python_version >= (3, 6) and current_setuptools_version >= pkg.resources.parse_version("34.4.0"):
elif python_version >= (3, 6) and current_setuptools_version >= pkg_resources.parse_version("34.4.0"):
setuptools_scm_requirement = 'setuptools_scm>=4.0.0,<=4.1.2'
scm_arg_key = "write_to"

Expand Down

0 comments on commit 503e070

Please sign in to comment.