Skip to content
This repository was archived by the owner on Apr 5, 2025. It is now read-only.

Commit 2016fdc

Browse files
committed
Update versioning...
1 parent a3057bd commit 2016fdc

File tree

2 files changed

+2
-28
lines changed

2 files changed

+2
-28
lines changed

setup.py

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -40,32 +40,7 @@
4040
requirements.append('sphinxcontrib-websupport')
4141
requirements.append('Pygments')
4242

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'
6944

7045
readme = ''
7146
with open('README.rst') as f:
@@ -82,7 +57,6 @@
8257
include_package_data=True,
8358
install_requires=requirements,
8459
classifiers=[
85-
'Development Status :: 1 - Alpha',
8660
'License :: OSI Approved :: MIT License',
8761
'Intended Audience :: Developers',
8862
'Natural Language :: English',

wavelink/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
__author__ = 'EvieePy'
33
__license__ = 'MIT'
44
__copyright__ = 'Copyright 2019 (c) EvieePy'
5-
__version__ = '0.0.70a'
5+
__version__ = '0.1.70a'
66

77
from .client import Client
88
from .errors import *

0 commit comments

Comments
 (0)