Skip to content

Commit 8ef38a7

Browse files
authored
MNT: Remove version template
1 parent 7e7e4a6 commit 8ef38a7

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

setup.py

+1-13
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,5 @@
6565
print(DOCS_HELP)
6666
sys.exit(1)
6767

68-
VERSION_TEMPLATE = """
69-
# Note that we need to fall back to the hard-coded version if either
70-
# setuptools_scm can't be imported or setuptools_scm can't determine the
71-
# version, so we catch the generic 'Exception'.
72-
try:
73-
from setuptools_scm import get_version
74-
version = get_version(root='..', relative_to=__file__)
75-
except Exception:
76-
version = '{version}'
77-
""".lstrip()
78-
79-
setup(use_scm_version={'write_to': os.path.join('specreduce', 'version.py'),
80-
'write_to_template': VERSION_TEMPLATE},
68+
setup(use_scm_version={'write_to': os.path.join('specreduce', 'version.py')},
8169
ext_modules=get_extensions())

0 commit comments

Comments
 (0)