From 7e6f39aecff17ca24820a97882dfe66b4d0b2197 Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Thu, 23 May 2024 00:36:27 +0200 Subject: [PATCH] Renamed package to simpler distribution --- setup.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index e269613..8f9f983 100644 --- a/setup.py +++ b/setup.py @@ -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)