1
0

Paths
All checks were successful
Python Package / Package (push) Successful in 19s

This commit is contained in:
Jon Michael Aanes 2024-04-01 00:40:20 +02:00
parent 64e279e64e
commit c4f320b251
Signed by: Jmaa
SSH Key Fingerprint: SHA256:Ab0GfHGCblESJx7JRE4fj4bFy/KRpeLhi41y4pF3sNA

View File

@ -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,
)