diff --git a/setup.py b/setup.py index 17d7009..d30528f 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,9 @@ PACKAGE_NAME = 'socials-util' with open('README.md') as f: 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() match = re.match(r'^__version__\s*=\s*(["\'])([\d\.]+)\1$', text) version = match.group(2) @@ -37,6 +39,6 @@ setup( author='Jmaa', author_email='jonjmaa@gmail.com', url='https://gitfub.space/Jmaa/' + PACKAGE_NAME, - packages=[PACKAGE_NAME], + packages=[PACKAGE_PATH], install_requires=install_requires, )