forked from applitools/eyes.selenium.python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
91 lines (78 loc) · 2.82 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
91
import codecs
import os
import re
import sys
from os import path
from setuptools import setup
here = path.abspath(path.dirname(__file__))
def read(filename):
return codecs.open(path.join(here, filename), 'r', 'utf-8').read()
install_requires = [
'requests>=2.1.0',
'selenium>=2.53.0',
'Pillow>=5.0.0'
]
install_dev_requires = [
'bumpversion',
'flake8',
'flake8-import-order',
'flake8-bugbear']
install_testing_requires = [
'pytest >= 3.0.0',
'pytest-cov',
'pytest-xdist',
]
if sys.version_info < (3, 5):
# typing module was added as builtin in Python 3.5
install_requires.append('typing >= 3.5.2')
if sys.version_info > (3, 4):
# mypy could be ran only with Python 3
install_dev_requires.append('mypy')
# preventing ModuleNotFoundError caused by importing lib before installing deps
with open(os.path.join(os.path.abspath('.'), 'applitools/__version__.py'), 'r') as f:
try:
version = re.findall(r"^__version__ = '([^']+)'\r?$",
f.read(), re.M)[0]
except IndexError:
raise RuntimeError('Unable to determine version.')
setup(
name='eyes-selenium',
version=version,
packages=['applitools', 'applitools.core',
'applitools.selenium', 'applitools.utils'],
url='http://www.applitools.com',
license='Apache License, Version 2.0',
author='Applitools Team',
author_email='team@applitools.com',
description='Applitools Eyes SDK For Selenium Python WebDriver',
long_description=read('README.md'),
long_description_content_type='text/markdown',
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Testing"
],
keywords='applitools eyes selenium',
install_requires=install_requires,
extras_require={
'dev': install_dev_requires,
'testing': install_testing_requires,
},
package_data={
'': ['README.md', 'samples'],
'applitools': ['py.typed'],
},
project_urls={
'Bug Reports': 'https://github.com/applitools/eyes.selenium.python/issues',
'Selenium Python example': 'https://applitools.com/resources/tutorial/selenium/python#step-2',
'Python Appium native example': 'https://applitools.com/resources/tutorial/appium/native_python#step-2',
'Python Appium web example': 'https://applitools.com/resources/tutorial/appium/python#step-2',
'Source': 'https://github.com/applitools/eyes.selenium.python',
},
)