From 2720991a125231cf7ac7881388c56d80b2584c94 Mon Sep 17 00:00:00 2001 From: clerie Date: Sun, 28 Oct 2018 12:41:27 +0100 Subject: [PATCH] Improved package handling --- README.md | 2 +- mcuuid/__init__.py | 1 + setup.py | 2 +- test.py | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0a58da2..48450cf 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Getting Minecraft Player Information from Mojang API. ## Usage -1. Add the mcuuid.py file to your Python path. +1. `pip install mcuuid` OR add the mcuuid.py file to your Python path. 2. Use the module like this: ``` diff --git a/mcuuid/__init__.py b/mcuuid/__init__.py index 0b19565..7ac2211 100644 --- a/mcuuid/__init__.py +++ b/mcuuid/__init__.py @@ -1 +1,2 @@ name = "mcuuid" +from mcuuid import GetPlayerData diff --git a/setup.py b/setup.py index 91f514f..dba7f0a 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ with open("README.md", "r") as fh: setuptools.setup( name="mcuuid", - version="0.0.1", + version="0.1", author="Clemens Riese", author_email="hallo@clerie.de", description="Getting Minecraft Player Information from Mojang API.", diff --git a/test.py b/test.py index 092053b..a307b50 100644 --- a/test.py +++ b/test.py @@ -1,5 +1,5 @@ ### Import our module -from mcuuid.mcuuid import GetPlayerData +from mcuuid import GetPlayerData ### Import some other necessary modules import sys