-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
executable file
·90 lines (81 loc) · 2.4 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
82
83
84
85
86
87
88
89
90
# -*- coding: utf-8 -*-
"""Package qacode module can be installed and configured from here"""
from os import path
from setuptools import setup, find_packages
from sys import version_info
try:
from qautils.files import read
except ImportError:
raise Exception("Please, install 'qautils' package: pip install qautils")
VERSION = "0.5.5"
CURR_PATH = "{}{}".format(path.abspath(path.dirname(__file__)), '/')
INSTALL_REQUIRES = [
'appdirs',
'packaging>=16.8',
'pyparsing',
'six==1.10.0',
'selenium==3.12.0',
'nose==1.3.7',
'nose-testconfig==0.10',
'pytest',
'qautils==0.0.2',
'qatestlink==0.1.0',
]
SETUP_REQUIRES = [
'pytest-runner',
'tox',
]
TESTS_REQUIRE = [
'pytest-html',
'pytest-dependency',
'coverage==4.3.4',
'pytest-cov==2.5.0',
'pytest-benchmark',
'pytest-benchmark[histogram]',
]
KEYWORDS = ['qacode', 'qa', 'testing', 'logging', 'functional', 'selenium', 'test']
GIT_URL = "https://github.com/netzulo/qacode"
GIT_URL_DOWNLOAD = "{}/tarball/v{}".format(GIT_URL, VERSION)
LICENSE_FILE = read(
file_path=CURR_PATH,
file_name="LICENSE",
is_encoding=False,
ignore_raises=True)
README_FILE = read(
file_path=CURR_PATH,
file_name="README.rst")
def get_install_requires():
"""Get a list of pypi python package dependencies
Returns:
list -- list of dependecy package names
"""
if version_info <= (3, 4):
INSTALL_REQUIRES.append('enum34')
return INSTALL_REQUIRES
setup(
name='qacode',
version=VERSION,
license=LICENSE_FILE,
packages=find_packages(exclude=['tests']),
description='Main automation lib',
long_description=README_FILE,
author='Netzulo Open Source',
author_email='netzuleando@gmail.com',
url=GIT_URL,
download_url=GIT_URL_DOWNLOAD,
keywords=KEYWORDS,
install_requires=get_install_requires(),
setup_requires=SETUP_REQUIRES,
tests_require=TESTS_REQUIRE,
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
],
)