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 d7f46ed commit 86ccac0Copy full SHA for 86ccac0
.gitignore
@@ -56,6 +56,8 @@ docs/_build/
56
# PyBuilder
57
target/
58
59
+
60
+django_admin_json_editor/version.py
61
.python-version
62
.venv
63
venv
setup.py
@@ -1,4 +1,6 @@
1
import os
2
+import re
3
4
from setuptools import setup
5
6
@@ -11,7 +13,8 @@
11
13
12
14
if os.path.exists(version_file):
15
with open(version_file, 'r') as fout:
- version = fout.read()
16
+ version_text = fout.read()
17
+ version = re.compile(r'.*__version__ = \'(.*?)\'', re.S).match(version_text).group(1)
18
else:
19
version = 'dev'
20
0 commit comments