This commit is contained in:
parent
64e279e64e
commit
c4f320b251
6
setup.py
6
setup.py
|
@ -8,7 +8,9 @@ PACKAGE_NAME = 'socials-util'
|
||||||
with open('README.md') as f:
|
with open('README.md') as f:
|
||||||
readme = f.read()
|
readme = f.read()
|
||||||
|
|
||||||
with open(PACKAGE_NAME.replace('-', '_') + '/_version.py') as f:
|
PACKAGE_PATH = PACKAGE_NAME.replace('-', '_')
|
||||||
|
|
||||||
|
with open(PACKAGE_PATH + '/_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)
|
||||||
|
@ -37,6 +39,6 @@ setup(
|
||||||
author='Jmaa',
|
author='Jmaa',
|
||||||
author_email='jonjmaa@gmail.com',
|
author_email='jonjmaa@gmail.com',
|
||||||
url='https://gitfub.space/Jmaa/' + PACKAGE_NAME,
|
url='https://gitfub.space/Jmaa/' + PACKAGE_NAME,
|
||||||
packages=[PACKAGE_NAME],
|
packages=[PACKAGE_PATH],
|
||||||
install_requires=install_requires,
|
install_requires=install_requires,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user