forked from monero-ecosystem/monero-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
55 lines (48 loc) · 1.92 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import codecs
import os
import re
from distutils.core import setup
from setuptools import find_packages
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")
setup(
name="monero",
version=version,
description="A comprehensive Python module for handling Monero cryptocurrency",
url="https://github.com/monero-ecosystem/monero-python/",
long_description=open("README.rst", "rb").read().decode("utf-8"),
install_requires=open("requirements.txt", "r").read().splitlines(),
tests_require=open("test_requirements.txt", "r").read().splitlines(),
packages=find_packages(".", exclude=["tests"]),
include_package_data=True,
author="Michał Sałaban",
author_email="michal@salaban.info",
license="BSD-3-Clause",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Software Development :: Libraries :: Python Modules",
],
keywords="monero cryptocurrency",
test_suite="tests",
)