File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ build /
2+ dist /
3+ forcediphttpsadapter.egg-info /*
Original file line number Diff line number Diff line change 6868# if it's <2.7.9 decide to use the old "http://$IP/ technique. If Python is
6969# >2.7.9 and the adapter doesn't work, unfortunately, there's nothing that can
7070# be done :(
71- from distutils .version import StrictVersion
71+ from packaging .version import Version
7272from socket import error as SocketError , timeout as SocketTimeout
7373
7474import requests
9090# Requests older than 2.4.0's VerifiedHHTPSConnection is broken and doesn't
9191# properly use _new_conn. On these versions, use UnverifiedHTTPSConnection
9292# instead.
93- if StrictVersion (requests .__version__ ) < StrictVersion ('2.4.0' ):
93+ if Version (requests .__version__ ) < Version ('2.4.0' ):
9494 from requests .packages .urllib3 .connection import (
9595 UnverifiedHTTPSConnection as HTTPSConnection
9696 )
Original file line number Diff line number Diff line change 88from setuptools import setup , find_packages
99
1010
11- PACKAGE_NAME = ' forcediphttpsadapter'
12- PACKAGE_VERSION = ' 1.0.2'
13- AUTHOR = ' Roadmaster'
14- EMAIL = ' daniel@tomechangosubanana.com'
15- URL = ' https://github.com/Roadmaster/forcediphttpsadapter'
11+ PACKAGE_NAME = " forcediphttpsadapter"
12+ PACKAGE_VERSION = " 1.0.2"
13+ AUTHOR = " Roadmaster"
14+ EMAIL = " daniel@tomechangosubanana.com"
15+ URL = " https://github.com/Roadmaster/forcediphttpsadapter"
1616
1717
1818setup (
2424 url = URL ,
2525 # classifiers=CLASSIFIERS,
2626 # platforms=PLATFORMS,
27- provides = [' adapters' ],
28- install_requires = [' requests' ],
27+ provides = [" adapters" ],
28+ install_requires = ["packaging" , " requests" ],
2929 # dependency_links=dependency_links,
30-
3130 packages = find_packages (),
3231 # include_package_data=True,
3332 # package_data=package_data,
34-
35- download_url = '{}/archive/master.zip' .format (URL ),
33+ download_url = "{}/archive/master.zip" .format (URL ),
3634 # keywords=KEYWORDS,
3735 # scripts=scripts,
38-
3936 # entry_points={},
40-
4137 zip_safe = False ,
4238)
You can’t perform that action at this time.
0 commit comments