From 3cb922310a47f0a8e22eab9f800e40ed0bf5b643 Mon Sep 17 00:00:00 2001 From: Jeppe Klitgaard Date: Wed, 1 Apr 2015 17:38:14 +0200 Subject: [PATCH] Setup.py and versioning --- minecraft/__init__.py | 7 +++++++ setup.py | 12 ++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 setup.py diff --git a/minecraft/__init__.py b/minecraft/__init__.py index e69de29..78fe4a4 100644 --- a/minecraft/__init__.py +++ b/minecraft/__init__.py @@ -0,0 +1,7 @@ +""" +A modern, Python3-compatible, well-documented library for communicating +with a MineCraft server. +""" +__version__ = "0.0.1" +MINECRAFT_VERSION = "1.8.3" +PROTOCOL_VERSION = 47 diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..a140730 --- /dev/null +++ b/setup.py @@ -0,0 +1,12 @@ +from distutils.core import setup +from minecraft import __version__ + +MAIN_AUTHORS = ["Ammar Askar ", + "Jeppe Klitgaard "] + +setup(name="minecraft", + version=__version__, + description="Python MineCraft library", + author=", ".join(MAIN_AUTHORS), + packages=["minecraft"] + )