We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ba068a commit 5b59dcfCopy full SHA for 5b59dcf
setup.py
@@ -8,11 +8,11 @@
8
9
requires = ["Django", "django-import-export", "django-author"]
10
11
-version = subprocess.check_output(
12
- ["git", "describe", "--abbrev=0", "--tags"]
13
-).decode("utf-8").strip()
14
-
15
-if not version:
+try:
+ version = subprocess.check_output(
+ ["git", "describe", "--abbrev=0", "--tags"]
+ ).decode("utf-8").strip()
+except subprocess.CalledProcessError:
16
version = "0.dev" + datetime.datetime.now().strftime("%Y%m%d%H%M%S")
17
18
setup(
0 commit comments