|
40 | 40 | requirements.append('sphinxcontrib-websupport') |
41 | 41 | requirements.append('Pygments') |
42 | 42 |
|
43 | | -version = '' |
44 | | -with open('wavelink/__init__.py') as f: |
45 | | - version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE).group(1) |
46 | | - |
47 | | -if not version: |
48 | | - raise RuntimeError('version is not set') |
49 | | - |
50 | | -if version.endswith(('a', 'b', 'rc')): |
51 | | - # append version identifier based on commit count |
52 | | - try: |
53 | | - import subprocess |
54 | | - p = subprocess.Popen(['git', 'rev-list', '--count', 'HEAD'], |
55 | | - stdout=subprocess.PIPE, stderr=subprocess.PIPE) |
56 | | - out, err = p.communicate() |
57 | | - if out: |
58 | | - version += out.decode('utf-8').strip() |
59 | | - p = subprocess.Popen(['git', 'rev-parse', '--short', 'HEAD'], |
60 | | - stdout=subprocess.PIPE, stderr=subprocess.PIPE) |
61 | | - out, err = p.communicate() |
62 | | - if out: |
63 | | - version += '+' + out.decode('utf-8').strip() |
64 | | - except Exception: |
65 | | - pass |
66 | | - |
67 | | -if not version: |
68 | | - raise RuntimeError('version is not set') |
| 43 | +version = '0.1.70' |
69 | 44 |
|
70 | 45 | readme = '' |
71 | 46 | with open('README.rst') as f: |
|
82 | 57 | include_package_data=True, |
83 | 58 | install_requires=requirements, |
84 | 59 | classifiers=[ |
85 | | - 'Development Status :: 1 - Alpha', |
86 | 60 | 'License :: OSI Approved :: MIT License', |
87 | 61 | 'Intended Audience :: Developers', |
88 | 62 | 'Natural Language :: English', |
|
0 commit comments