forked from 4au/AutoScripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
184 lines (179 loc) · 7.37 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
"""
The setup package to install SeleniumBase dependencies and plugins
(Uses selenium 3.x and is compatible with Python 2.7+ and Python 3.5+)
"""
from setuptools import setup, find_packages # noqa
import os
import sys
# this_directory = os.path.abspath(os.path.dirname(__file__))
# long_description = None
# total_description = None
# try:
# with open(os.path.join(this_directory, 'README.md'), 'rb') as f:
# total_description = f.read().decode('utf-8')
# description_lines = total_description.split('\n')
# long_description_lines = []
# for line in description_lines:
# if not line.startswith("<meta ") and not line.startswith("<link "):
# long_description_lines.append(line)
# long_description = "\n".join(long_description_lines)
# except IOError:
# long_description = 'Reliable Browser Automation & Testing Framework'
long_description = 'Reliable Browser Automation & Testing Framework'
if sys.argv[-1] == 'publish':
reply = None
input_method = input
if not sys.version_info[0] >= 3:
input_method = raw_input # noqa
reply = str(input_method(
'>>> Confirm release PUBLISH to PyPI? (yes/no): ')).lower().strip()
if reply == 'yes':
print("\n*** Checking code health with flake8:\n")
flake8_status = os.system("flake8 --exclude=temp")
if flake8_status != 0:
print("\nWARNING! Fix flake8 issues before publishing to PyPI!\n")
sys.exit()
else:
print("*** No flake8 issues detected. Continuing...")
print("\n*** Rebuilding distribution packages: ***\n")
os.system('rm -f dist/*.egg; rm -f dist/*.tar.gz; rm -f dist/*.whl')
os.system('python setup.py sdist bdist_wheel') # Create new tar/wheel
print("\n*** Installing twine: *** (Required for PyPI uploads)\n")
os.system("python -m pip install 'twine>=1.15.0'")
print("\n*** Installing tqdm: *** (Required for PyPI uploads)\n")
os.system("python -m pip install 'tqdm>=4.47.0'")
print("\n*** Publishing The Release to PyPI: ***\n")
os.system('python -m twine upload dist/*') # Requires ~/.pypirc Keys
print("\n*** The Release was PUBLISHED SUCCESSFULLY to PyPI! :) ***\n")
else:
print("\n>>> The Release was NOT PUBLISHED to PyPI! <<<\n")
sys.exit()
setup(
name='seleniumbase',
version='1.42.4',
description='Fast, Easy, and Reliable Browser Automation & Testing.',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/seleniumbase/SeleniumBase',
platforms=["Windows", "Linux", "Mac OS-X"],
author='Michael Mintz',
author_email='mdmintz@gmail.com',
maintainer='Michael Mintz',
license="MIT",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Framework :: Pytest",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Topic :: Internet",
"Topic :: Scientific/Engineering",
"Topic :: Software Development",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Testing :: Acceptance",
"Topic :: Software Development :: Testing :: Traffic Generation",
"Topic :: Utilities",
],
install_requires=[
'pip>=20.1.1',
'packaging>=20.4',
'setuptools>=44.1.1;python_version<"3.5"',
'setuptools>=47.3.1;python_version>="3.5"',
'setuptools-scm',
'wheel',
'six',
'nose',
'ipdb',
'idna==2.10', # Must stay in sync with "requests"
'chardet==3.0.4', # Must stay in sync with "requests"
'urllib3==1.25.9', # Must stay in sync with "requests"
'requests==2.24.0',
'selenium==3.141.0',
'pluggy==0.13.1',
'attrs>=19.3.0',
'py==1.8.1',
'pytest==4.6.11;python_version<"3.5"',
'pytest==5.4.3;python_version>="3.5"',
'pytest-cov==2.10.0',
'pytest-forked==1.2.0',
'pytest-html==1.22.1;python_version<"3.6"',
'pytest-html==2.0.1;python_version>="3.6"',
'pytest-metadata==1.8.0;python_version<"3.6"',
'pytest-metadata==1.10.0;python_version>="3.6"',
'pytest-ordering==0.6',
'pytest-rerunfailures==8.0;python_version<"3.6"',
'pytest-rerunfailures==9.0;python_version>="3.6"',
'pytest-xdist==1.32.0',
'parameterized==0.7.4',
'soupsieve==1.9.6;python_version<"3.5"',
'soupsieve==2.0.1;python_version>="3.5"',
'beautifulsoup4==4.9.1',
'cryptography==2.9.2',
'pyopenssl==19.1.0',
'pygments==2.5.2;python_version<"3.5"',
'pygments==2.6.1;python_version>="3.5"',
'colorama==0.4.3',
'brython>=3.8.9',
'pymysql==0.9.3',
'coverage==5.1',
'pyotp==2.3.0',
'boto==2.49.0',
'cffi==1.14.0',
'rich==3.0.2;python_version>="3.6" and python_version<"4.0"',
'flake8==3.7.9;python_version<"3.5"',
'flake8==3.8.3;python_version>="3.5"',
'pyflakes==2.1.1;python_version<"3.5"',
'pyflakes==2.2.0;python_version>="3.5"',
'certifi>=2020.6.20',
'pdfminer.six==20191110;python_version<"3.5"',
'pdfminer.six==20200517;python_version>="3.5"',
],
packages=[
'seleniumbase',
'seleniumbase.common',
'seleniumbase.config',
'seleniumbase.console_scripts',
'seleniumbase.core',
'seleniumbase.drivers',
'seleniumbase.extensions',
'seleniumbase.fixtures',
'seleniumbase.masterqa',
'seleniumbase.plugins',
'seleniumbase.translate',
'seleniumbase.utilities',
'seleniumbase.utilities.selenium_grid',
'seleniumbase.utilities.selenium_ide',
'seleniumbase.virtual_display',
],
include_package_data=True,
entry_points={
'console_scripts': [
'seleniumbase = seleniumbase.console_scripts.run:main',
'sbase = seleniumbase.console_scripts.run:main', # Simplified name
],
'nose.plugins': [
'base_plugin = seleniumbase.plugins.base_plugin:Base',
'selenium = seleniumbase.plugins.selenium_plugin:SeleniumBrowser',
'page_source = seleniumbase.plugins.page_source:PageSource',
'screen_shots = seleniumbase.plugins.screen_shots:ScreenShots',
'test_info = seleniumbase.plugins.basic_test_info:BasicTestInfo',
('db_reporting = '
'seleniumbase.plugins.db_reporting_plugin:DBReporting'),
's3_logging = seleniumbase.plugins.s3_logging_plugin:S3Logging',
],
'pytest11': ['seleniumbase = seleniumbase.plugins.pytest_plugin']
}
)
# print(os.system("cat seleniumbase.egg-info/PKG-INFO"))
print("\n*** SeleniumBase Installation Complete! ***\n")