mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +00:00
Merge branch 'master' of ssh.github.com:cortesi/netlib
This commit is contained in:
commit
b21df0cf44
@ -3,10 +3,7 @@ python:
|
|||||||
- "2.7"
|
- "2.7"
|
||||||
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
|
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
|
||||||
install:
|
install:
|
||||||
- "pip install -r requirements.txt --use-mirrors"
|
- "pip install --src .. -r requirements.txt"
|
||||||
- "pip install ."
|
|
||||||
- "pip install --upgrade git+https://github.com/mitmproxy/pathod.git"
|
|
||||||
- "pip install -r test/requirements.txt --use-mirrors"
|
|
||||||
# command to run tests, e.g. python setup.py test
|
# command to run tests, e.g. python setup.py test
|
||||||
script:
|
script:
|
||||||
- "nosetests --with-cov --cov-report term-missing"
|
- "nosetests --with-cov --cov-report term-missing"
|
||||||
|
@ -289,7 +289,7 @@ class TCPClient(_Connection):
|
|||||||
try:
|
try:
|
||||||
self.connection.do_handshake()
|
self.connection.do_handshake()
|
||||||
except SSL.Error, v:
|
except SSL.Error, v:
|
||||||
raise NetLibError("SSL handshake error: %s"%str(v))
|
raise NetLibError("SSL handshake error: %s"%repr(v))
|
||||||
self.cert = certutils.SSLCert(self.connection.get_peer_certificate())
|
self.cert = certutils.SSLCert(self.connection.get_peer_certificate())
|
||||||
self.rfile.set_descriptor(self.connection)
|
self.rfile.set_descriptor(self.connection)
|
||||||
self.wfile.set_descriptor(self.connection)
|
self.wfile.set_descriptor(self.connection)
|
||||||
@ -402,7 +402,7 @@ class BaseHandler(_Connection):
|
|||||||
try:
|
try:
|
||||||
self.connection.do_handshake()
|
self.connection.do_handshake()
|
||||||
except SSL.Error, v:
|
except SSL.Error, v:
|
||||||
raise NetLibError("SSL handshake error: %s"%str(v))
|
raise NetLibError("SSL handshake error: %s"%repr(v))
|
||||||
self.rfile.set_descriptor(self.connection)
|
self.rfile.set_descriptor(self.connection)
|
||||||
self.wfile.set_descriptor(self.connection)
|
self.wfile.set_descriptor(self.connection)
|
||||||
|
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
pyasn1>=0.1.7
|
-e git+https://github.com/mitmproxy/pathod.git#egg=pathod
|
||||||
pyOpenSSL>=0.14
|
-e .[dev]
|
22
setup.py
22
setup.py
@ -2,6 +2,7 @@ from distutils.core import setup
|
|||||||
import fnmatch, os.path
|
import fnmatch, os.path
|
||||||
from netlib import version
|
from netlib import version
|
||||||
|
|
||||||
|
|
||||||
def _fnmatch(name, patternList):
|
def _fnmatch(name, patternList):
|
||||||
for i in patternList:
|
for i in patternList:
|
||||||
if fnmatch.fnmatch(name, i):
|
if fnmatch.fnmatch(name, i):
|
||||||
@ -65,7 +66,9 @@ def findPackages(path, dataExclude=[]):
|
|||||||
return packages, package_data
|
return packages, package_data
|
||||||
|
|
||||||
|
|
||||||
long_description = file("README.mkd", "rb").read()
|
with open("README.mkd", "rb") as f:
|
||||||
|
long_description = f.read()
|
||||||
|
|
||||||
packages, package_data = findPackages("netlib")
|
packages, package_data = findPackages("netlib")
|
||||||
setup(
|
setup(
|
||||||
name="netlib",
|
name="netlib",
|
||||||
@ -84,10 +87,23 @@ setup(
|
|||||||
"Programming Language :: Python",
|
"Programming Language :: Python",
|
||||||
"Programming Language :: Python :: 2",
|
"Programming Language :: Python :: 2",
|
||||||
"Topic :: Internet",
|
"Topic :: Internet",
|
||||||
|
"Topic :: Internet :: WWW/HTTP",
|
||||||
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
|
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
|
||||||
"Topic :: Software Development :: Testing",
|
"Topic :: Software Development :: Testing",
|
||||||
"Topic :: Software Development :: Testing :: Traffic Generation",
|
"Topic :: Software Development :: Testing :: Traffic Generation",
|
||||||
"Topic :: Internet :: WWW/HTTP",
|
|
||||||
],
|
],
|
||||||
install_requires=["pyasn1>0.1.2", "pyopenssl>=0.14", "passlib>=1.6.2"],
|
install_requires=[
|
||||||
|
"pyasn1>=0.1.7",
|
||||||
|
"pyOpenSSL>=0.14",
|
||||||
|
"passlib>=1.6.2"
|
||||||
|
],
|
||||||
|
extras_require={
|
||||||
|
'dev': [
|
||||||
|
"mock>=1.0.1",
|
||||||
|
"nose>=1.3.0",
|
||||||
|
"nose-cov>=1.6",
|
||||||
|
"coveralls>=0.4.1",
|
||||||
|
"pathod>=0.10"
|
||||||
|
]
|
||||||
|
}
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user