|
3 | 3 | import os |
4 | 4 | import sys |
5 | 5 | import warnings |
6 | | -from typing import Type |
7 | 6 |
|
8 | | -import setuptools.command.egg_info as egg_info_cmd |
9 | 7 | from setuptools import setup |
10 | 8 |
|
11 | 9 | if os.name == "nt": |
|
25 | 23 | SETUP_DIR = os.path.dirname(__file__) |
26 | 24 | README = os.path.join(SETUP_DIR, "README.rst") |
27 | 25 |
|
28 | | -try: |
29 | | - import gittaggers |
30 | | - |
31 | | - Tagger: Type[egg_info_cmd.egg_info] = gittaggers.EggInfoFromGit |
32 | | -except ImportError: |
33 | | - Tagger = egg_info_cmd.egg_info |
34 | | - |
35 | 26 | NEEDS_PYTEST = {"pytest", "test", "ptr"}.intersection(sys.argv) |
36 | 27 | PYTEST_RUNNER = ["pytest-runner", "pytest-cov"] if NEEDS_PYTEST else [] |
37 | 28 | USE_MYPYC = False |
|
94 | 85 |
|
95 | 86 | setup( |
96 | 87 | name="cwltool", |
97 | | - version="3.1", |
98 | 88 | description="Common workflow language reference implementation", |
99 | 89 | long_description=open(README).read(), |
100 | 90 | long_description_content_type="text/x-rst", |
|
130 | 120 | "deps": ["galaxy-tool-util >= 22.1.2, <24", "galaxy-util <24"], |
131 | 121 | }, |
132 | 122 | python_requires=">=3.8, <4", |
133 | | - setup_requires=PYTEST_RUNNER, |
| 123 | + use_scm_version=True, |
| 124 | + setup_requires=PYTEST_RUNNER + ["setuptools_scm>=8.0.4,<9"], |
134 | 125 | test_suite="tests", |
135 | 126 | tests_require=[ |
136 | 127 | "bagit >= 1.6.4, < 1.9", |
|
142 | 133 | ], |
143 | 134 | entry_points={"console_scripts": ["cwltool=cwltool.main:run"]}, |
144 | 135 | zip_safe=True, |
145 | | - cmdclass={"egg_info": Tagger}, |
146 | 136 | classifiers=[ |
147 | 137 | "Development Status :: 5 - Production/Stable", |
148 | 138 | "Environment :: Console", |
|
0 commit comments