-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
81 lines (70 loc) · 2.05 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import codecs
import os
from setuptools import setup, find_packages
# abspath here because setup.py may be __main__, in which case
# __file__ is not guaranteed to be absolute
here = os.path.abspath(os.path.dirname(__file__))
def read_file(filename):
"""Open a related file and return its content."""
with codecs.open(os.path.join(here, filename), encoding='utf-8') as f:
content = f.read()
return content
README = read_file('README.rst')
CHANGELOG = read_file('CHANGELOG.rst')
CONTRIBUTORS = read_file('CONTRIBUTORS.rst')
REQUIREMENTS = [
'aiohttp',
'click',
'texttable',
]
UVLOOP_REQUIRES = [
'uvloop',
]
PERFORMANCE_REQUIRES = [
'cchardet',
'aiodns',
]
DEVELOPMENT_REQUIRES = [
'pycodestyle==2.6.0', # version pin for flake8 and prospector
'pylint==2.5.2',
'autopep8',
'flake8',
'ipython',
'prospector[with_pyroma]',
'zest.releaser',
]
ENTRY_POINTS = {
'console_scripts': [
'pmxc = pmxc.__main__:cli'
]
}
setup(name='pmxc',
version='5.2.0.0.dev0',
description='',
long_description='{}\n\n{}\n\n{}'.format(
README, CHANGELOG, CONTRIBUTORS),
license='MIT',
classifiers=[
'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',
'License :: OSI Approved :: MIT License',
],
keywords='Console Proxmox PVE',
author='René Jochum',
author_email='[email protected]',
url='https://git.lxch.eu/pcdummy/pmxc-py',
packages=find_packages(),
package_data={'': ['*.rst', '*.py', '*.yaml']},
include_package_data=True,
zip_safe=False,
install_requires=REQUIREMENTS,
extras_require={
'development': DEVELOPMENT_REQUIRES,
'performance': PERFORMANCE_REQUIRES,
'uvloop': UVLOOP_REQUIRES,
},
entry_points=ENTRY_POINTS)