diff --git a/setup.py b/setup.py index de3710d2..3409d5f3 100644 --- a/setup.py +++ b/setup.py @@ -40,32 +40,7 @@ requirements.append('sphinxcontrib-websupport') requirements.append('Pygments') -version = '' -with open('wavelink/__init__.py') as f: - version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE).group(1) - -if not version: - raise RuntimeError('version is not set') - -if version.endswith(('a', 'b', 'rc')): - # append version identifier based on commit count - try: - import subprocess - p = subprocess.Popen(['git', 'rev-list', '--count', 'HEAD'], - stdout=subprocess.PIPE, stderr=subprocess.PIPE) - out, err = p.communicate() - if out: - version += out.decode('utf-8').strip() - p = subprocess.Popen(['git', 'rev-parse', '--short', 'HEAD'], - stdout=subprocess.PIPE, stderr=subprocess.PIPE) - out, err = p.communicate() - if out: - version += '+' + out.decode('utf-8').strip() - except Exception: - pass - -if not version: - raise RuntimeError('version is not set') +version = '0.1.70' readme = '' with open('README.rst') as f: @@ -82,7 +57,6 @@ include_package_data=True, install_requires=requirements, classifiers=[ - 'Development Status :: 1 - Alpha', 'License :: OSI Approved :: MIT License', 'Intended Audience :: Developers', 'Natural Language :: English', diff --git a/wavelink/__init__.py b/wavelink/__init__.py index 97a83c51..f203d494 100644 --- a/wavelink/__init__.py +++ b/wavelink/__init__.py @@ -2,7 +2,7 @@ __author__ = 'EvieePy' __license__ = 'MIT' __copyright__ = 'Copyright 2019 (c) EvieePy' -__version__ = '0.0.70a' +__version__ = '0.1.70a' from .client import Client from .errors import *