-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Nekmo-master' from https://github.com/Nekmo
- Loading branch information
Showing
3 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#!/usr/bin/env python | ||
|
||
""" | ||
This module implements a set of requests TransportAdapter, PoolManager, | ||
ConnectionPool and HTTPSConnection with one goal only: | ||
to use a specific IP address when connecting via SSL to a web service without | ||
running into SNI trouble. The usual technique to force an IP address on an | ||
HTTP connection with Requests is (assuming I want http://example.com/some/path | ||
on IP 1.2.3.4): | ||
requests.get("http://1.2.3.4/some/path", headers={'Host': 'example.com'}) | ||
this is useful if I want to specifically test how 1.2.3.4 is responding; | ||
for instance, if example.com is DNS round-robined to several IP addresses | ||
and I want to hit one of them specifically. | ||
""" | ||
from setuptools import setup, find_packages | ||
|
||
|
||
PACKAGE_NAME = 'forcediphttpsadapter' | ||
PACKAGE_VERSION = '1.0.0' | ||
AUTHOR = 'Roadmaster' | ||
EMAIL = 'daniel@tomechangosubanana.com' | ||
URL = 'https://github.com/Roadmaster/forcediphttpsadapter' | ||
|
||
|
||
setup( | ||
name=PACKAGE_NAME, | ||
version=PACKAGE_VERSION, | ||
description=__doc__, | ||
author=AUTHOR, | ||
author_email=EMAIL, | ||
url=URL, | ||
# classifiers=CLASSIFIERS, | ||
# platforms=PLATFORMS, | ||
provides=['adapters'], | ||
install_requires=['requests'], | ||
# dependency_links=dependency_links, | ||
|
||
packages=find_packages(), | ||
# include_package_data=True, | ||
# package_data=package_data, | ||
|
||
download_url='{}/archive/master.zip'.format(URL), | ||
# keywords=KEYWORDS, | ||
# scripts=scripts, | ||
|
||
# entry_points={}, | ||
|
||
zip_safe=False, | ||
) |