Skip to content

Commit

Permalink
use the fallback_version option to avoid errors on source checkouts (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
keewis authored Aug 22, 2020
1 parent 43a2a4b commit 2bc8e33
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
#!/usr/bin/env python
from setuptools import setup

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

0 comments on commit 2bc8e33

Please sign in to comment.