-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
58 lines (54 loc) · 1.56 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
from setuptools import setup, find_packages
from os.path import abspath, dirname, join
PROJECT_NAME = "PCC_QA_Regression"
SOURCE_PATH = "pcc_qa"
LICENSE = 'MIT'
SOURCE_DIR = join("src", SOURCE_PATH)
PROJECT_GIT_URL = "https://github.com/platinasystems/" + PROJECT_NAME
AUTHOR_NAME = "mplatina"
AUTHOR_EMAIL = "[email protected]"
DESCRIPTION = "Robot Framework Library"
KEYWORDS = [PROJECT_NAME]
CLASSIFIERS = '''
Programming Language :: Python :: 3
Framework :: Robot Framework
'''.strip().splitlines()
REQUIREMENTS = [
'robotframework',
'selenium',
'fabric',
'distro',
'datetime',
'requests >= 2.21',
'urllib3 >= 1.24'
]
CURRENT_DIR = dirname(abspath(__file__))
with open(join(CURRENT_DIR, SOURCE_DIR, '__init__.py')) as init_py:
for line in init_py:
if line.startswith("__version__"):
VERSION = line.strip().split("=")[1].strip(" '\"")
break
else:
VERSION = "1.0.0"
DOWNLOAD_URL = PROJECT_GIT_URL + "/archive/master.zip"
setup(
name = PROJECT_NAME,
package_dir={'': 'src'},
packages= find_packages(where="src"),
scripts=[
join(SOURCE_DIR, 'scripts', 'run-pcc_qa.sh')
],
version = VERSION,
license = LICENSE,
author = AUTHOR_NAME,
author_email = AUTHOR_EMAIL,
description = DESCRIPTION,
url = PROJECT_GIT_URL,
download_url = DOWNLOAD_URL,
keywords = KEYWORDS,
install_requires = REQUIREMENTS,
classifiers = CLASSIFIERS,
data_files=[
('robot', ['src/' + SOURCE_PATH + "/robot/pcc_resources.robot"])
]
)