1
0

Renamed package to simpler distribution
All checks were successful
Python Package / Python-Test (push) Successful in 19s
Python Package / Python-Package (push) Successful in 21s

This commit is contained in:
Jon Michael Aanes 2024-05-23 00:36:27 +02:00
parent 66ccc7dc3f
commit 7e6f39aecf
Signed by: Jmaa
SSH Key Fingerprint: SHA256:Ab0GfHGCblESJx7JRE4fj4bFy/KRpeLhi41y4pF3sNA

View File

@ -3,15 +3,13 @@ import re
from setuptools import setup
PACKAGE_NAME = 'socials-util'
PACKAGE_PATH = PACKAGE_NAME.replace('-', '_')
PACKAGE_NAME = 'socials_util'
with open('README.md') as f:
readme = f.read()
with open(PACKAGE_PATH + '/_version.py') as f:
with open(PACKAGE_NAME + '/_version.py') as f:
text = f.read()
match = re.match(r'^__version__\s*=\s*(["\'])([\d\.]+)\1$', text)
version = match.group(2)