forked from monero-ecosystem/monero-python
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
59 lines (52 loc) · 2 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
56
57
58
59
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
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('sumokoin', '__init__.py')
setup(
name = 'sumokoin',
version = version,
description = 'A comprehensive Python module for handling Sumokoin cryptocurrency',
url = 'https://github.com/sumoprojects/sumokoin-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(),
setup_requires=[
'pytest-runner',
],
packages = find_packages('.', exclude=['tests']),
include_package_data = True,
author = 'Michał Sałaban',
author_email = '[email protected]',
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 :: 2.7',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Software Development :: Libraries :: Python Modules',
],
keywords = 'sumokoin cryptocurrency',
test_suite='tests',
)