Skip to content

add a fallback_version to the setuptools_scm configuration #4358

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 22, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"})