From 0fdfb53d001c7aba037de8c158b802601d62a785 Mon Sep 17 00:00:00 2001 From: clerie Date: Sun, 28 Oct 2018 12:26:00 +0100 Subject: [PATCH] Packaged module for PyPI --- LICENSE.txt => LICENSE | 0 mcuuid/__init__.py | 1 + mcuuid.py => mcuuid/mcuuid.py | 0 setup.py | 22 ++++++++++++++++++++++ test.py | 2 +- 5 files changed, 24 insertions(+), 1 deletion(-) rename LICENSE.txt => LICENSE (100%) create mode 100644 mcuuid/__init__.py rename mcuuid.py => mcuuid/mcuuid.py (100%) create mode 100644 setup.py diff --git a/LICENSE.txt b/LICENSE similarity index 100% rename from LICENSE.txt rename to LICENSE diff --git a/mcuuid/__init__.py b/mcuuid/__init__.py new file mode 100644 index 0000000..0b19565 --- /dev/null +++ b/mcuuid/__init__.py @@ -0,0 +1 @@ +name = "mcuuid" diff --git a/mcuuid.py b/mcuuid/mcuuid.py similarity index 100% rename from mcuuid.py rename to mcuuid/mcuuid.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..13323fe --- /dev/null +++ b/setup.py @@ -0,0 +1,22 @@ +import setuptools + +with open("README.md", "r") as fh: + long_description = fh.read() + +setuptools.setup( + name="mcuuid", + version="0.0.1", + author="Clemens Riese", + author_email="hallo@clerie.de", + description="Getting Minecraft Player Information from Mojang API.", + long_description=long_description, + long_description_content_type="text/markdown", + url="https://github.com/clerie/mcuuid", + packages=setuptools.find_packages(), + classifiers=[ + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 2" + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + ], +) diff --git a/test.py b/test.py index a307b50..092053b 100644 --- a/test.py +++ b/test.py @@ -1,5 +1,5 @@ ### Import our module -from mcuuid import GetPlayerData +from mcuuid.mcuuid import GetPlayerData ### Import some other necessary modules import sys