-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathsetup.py
More file actions
85 lines (71 loc) · 2.29 KB
/
setup.py
File metadata and controls
85 lines (71 loc) · 2.29 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# -*- coding: utf-8 -*-
"""Packaging logic for beem."""
import codecs
import io
import os
import sys
from setuptools import setup
# Work around mbcs bug in distutils.
# http://bugs.python.org/issue10945
try:
codecs.lookup('mbcs')
except LookupError:
ascii = codecs.lookup('ascii')
codecs.register(lambda name, enc=ascii: {True: enc}.get(name == 'mbcs'))
VERSION = '0.2.3'
tests_require = ['mock >= 2.0.0', 'pytest', 'pytest-mock', 'parameterized']
requires = [
"beem",
"requests",
"six",
]
def write_version_py(filename):
"""Write version."""
cnt = """\"""THIS FILE IS GENERATED FROM beem SETUP.PY.\"""
version = '%(version)s'
"""
with open(filename, 'w') as a:
a.write(cnt % {'version': VERSION})
def get_long_description():
"""Generate a long description from the README file."""
descr = []
for fname in ('README.md',):
with io.open(fname, encoding='utf-8') as f:
descr.append(f.read())
return '\n\n'.join(descr)
if __name__ == '__main__':
# Rewrite the version file everytime
write_version_py('hiveengine/version.py')
setup(
name='hiveengine',
version=VERSION,
description='command line tool and python library for sending hive engine tokens',
long_description=get_long_description(),
author='Holger Nahrstaedt',
author_email='nahrstaedt@gmail.com',
maintainer='Holger Nahrstaedt',
maintainer_email='nahrstaedt@gmail.com',
keywords=['hive', 'tools', 'nft'],
packages=[
"hiveengine",
],
classifiers=[
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
],
install_requires=requires,
entry_points={
'console_scripts': [
'hiveengine=hiveengine.cli:cli',
],
},
include_package_data=True,
)