summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorDaniel Holth <dholth@fastmail.fm>2013-07-19 12:02:49 -0400
committerDaniel Holth <dholth@fastmail.fm>2013-07-19 12:02:49 -0400
commit7fcf9c12e0008988cc9c1154c55fd017c3b9cfba (patch)
tree5a623d398f5832cc11610c4b408bc4ab717462d0 /setup.py
parent2013d3c55f0140206d9d2f1c0a1a1e717bbdc5f1 (diff)
downloadwheel-git-7fcf9c12e0008988cc9c1154c55fd017c3b9cfba.tar.gz
implement pydist.schema rename
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index d4b06c2..274b662 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,4 @@
-import os, sys, codecs
+import os.path, sys, codecs, re
from setuptools import setup
@@ -6,6 +6,10 @@ here = os.path.abspath(os.path.dirname(__file__))
README = codecs.open(os.path.join(here, 'README.txt'), encoding='utf8').read()
CHANGES = codecs.open(os.path.join(here, 'CHANGES.txt'), encoding='utf8').read()
+with codecs.open(os.path.join(os.path.dirname(__file__), 'wheel', '__init__.py'),
+ encoding='utf8') as version_file:
+ metadata = dict(re.findall(r"""__([a-z]+)__ = "([^"]+)""", version_file.read()))
+
#
# All these requirements are overridden by setup.cfg when wheel is built
# as a wheel:
@@ -18,7 +22,7 @@ if sys.version_info[:2] < (2, 7):
install_requires.append('argparse')
setup(name='wheel',
- version='0.18.0',
+ version=metadata['version'],
description='A built-package format for Python.',
long_description=README + '\n\n' + CHANGES,
classifiers=[