From ab785edf37c2352cef0775a4653bb5e3252f7dc4 Mon Sep 17 00:00:00 2001 From: Dercilio <38219914+GGontijo@users.noreply.github.com> Date: Thu, 15 Sep 2022 17:30:43 -0400 Subject: [PATCH 1/2] Fixing module name folder --- build/lib/{src => PythonLoginAndRegister}/LogAndReg.py | 0 build/lib/PythonLoginAndRegister/__init__.py | 0 src/{ => PythonLoginAndRegister}/LogAndReg.py | 0 src/PythonLoginAndRegister/__init__.py | 0 4 files changed, 0 insertions(+), 0 deletions(-) rename build/lib/{src => PythonLoginAndRegister}/LogAndReg.py (100%) create mode 100644 build/lib/PythonLoginAndRegister/__init__.py rename src/{ => PythonLoginAndRegister}/LogAndReg.py (100%) create mode 100644 src/PythonLoginAndRegister/__init__.py diff --git a/build/lib/src/LogAndReg.py b/build/lib/PythonLoginAndRegister/LogAndReg.py similarity index 100% rename from build/lib/src/LogAndReg.py rename to build/lib/PythonLoginAndRegister/LogAndReg.py diff --git a/build/lib/PythonLoginAndRegister/__init__.py b/build/lib/PythonLoginAndRegister/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/src/LogAndReg.py b/src/PythonLoginAndRegister/LogAndReg.py similarity index 100% rename from src/LogAndReg.py rename to src/PythonLoginAndRegister/LogAndReg.py diff --git a/src/PythonLoginAndRegister/__init__.py b/src/PythonLoginAndRegister/__init__.py new file mode 100644 index 0000000..e69de29 From d73cf1d99b0e74c6d54d6e760ed01414aaa91cf4 Mon Sep 17 00:00:00 2001 From: Dercilio <38219914+GGontijo@users.noreply.github.com> Date: Thu, 15 Sep 2022 17:31:23 -0400 Subject: [PATCH 2/2] fixed long_desc and module information --- setup.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index e29b88b..94e9df4 100644 --- a/setup.py +++ b/setup.py @@ -1,14 +1,23 @@ -from setuptools import setup +import sys +from setuptools import find_packages, setup +from pathlib import Path +CURRENT_DIR = Path(__file__).parent +sys.path.insert(0, str(CURRENT_DIR)) +def get_long_description() -> str: + return ( + (CURRENT_DIR / "README.md").read_text(encoding="utf8") + ) setup(name='PythonLoginAndRegister', version='0.1', description='Basic Login and Registration in Python', - long_description=long_desc, + long_description=get_long_description(), url='https://github.com/coolhobo77/Python-Login-And-Register', author='coolhobo77', author_email='joshuaboddy1@gmail.com', license='MIT', - packages=['src'], + packages=['PythonLoginAndRegister'], + package_dir={"PythonLoginAndRegister": "src"}, zip_safe=False)