Skip to content

Commit

Permalink
Merge branch 'Nekmo-master' from https://github.com/Nekmo
Browse files Browse the repository at this point in the history
  • Loading branch information
Roadmaster committed Dec 13, 2017
2 parents f0f8863 + 68815d5 commit 34d06bd
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
1 change: 1 addition & 0 deletions forcediphttpsadapter/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

File renamed without changes.
52 changes: 52 additions & 0 deletions setup.py
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,
)

0 comments on commit 34d06bd

Please sign in to comment.