-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
34 lines (31 loc) · 1 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
from distutils.core import setup
from distutils.command.install import INSTALL_SCHEMES
PACKAGE_NAME = "pylarion"
CLI_NAME = "pylarion-cmd"
# change the data dir to be the etc dir under the package dir
for scheme in INSTALL_SCHEMES.values():
scheme['data'] = '%s/%s/etc' % (scheme['purelib'], PACKAGE_NAME)
if __name__ == "__main__":
setup(
name=PACKAGE_NAME,
version='0.0.1',
description="Python SDK for Polarion",
url="NONE", # FIXME: once it is public
author="%s Developers" % PACKAGE_NAME,
author_email="szacks@redhat.com",
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/newca.crt' % PACKAGE_NAME,
'etc/%s/%s.cfg' % (PACKAGE_NAME, PACKAGE_NAME)])
],
)