wownero-python/setup.py

60 lines
2.0 KiB
Python
Raw Normal View History

2018-01-28 14:53:52 +00:00
# -*- coding: utf-8 -*-
2019-09-09 12:56:53 +01:00
from __future__ import unicode_literals
2018-06-06 10:14:00 +01:00
import codecs
import os
import re
2018-01-28 14:53:52 +00:00
from distutils.core import setup
2018-06-06 10:14:00 +01:00
2018-01-28 14:53:52 +00:00
from setuptools import find_packages
2018-06-06 10:14:00 +01:00
here = os.path.abspath(os.path.dirname(__file__))
def find_version(*parts):
"""
Figure out version number without importing the package.
https://packaging.python.org/guides/single-sourcing-package-version/
"""
with codecs.open(os.path.join(here, *parts), 'r', errors='ignore') as fp:
version_file = fp.read()
version_match = re.search(r"^__version__ = ['\"](.*)['\"]",
version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
version = find_version('monero', '__init__.py')
2018-01-28 14:53:52 +00:00
setup(
name = 'monero',
2018-01-28 14:53:52 +00:00
version = version,
description = 'A comprehensive Python module for handling Monero cryptocurrency',
2019-03-11 20:33:21 +00:00
url = 'https://github.com/monero-ecosystem/monero-python/',
2020-08-18 07:52:29 +01:00
long_description = open('README.md', 'rb').read().decode('utf-8'),
2018-01-28 14:53:52 +00:00
install_requires = open('requirements.txt', 'r').read().splitlines(),
tests_require=open('test_requirements.txt', 'r').read().splitlines(),
setup_requires=[
'pytest-runner',
],
2018-02-22 03:44:15 +00:00
packages = find_packages('.', exclude=['tests']),
2018-01-28 14:53:52 +00:00
include_package_data = True,
author = 'Michał Sałaban',
author_email = 'michal@salaban.info',
license = 'BSD-3-Clause',
classifiers = [
2019-01-03 18:03:33 +00:00
'Development Status :: 4 - Beta',
2018-01-28 14:53:52 +00:00
'Intended Audience :: Developers',
2018-01-28 20:17:44 +00:00
'License :: OSI Approved :: BSD License',
2018-01-28 14:53:52 +00:00
'Operating System :: OS Independent',
'Programming Language :: Python',
2019-01-03 18:03:33 +00:00
'Programming Language :: Python :: 2.7',
2018-06-29 19:41:23 +01:00
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
2019-10-30 01:44:37 +00:00
'Programming Language :: Python :: 3.8',
2019-01-03 18:03:33 +00:00
'Topic :: Software Development :: Libraries :: Python Modules',
2018-01-28 14:53:52 +00:00
],
keywords = 'monero cryptocurrency',
2018-01-30 08:43:08 +00:00
test_suite='tests',
2018-01-28 14:53:52 +00:00
)