Skip to content

Commit 2bc8e33

Browse files
authored
use the fallback_version option to avoid errors on source checkouts (pydata#4358)
1 parent 43a2a4b commit 2bc8e33

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

setup.py

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
#!/usr/bin/env python
22
from setuptools import setup
33

4-
try:
5-
setup(use_scm_version=True)
6-
except LookupError as e:
7-
# .git has been removed, and this is not a package created by sdist
8-
# This is the case e.g. of a remote deployment with PyCharm Professional
9-
if not str(e).startswith("setuptools-scm was unable to detect version"):
10-
raise
11-
setup(version="999")
4+
setup(use_scm_version={"fallback_version": "999"})

0 commit comments

Comments
 (0)