Renamed package to simpler distribution
This commit is contained in:
parent
66ccc7dc3f
commit
7e6f39aecf
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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user