diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-02-15 14:58:48 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-02-15 14:58:48 +0100 |
commit | 43c3e164ecf13b2d0909f748c2c61f39e197659e (patch) | |
tree | c3dd47b72a40416706518904f557b763f38e999b /netlib/setup.py | |
parent | 33fa49277a821b9d38e8c9bf0bcf2adcfa2f6f04 (diff) | |
parent | aafa69a73829a7ec291a2d6fa0c4522caf287d17 (diff) | |
download | mitmproxy-43c3e164ecf13b2d0909f748c2c61f39e197659e.tar.gz mitmproxy-43c3e164ecf13b2d0909f748c2c61f39e197659e.tar.bz2 mitmproxy-43c3e164ecf13b2d0909f748c2c61f39e197659e.zip |
add netlib
Diffstat (limited to 'netlib/setup.py')
-rw-r--r-- | netlib/setup.py | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/netlib/setup.py b/netlib/setup.py new file mode 100644 index 00000000..bcaecad4 --- /dev/null +++ b/netlib/setup.py @@ -0,0 +1,72 @@ +from setuptools import setup, find_packages +from codecs import open +import os +import sys + +from netlib import version + +# Based on https://github.com/pypa/sampleproject/blob/master/setup.py +# and https://python-packaging-user-guide.readthedocs.org/ +# and https://caremad.io/2014/11/distributing-a-cffi-project/ + +here = os.path.abspath(os.path.dirname(__file__)) + +with open(os.path.join(here, 'README.rst'), encoding='utf-8') as f: + long_description = f.read() + +setup( + name="netlib", + version=version.VERSION, + description="A collection of network utilities used by pathod and mitmproxy.", + long_description=long_description, + url="http://github.com/mitmproxy/netlib", + author="Aldo Cortesi", + author_email="aldo@corte.si", + license="MIT", + classifiers=[ + "License :: OSI Approved :: MIT License", + "Development Status :: 3 - Alpha", + "Operating System :: POSIX", + "Programming Language :: Python", + "Programming Language :: Python :: 2", + "Programming Language :: Python :: 2.7", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.5", + "Programming Language :: Python :: Implementation :: CPython", + "Programming Language :: Python :: Implementation :: PyPy", + "Topic :: Internet", + "Topic :: Internet :: WWW/HTTP", + "Topic :: Internet :: WWW/HTTP :: HTTP Servers", + "Topic :: Software Development :: Testing", + "Topic :: Software Development :: Testing :: Traffic Generation", + ], + packages=find_packages(exclude=["test", "test.*"]), + include_package_data=True, + zip_safe=False, + install_requires=[ + "pyasn1>=0.1.9, <0.2", + "pyOpenSSL>=0.15.1, <0.16", + "cryptography>=1.2.2, <1.3", + "passlib>=1.6.5, <1.7", + "hpack>=2.1.0, <3.0", + "hyperframe>=3.2.0, <4.0", + "six>=1.10.0, <1.11", + "certifi>=2015.11.20.1", # no semver here - this should always be on the last release! + "backports.ssl_match_hostname>=3.5.0.1, <3.6", + ], + extras_require={ + # Do not use a range operator here: https://bitbucket.org/pypa/setuptools/issues/380 + # Ubuntu Trusty and other still ship with setuptools < 17.1 + ':python_version == "2.7"': [ + "ipaddress>=1.0.15, <1.1", + ], + 'dev': [ + "mock>=1.3.0, <1.4", + "pytest>=2.8.7, <2.9", + "pytest-xdist>=1.14, <1.15", + "pytest-cov>=2.2.1, <2.3", + "pytest-timeout>=1.0.0, <1.1", + "coveralls>=1.1, <1.2" + ] + }, +) |