diff options
| author | Daniel Holth <dholth@fastmail.fm> | 2013-07-19 12:02:49 -0400 |
|---|---|---|
| committer | Daniel Holth <dholth@fastmail.fm> | 2013-07-19 12:02:49 -0400 |
| commit | 7fcf9c12e0008988cc9c1154c55fd017c3b9cfba (patch) | |
| tree | 5a623d398f5832cc11610c4b408bc4ab717462d0 /setup.py | |
| parent | 2013d3c55f0140206d9d2f1c0a1a1e717bbdc5f1 (diff) | |
| download | wheel-git-7fcf9c12e0008988cc9c1154c55fd017c3b9cfba.tar.gz | |
implement pydist.schema rename
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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=[ |
