File tree Expand file tree Collapse file tree 4 files changed +15
-19
lines changed
seleniumbase/console_scripts Expand file tree Collapse file tree 4 files changed +15
-19
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ before_install:
16
16
install :
17
17
- " pip install --upgrade pip"
18
18
- " pip install -r requirements.txt --upgrade"
19
- - " pip install mysqlclient==1.3.14 "
19
+ - " pip install mysqlclient==1.4.2 "
20
20
- " python setup.py develop"
21
21
- " sudo rm -f /etc/boto.cfg"
22
22
before_script :
Original file line number Diff line number Diff line change 6
6
chardet
7
7
unittest2
8
8
selenium == 3.141.0
9
- requests == 2.21.0
10
9
urllib3 == 1.24.2
10
+ requests >= 2.21.0
11
11
pytest >= 4.4.1
12
12
pytest-cov >= 2.6.1
13
13
pytest-forked >= 1.0.2
@@ -18,9 +18,9 @@ pytest-xdist>=1.28.0
18
18
pytest-ordering >= 0.6
19
19
parameterized >= 0.7.0
20
20
beautifulsoup4 >= 4.6.0
21
- colorama = =0.4.1
21
+ colorama > =0.4.1
22
22
pyotp >= 2.2.7
23
23
boto >= 2.49.0
24
- flake8 = =3.7.7
25
- PyVirtualDisplay = =0.2.1
24
+ flake8 > =3.7.7
25
+ PyVirtualDisplay > =0.2.1
26
26
-e .
Original file line number Diff line number Diff line change 16
16
import os
17
17
import platform
18
18
import requests
19
- import urllib3 # Some systems don't have requests.packages.urllib3
20
19
import shutil
21
20
import sys
22
21
import tarfile
23
22
import zipfile
24
23
from seleniumbase import drivers # webdriver storage folder for SeleniumBase
25
- urllib3 .disable_warnings ()
26
24
DRIVER_DIR = os .path .dirname (os .path .realpath (drivers .__file__ ))
27
25
28
26
@@ -186,13 +184,11 @@ def main():
186
184
file_path = downloads_folder + '/' + file_name
187
185
if not os .path .exists (downloads_folder ):
188
186
os .mkdir (downloads_folder )
189
- local_file = open (file_path , 'wb' )
190
- http = urllib3 .PoolManager ()
191
- remote_file = http .request ('GET' , download_url , preload_content = False )
187
+
192
188
print ('\n Downloading %s from:\n %s ...' % (file_name , download_url ))
193
- local_file . write ( remote_file . read () )
194
- local_file . close ()
195
- remote_file . close ( )
189
+ remote_file = requests . get ( download_url )
190
+ with open ( file_path , 'wb' ) as file :
191
+ file . write ( remote_file . content )
196
192
print ('Download Complete!\n ' )
197
193
198
194
if file_name .endswith (".zip" ):
Original file line number Diff line number Diff line change 17
17
18
18
setup (
19
19
name = 'seleniumbase' ,
20
- version = '1.23.3 ' ,
20
+ version = '1.23.4 ' ,
21
21
description = 'Reliable Browser Automation & Testing Framework' ,
22
22
long_description = long_description ,
23
23
long_description_content_type = 'text/markdown' ,
59
59
'chardet' ,
60
60
'unittest2' ,
61
61
'selenium==3.141.0' ,
62
- 'requests==2.21.0' , # Changing this may effect "urllib3"
63
- 'urllib3>=1.24.2,<1.25 .0' , # Keep this lib in sync with "requests"
62
+ 'urllib3==1.24.2' ,
63
+ 'requests>=2.21 .0' ,
64
64
'pytest>=4.4.1' ,
65
65
'pytest-cov>=2.6.1' ,
66
66
'pytest-forked>=1.0.2' ,
71
71
'pytest-ordering>=0.6' ,
72
72
'parameterized>=0.7.0' ,
73
73
'beautifulsoup4>=4.6.0' , # Keep at >=4.6.0 while using bs4
74
- 'colorama= =0.4.1' ,
74
+ 'colorama> =0.4.1' ,
75
75
'pyotp>=2.2.7' ,
76
76
'boto>=2.49.0' ,
77
- 'flake8>=3.6.0,<3.8.0 ' ,
78
- 'PyVirtualDisplay= =0.2.1' ,
77
+ 'flake8>=3.7.7 ' ,
78
+ 'PyVirtualDisplay> =0.2.1' ,
79
79
],
80
80
packages = [
81
81
'seleniumbase' ,
You can’t perform that action at this time.
0 commit comments