]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
setup: Don't repeat version number in setup.py
authorBen Darnell <ben@bendarnell.com>
Wed, 2 Jan 2019 03:43:10 +0000 (22:43 -0500)
committerBen Darnell <ben@bendarnell.com>
Wed, 2 Jan 2019 03:43:10 +0000 (22:43 -0500)
setup.py

index 38c40c2a5d92dea4cba5d19592e833af6c22da3a..62a952ec5de46bfd5bd52154833fa3d729962ecb 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -111,7 +111,10 @@ MacOS users should run:
 
 kwargs = {}
 
-version = "6.0.dev1"
+with open("tornado/__init__.py") as f:
+    ns = {}
+    exec(f.read(), ns)
+    version = ns["version"]
 
 with open("README.rst") as f:
     kwargs["long_description"] = f.read()