Skip to content

Commit ef3b2d5

Browse files
committed
Refactor Python dependencies
1 parent bf97f34 commit ef3b2d5

File tree

2 files changed

+76
-74
lines changed

2 files changed

+76
-74
lines changed

requirements.txt

Lines changed: 35 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
pip>=21.3.1;python_version>="3.6" and python_version<"3.7"
1+
pip>=21.3.1;python_version<"3.7"
22
pip>=22.3.1;python_version>="3.7"
3-
packaging>=21.3;python_version>="3.6" and python_version<"3.7"
3+
packaging>=21.3;python_version<"3.7"
44
packaging>=23.0;python_version>="3.7"
5-
setuptools>=59.6.0;python_version>="3.6" and python_version<"3.7"
5+
setuptools>=59.6.0;python_version<"3.7"
66
setuptools>=65.7.0;python_version>="3.7"
7-
tomli>=1.2.3;python_version>="3.6" and python_version<"3.7"
7+
tomli>=1.2.3;python_version<"3.7"
88
tomli>=2.0.1;python_version>="3.7"
99
tqdm>=4.64.1
1010
wheel>=0.37.1;python_version<"3.7"
1111
wheel>=0.38.4;python_version>="3.7"
12-
attrs==22.1.0;python_version>="3.6" and python_version<"3.7"
12+
attrs==22.1.0;python_version<"3.7"
1313
attrs>=22.2.0;python_version>="3.7"
14-
PyYAML>=6.0;python_version>="3.6"
15-
certifi>=2022.12.7;python_version>="3.6"
16-
filelock>=3.4.1;python_version>="3.6" and python_version<"3.7"
14+
PyYAML>=6.0
15+
certifi>=2022.12.7
16+
filelock>=3.4.1;python_version<"3.7"
1717
filelock>=3.9.0;python_version>="3.7"
18-
platformdirs>=2.4.0;python_version>="3.6" and python_version<"3.7"
18+
platformdirs>=2.4.0;python_version<"3.7"
1919
platformdirs>=2.6.2;python_version>="3.7"
20-
pyparsing>=3.0.7;python_version>="3.6" and python_version<"3.7"
20+
pyparsing>=3.0.7;python_version<"3.7"
2121
pyparsing>=3.0.9;python_version>="3.7"
2222
six==1.16.0
23-
idna==3.4;python_version>="3.6"
24-
chardet==4.0.0;python_version>="3.6" and python_version<"3.7"
23+
idna==3.4
24+
chardet==4.0.0;python_version<"3.7"
2525
chardet==5.1.0;python_version>="3.7"
2626
charset-normalizer==2.0.12;python_version<"3.7"
2727
charset-normalizer==3.0.1;python_version>="3.7"
@@ -42,22 +42,22 @@ wsproto==1.2.0;python_version>="3.7"
4242
selenium==3.141.0;python_version<"3.7"
4343
selenium==4.7.2;python_version>="3.7"
4444
msedge-selenium-tools==3.141.3;python_version<"3.7"
45-
more-itertools==8.14.0;python_version>="3.6" and python_version<"3.7"
45+
more-itertools==8.14.0;python_version<"3.7"
4646
more-itertools==9.0.0;python_version>="3.7"
4747
cssselect==1.1.0;python_version<"3.7"
4848
cssselect==1.2.0;python_version>="3.7"
4949
sortedcontainers==2.4.0
50-
fasteners==0.17.3;python_version>="3.6" and python_version<"3.7"
50+
fasteners==0.17.3;python_version<"3.7"
5151
fasteners==0.18;python_version>="3.7"
5252
execnet==1.9.0
5353
iniconfig==1.1.1;python_version<"3.7"
5454
iniconfig==2.0.0;python_version>="3.7"
55-
pluggy==1.0.0;python_version>="3.6"
56-
py==1.11.0;python_version>="3.6"
55+
pluggy==1.0.0
56+
py==1.11.0
5757
pytest==7.0.1;python_version<"3.7"
5858
pytest==7.2.1;python_version>="3.7"
59-
pytest-forked==1.4.0;python_version>="3.6"
60-
pytest-html==2.0.1;python_version>="3.6"
59+
pytest-forked==1.4.0
60+
pytest-html==2.0.1
6161
pytest-metadata==1.11.0;python_version<"3.7"
6262
pytest-metadata==2.0.4;python_version>="3.7"
6363
pytest-ordering==0.6
@@ -70,39 +70,40 @@ sbvirtualdisplay==1.1.1
7070
behave==1.2.6
7171
parse==1.19.0
7272
parse-type==0.6.0
73-
soupsieve==2.3.2.post1;python_version>="3.6"
74-
beautifulsoup4==4.11.1;python_version>="3.6"
75-
cryptography==36.0.2;python_version>="3.6" and python_version<"3.7"
73+
soupsieve==2.3.2.post1
74+
beautifulsoup4==4.11.1
75+
cryptography==36.0.2;python_version<"3.7"
7676
cryptography==39.0.0;python_version>="3.7"
77-
pygments==2.14.0;python_version>="3.6"
78-
pyreadline3==3.4.1;platform_system=="Windows" and python_version>="3.6"
77+
pygments==2.14.0
78+
pyreadline3==3.4.1;platform_system=="Windows"
7979
tabcompleter==1.1.0
8080
pdbp==1.2.8
81-
colorama==0.4.5;python_version>="3.6" and python_version<"3.7"
81+
colorama==0.4.5;python_version<"3.7"
8282
colorama==0.4.6;python_version>="3.7"
8383
exceptiongroup==1.1.0;python_version>="3.7"
84-
importlib-metadata==4.2.0;python_version>="3.6" and python_version<"3.8"
84+
importlib-metadata==4.2.0;python_version<"3.8"
8585
pycparser==2.21
86-
pyotp==2.7.0;python_version>="3.6" and python_version<"3.7"
86+
pyotp==2.7.0;python_version<"3.7"
8787
pyotp==2.8.0;python_version>="3.7"
8888
cffi==1.15.1
89-
typing-extensions==4.1.1;python_version>="3.6" and python_version<"3.7"
89+
typing-extensions==4.1.1;python_version<"3.7"
9090
typing-extensions==4.4.0;python_version>="3.7" and python_version<"3.9"
91+
commonmark==0.9.1;python_version<"3.7"
9192
markdown-it-py==2.1.0;python_version>="3.7"
9293
mdurl==0.1.2;python_version>="3.7"
93-
rich==12.6.0;python_version>="3.6" and python_version<"3.7"
94+
rich==12.6.0;python_version<"3.7"
9495
rich==13.2.0;python_version>="3.7"
9596

