We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c8cf5c commit 1c27be3Copy full SHA for 1c27be3
setup.py
@@ -9,12 +9,9 @@
9
with open(os.path.join(os.path.dirname(__file__), "README.rst")) as readme:
10
LONG_DESCRIPTION = readme.read()
11
12
-# https://packaging.python.org/en/latest/single_source_version.html
13
-try:
14
- execfile('fastjsonschema/version.py')
15
-except NameError:
16
- exec(open('fastjsonschema/version.py').read())
17
-
+# https://packaging.python.org/en/latest/guides/single-sourcing-package-version/
+with open(os.path.join(os.path.dirname(__file__), "fastjsonschema", "version.py")) as versionFile:
+ VERSION = versionFile.read().split("'")[1]
18
19
setup(
20
name='fastjsonschema',
0 commit comments