forked from RedHatQE/pylero
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
46 lines (40 loc) · 1.18 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
from setuptools import setup
from distutils.command.install import INSTALL_SCHEMES
import sys
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',
'requests>=2.6.0',
]
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",
url="https://github.com/RedHatQE/pylero",
author="%s Developers" % PACKAGE_NAME,
author_email="[email protected]",
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_
)