9697
# --- Testing Requirements --- #
9798
# ("pip install -r requirements.txt" also installs this, but "pip install -e ." won't.)
9899

99-
coverage==6.2;python_version>="3.6" and python_version<"3.7"
100+
coverage==6.2;python_version<"3.7"
100101
coverage==7.0.5;python_version>="3.7"
101-
pytest-cov==4.0.0;python_version>="3.6"
102-
flake8==5.0.4;python_version>="3.6" and python_version<"3.9"
102+
pytest-cov==4.0.0
103+
flake8==5.0.4;python_version<"3.9"
103104
flake8==6.0.0;python_version>="3.9"
104-
mccabe==0.7.0;python_version>="3.6"
105-
pyflakes==2.5.0;python_version>="3.6" and python_version<"3.9"
105+
mccabe==0.7.0
106+
pyflakes==2.5.0;python_version<"3.9"
106107
pyflakes==3.0.1;python_version>="3.9"
107-
pycodestyle==2.9.1;python_version>="3.6" and python_version<"3.9"
108+
pycodestyle==2.9.1;python_version<"3.9"
108109
pycodestyle==2.10.0;python_version>="3.9"

setup.py

Lines changed: 41 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -122,30 +122,30 @@
122122
],
123123
python_requires=">=3.6",
124124
install_requires=[
125-
'pip>=21.3.1;python_version>="3.6" and python_version<"3.7"',
125+
'pip>=21.3.1;python_version<"3.7"',
126126
'pip>=22.3.1;python_version>="3.7"',
127-
'packaging>=21.3;python_version>="3.6" and python_version<"3.7"',
127+
'packaging>=21.3;python_version<"3.7"',
128128
'packaging>=23.0;python_version>="3.7"',
129-
'setuptools>=59.6.0;python_version>="3.6" and python_version<"3.7"',
129+
'setuptools>=59.6.0;python_version<"3.7"',
130130
'setuptools>=65.7.0;python_version>="3.7"',
131-
'tomli>=1.2.3;python_version>="3.6" and python_version<"3.7"',
131+
'tomli>=1.2.3;python_version<"3.7"',
132132
'tomli>=2.0.1;python_version>="3.7"',
133133
"tqdm>=4.64.1",
134134
'wheel>=0.37.1;python_version<"3.7"',
135135
'wheel>=0.38.4;python_version>="3.7"',
136-
'attrs==22.1.0;python_version>="3.6" and python_version<"3.7"',
136+
'attrs==22.1.0;python_version<"3.7"',
137137
'attrs>=22.2.0;python_version>="3.7"',
138-
'PyYAML>=6.0;python_version>="3.6"',
139-
'certifi>=2022.12.7;python_version>="3.6"',
140-
'filelock>=3.4.1;python_version>="3.6" and python_version<"3.7"',
138+
"PyYAML>=6.0",
139+
"certifi>=2022.12.7",
140+
'filelock>=3.4.1;python_version<"3.7"',
141141
'filelock>=3.9.0;python_version>="3.7"',
142-
'platformdirs>=2.4.0;python_version>="3.6" and python_version<"3.7"',
142+
'platformdirs>=2.4.0;python_version<"3.7"',
143143
'platformdirs>=2.6.2;python_version>="3.7"',
144-
'pyparsing>=3.0.7;python_version>="3.6" and python_version<"3.7"',
144+
'pyparsing>=3.0.7;python_version<"3.7"',
145145
'pyparsing>=3.0.9;python_version>="3.7"',
146146
"six==1.16.0",
147-
'idna==3.4;python_version>="3.6"', # Must stay in sync with "requests"
148-
'chardet==4.0.0;python_version>="3.6" and python_version<"3.7"',
147+
"idna==3.4",
148+
'chardet==4.0.0;python_version<"3.7"',
149149
'chardet==5.1.0;python_version>="3.7"', # Stay in sync with "requests"
150150
'charset-normalizer==2.0.12;python_version<"3.7"',
151151
'charset-normalizer==3.0.1;python_version>="3.7"', # Sync "requests"
@@ -166,22 +166,22 @@
166166
'selenium==3.141.0;python_version<"3.7"',
167167
'selenium==4.7.2;python_version>="3.7"',
168168
'msedge-selenium-tools==3.141.3;python_version<"3.7"',
169-
'more-itertools==8.14.0;python_version>="3.6" and python_version<"3.7"', # noqa: E501
169+
'more-itertools==8.14.0;python_version<"3.7"',
170170
'more-itertools==9.0.0;python_version>="3.7"',
171171
'cssselect==1.1.0;python_version<"3.7"',
172172
'cssselect==1.2.0;python_version>="3.7"',
173173
"sortedcontainers==2.4.0",
174-
'fasteners==0.17.3;python_version>="3.6" and python_version<"3.7"',
174+
'fasteners==0.17.3;python_version<"3.7"',
175175
'fasteners==0.18;python_version>="3.7"',
176176
"execnet==1.9.0",
177177
'iniconfig==1.1.1;python_version<"3.7"',
178178
'iniconfig==2.0.0;python_version>="3.7"',
179-
'pluggy==1.0.0;python_version>="3.6"',
180-
'py==1.11.0;python_version>="3.6"',
179+
"pluggy==1.0.0",
180+
"py==1.11.0",
181181
'pytest==7.0.1;python_version<"3.7"',
182182
'pytest==7.2.1;python_version>="3.7"',
183-
'pytest-forked==1.4.0;python_version>="3.6"',
184-
'pytest-html==2.0.1;python_version>="3.6"', # Newer ones had issues
183+
"pytest-forked==1.4.0",
184+
"pytest-html==2.0.1", # Newer ones had issues
185185
'pytest-metadata==1.11.0;python_version<"3.7"',
186186
'pytest-metadata==2.0.4;python_version>="3.7"',
187187
"pytest-ordering==0.6",
@@ -194,63 +194,64 @@
194194
"behave==1.2.6",
195195
"parse==1.19.0",
196196
"parse-type==0.6.0",
197-
'soupsieve==2.3.2.post1;python_version>="3.6"',
198-
'beautifulsoup4==4.11.1;python_version>="3.6"',
199-
'cryptography==36.0.2;python_version>="3.6" and python_version<"3.7"',
197+
"soupsieve==2.3.2.post1",
198+
"beautifulsoup4==4.11.1",
199+
'cryptography==36.0.2;python_version<"3.7"',
200200
'cryptography==39.0.0;python_version>="3.7"',
201-
'pygments==2.14.0;python_version>="3.6"',
202-
'pyreadline3==3.4.1;platform_system=="Windows" and python_version>="3.6"', # noqa: E501
201+
"pygments==2.14.0",
202+
'pyreadline3==3.4.1;platform_system=="Windows"',
203203
"tabcompleter==1.1.0",
204204
"pdbp==1.2.8",
205-
'colorama==0.4.5;python_version>="3.6" and python_version<"3.7"',
205+
'colorama==0.4.5;python_version<"3.7"',
206206
'colorama==0.4.6;python_version>="3.7"',
207207
'exceptiongroup==1.1.0;python_version>="3.7"',
208-
'importlib-metadata==4.2.0;python_version>="3.6" and python_version<"3.8"', # noqa: E501
208+
'importlib-metadata==4.2.0;python_version<"3.8"',
209209
"pycparser==2.21",
210-
'pyotp==2.7.0;python_version>="3.6" and python_version<"3.7"',
210+
'pyotp==2.7.0;python_version<"3.7"',
211211
'pyotp==2.8.0;python_version>="3.7"',
212212
"cffi==1.15.1",
213-
'typing-extensions==4.1.1;python_version>="3.6" and python_version<"3.7"', # noqa: E501
213+
'typing-extensions==4.1.1;python_version<"3.7"',
214214
'typing-extensions==4.4.0;python_version>="3.7" and python_version<"3.9"', # noqa: E501
215-
'markdown-it-py==2.1.0;python_version>="3.7"', # For "rich"
216-
'mdurl==0.1.2;python_version>="3.7"', # For "rich"
217-
'rich==12.6.0;python_version>="3.6" and python_version<"3.7"',
215+
'commonmark==0.9.1;python_version<"3.7"', # For old "rich"
216+
'markdown-it-py==2.1.0;python_version>="3.7"', # For new "rich"
217+
'mdurl==0.1.2;python_version>="3.7"', # For new "rich"
218+
'rich==12.6.0;python_version<"3.7"',
218219
'rich==13.2.0;python_version>="3.7"',
219220
],
220221
extras_require={
221222
# pip install -e .[coverage]
222223
# Usage: coverage run -m pytest; coverage html; coverage report
223224
"coverage": [
224-
'coverage==6.2;python_version>="3.6" and python_version<"3.7"',
225+
'coverage==6.2;python_version<"3.7"',
225226
'coverage==7.0.5;python_version>="3.7"',
226-
'pytest-cov==4.0.0;python_version>="3.6"',
227+
"pytest-cov==4.0.0",
227228
],
228229
# pip install -e .[flake8]
229230
# Usage: flake8
230231
"flake8": [
231-
'flake8==5.0.4;python_version>="3.6" and python_version<"3.9"',
232+
'flake8==5.0.4;python_version<"3.9"',
232233
'flake8==6.0.0;python_version>="3.9"',
233-
'mccabe==0.7.0;python_version>="3.6"',
234-
'pyflakes==2.5.0;python_version>="3.6" and python_version<"3.9"',
234+
"mccabe==0.7.0",
235+
'pyflakes==2.5.0;python_version<"3.9"',
235236
'pyflakes==3.0.1;python_version>="3.9"',
236-
'pycodestyle==2.9.1;python_version>="3.6" and python_version<"3.9"', # noqa: E501
237+
'pycodestyle==2.9.1;python_version<"3.9"',
237238
'pycodestyle==2.10.0;python_version>="3.9"',
238239
],
239240
# pip install -e .[ipdb]
240241
# (Not needed for debugging anymore. SeleniumBase now includes "pdbp".)
241242
"ipdb": [
242-
'ipdb==0.13.11;python_version>="3.6"',
243-
'ipython==7.16.3;python_version>="3.6" and python_version<"3.7"',
243+
"ipdb==0.13.11",
244+
'ipython==7.16.3;python_version<"3.7"',
244245
'ipython==7.34.0;python_version>="3.7"',
245246
],
246247
# pip install -e .[pdfminer]
247248
"pdfminer": [
248-
'pdfminer.six==20211012;python_version>="3.6" and python_version<"3.7"', # noqa: E501
249+
'pdfminer.six==20211012;python_version<"3.7"',
249250
'pdfminer.six==20221105;python_version>="3.7"',
250251
],
251252
# pip install -e .[pillow]
252253
"pillow": [
253-
'Pillow==8.4.0;python_version>="3.6" and python_version<"3.7"',
254+
'Pillow==8.4.0;python_version<"3.7"',
254255
'Pillow==9.4.0;python_version>="3.7"',
255256
],
256257
# pip install -e .[psutil]

0 commit comments

Comments
 (0)