Compare commits
2 Commits
aa925275f1
...
7e6f39aecf
Author | SHA1 | Date | |
---|---|---|---|
7e6f39aecf | |||
66ccc7dc3f |
6
setup.py
6
setup.py
|
@ -3,15 +3,13 @@ import re
|
||||||
|
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
PACKAGE_NAME = 'socials-util'
|
PACKAGE_NAME = 'socials_util'
|
||||||
|
|
||||||
PACKAGE_PATH = PACKAGE_NAME.replace('-', '_')
|
|
||||||
|
|
||||||
|
|
||||||
with open('README.md') as f:
|
with open('README.md') as f:
|
||||||
readme = f.read()
|
readme = f.read()
|
||||||
|
|
||||||
with open(PACKAGE_PATH + '/_version.py') as f:
|
with open(PACKAGE_NAME + '/_version.py') as f:
|
||||||
text = f.read()
|
text = f.read()
|
||||||
match = re.match(r'^__version__\s*=\s*(["\'])([\d\.]+)\1$', text)
|
match = re.match(r'^__version__\s*=\s*(["\'])([\d\.]+)\1$', text)
|
||||||
version = match.group(2)
|
version = match.group(2)
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
__version__ = '0.1.2'
|
__version__ = '0.1.3'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user