forked from RedHatQE/pylero
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
61 lines (54 loc) · 2.01 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
import sys
from distutils.command.install import INSTALL_SCHEMES
from setuptools import setup
with open("README.md", "r") as handle:
LONG_DESCRIPTION = handle.read()
PACKAGE_NAME = "pylero"
CLI_NAME = "pylero-cmd"
# change the data dir to be the etc dir under the package dir
for scheme in list(INSTALL_SCHEMES.values()):
scheme['data'] = '%s/%s/etc' % (scheme['purelib'], PACKAGE_NAME)
install_requires_ = [
'click',
'pre-commit',
]
if sys.version_info >= (3, 0):
install_requires_.insert(0, 'suds-py3')
else:
install_requires_.insert(0, 'suds')
if __name__ == "__main__":
setup(
name=PACKAGE_NAME,
version='0.0.1',
description="Python SDK for Polarion",
long_description=LONG_DESCRIPTION,
long_description_content_type='text/markdown',
url="https://github.com/RedHatQE/pylero",
author="%s Developers" % PACKAGE_NAME,
author_email="[email protected]",
license='MIT',
package_dir={
PACKAGE_NAME: 'src/%s' % PACKAGE_NAME,
},
packages=[
PACKAGE_NAME,
PACKAGE_NAME+".cli",
],
scripts=[
'scripts/%s' % PACKAGE_NAME,
'scripts/%s' % CLI_NAME,
],
data_files=[
('', ['etc/%s/%s.cfg' % (PACKAGE_NAME, PACKAGE_NAME)])
],
install_requires=install_requires_,
classifiers=[
'Development Status :: 5 - Production/Stable', # Chose either "3 - Alpha", "4 - Beta" or "5 - Production/Stable" as the current state of your package
'Intended Audience :: Developers', # Define that your audience are developers
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: MIT License', # Again, pick a license
'Programming Language :: Python :: 3', #Specify which pyhton versions that you want to support
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.8',
]
)