From 218d3dc36f0d4d66c88ca34dfd60a8e423a67ae1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sa=C5=82aban?= Date: Sun, 28 Jan 2018 15:53:52 +0100 Subject: [PATCH] Add packaging tools, clean up --- .gitignore | 3 +++ LICENSE => LICENSE.txt | 0 README.md | 14 -------------- README.rst | 16 ++++++++++++++++ requirements.txt | 1 - setup.py | 27 +++++++++++++++++++++++++++ 6 files changed, 46 insertions(+), 15 deletions(-) rename LICENSE => LICENSE.txt (100%) delete mode 100644 README.md create mode 100644 README.rst create mode 100644 setup.py diff --git a/.gitignore b/.gitignore index 63d71f5..77c604c 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,6 @@ docs/build/* .venv venv +build/ +dist/ +*.egg-info/ diff --git a/LICENSE b/LICENSE.txt similarity index 100% rename from LICENSE rename to LICENSE.txt diff --git a/README.md b/README.md deleted file mode 100644 index f3b9e18..0000000 --- a/README.md +++ /dev/null @@ -1,14 +0,0 @@ -Python Monero module -==================== - -A comprehensive Python module for handling Monero cryptocurrency. - -THIS CODE IS UNDER INTENSIVE DEVELOPMENT. Do not rely on the API, it may change. - -Copyrights ----------- - -Released under the BSD 3-Clause License. See [LICENSE](LICENSE). - -(c) 2017 Michał Sałaban -(c) 2016 The MoneroPy Developers (monero/base58.py taken from [MoneroPy](https://github.com/bigreddmachine/MoneroPy)) diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..309f692 --- /dev/null +++ b/README.rst @@ -0,0 +1,16 @@ +Python Monero module +==================== + +A comprehensive Python module for handling Monero cryptocurrency. + +Copyrights +---------- + +Released under the BSD 3-Clause License. See `LICENSE.txt`_. + +(c) 2017 Michał Sałaban + +(c) 2016 The MoneroPy Developers (``monero/base58.py`` taken from `MoneroPy`_) + +.. _`LICENSE.txt`: LICENSE.txt +.. _`MoneroPy`: https://github.com/bigreddmachine/MoneroPy diff --git a/requirements.txt b/requirements.txt index a1ac888..6828f74 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,2 @@ pysha3 requests - diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..55cd891 --- /dev/null +++ b/setup.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +from distutils.core import setup +from setuptools import find_packages + +version = __import__('monero').__version__ + +setup( + name = 'monero', + version = version, + description = 'A comprehensive Python module for handling Monero cryptocurrency', + url = 'https://github.com/emesik/monero-python/', + long_description = open('README.rst').read(), + install_requires = open('requirements.txt', 'r').read().splitlines(), + packages = find_packages(), + include_package_data = True, + author = 'Michał Sałaban', + author_email = 'michal@salaban.info', + license = 'BSD-3-Clause', + classifiers = [ + 'Development Status :: 2 - Pre-Alpha', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: BSD 3-Clause License', + 'Operating System :: OS Independent', + 'Programming Language :: Python', + ], + keywords = 'monero cryptocurrency', +)