From: Ben Darnell Date: Wed, 2 Jan 2019 03:43:10 +0000 (-0500) Subject: setup: Don't repeat version number in setup.py X-Git-Tag: v6.0.0b1~6^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32117141ea6060eb294851e9b1d3196aab85e480;p=thirdparty%2Ftornado.git setup: Don't repeat version number in setup.py --- diff --git a/setup.py b/setup.py index 38c40c2a5..62a952ec5 100644 --- 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()