aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2014-09-08 20:40:36 +1200
committerAldo Cortesi <aldo@corte.si>2014-09-08 20:40:36 +1200
commit14d7beee13a55d2763d5d41dade4d691f1fd3dc1 (patch)
treec737b77b015e5fe77a7dda2bc8d1cc35a177b95d /setup.py
parent211b0dfe1f2cd808a267527bd11475195f18c6e4 (diff)
parent658a56a1ac74f42c1dc0903d3092335a5b851382 (diff)
downloadmitmproxy-14d7beee13a55d2763d5d41dade4d691f1fd3dc1.tar.gz
mitmproxy-14d7beee13a55d2763d5d41dade4d691f1fd3dc1.tar.bz2
mitmproxy-14d7beee13a55d2763d5d41dade4d691f1fd3dc1.zip
Merge pull request #16 from mitmproxy/dist
improve distribution
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py67
1 files changed, 43 insertions, 24 deletions
diff --git a/setup.py b/setup.py
index 6b3f1330..2ff2d0be 100644
--- a/setup.py
+++ b/setup.py
@@ -2,6 +2,7 @@ from distutils.core import setup
import fnmatch, os.path
from libpathod import version
+
def _fnmatch(name, patternList):
for i in patternList:
if fnmatch.fnmatch(name, i):
@@ -64,31 +65,49 @@ def findPackages(path, dataExclude=[]):
package_data[module] = acc
return packages, package_data
+with open("README.txt", "rb") as f:
+ long_description = f.read()
-long_description = file("README.txt","rb").read()
packages, package_data = findPackages("libpathod")
setup(
- name = "pathod",
- version = version.VERSION,
- description = "A pathological HTTP/S daemon for testing and stressing clients.",
- long_description = long_description,
- author = "Aldo Cortesi",
- author_email = "aldo@corte.si",
- url = "http://pathod.net",
- packages = packages,
- package_data = package_data,
- scripts = ["pathod", "pathoc"],
- classifiers = [
- "License :: OSI Approved :: MIT License",
- "Development Status :: 5 - Production/Stable",
- "Operating System :: POSIX",
- "Programming Language :: Python",
- "Programming Language :: Python :: 2",
- "Topic :: Internet",
- "Topic :: Internet :: WWW/HTTP :: HTTP Servers",
- "Topic :: Software Development :: Testing",
- "Topic :: Software Development :: Testing :: Traffic Generation",
- "Topic :: Internet :: WWW/HTTP",
- ],
- install_requires=['netlib>=%s'%version.MINORVERSION, "requests>=2.4.0", "Flask>=0.10.1"]
+ name="pathod",
+ version=version.VERSION,
+ description="A pathological HTTP/S daemon for testing and stressing clients.",
+ long_description=long_description,
+ author="Aldo Cortesi",
+ author_email="aldo@corte.si",
+ url="http://pathod.net",
+ packages=packages,
+ package_data=package_data,
+ entry_points={
+ 'console_scripts': [
+ "pathod = libpathod.main:pathod",
+ "pathoc = libpathod.main:pathoc"
+ ]
+ },
+ classifiers=[
+ "License :: OSI Approved :: MIT License",
+ "Development Status :: 5 - Production/Stable",
+ "Operating System :: POSIX",
+ "Programming Language :: Python",
+ "Programming Language :: Python :: 2",
+ "Topic :: Internet",
+ "Topic :: Internet :: WWW/HTTP :: HTTP Servers",
+ "Topic :: Software Development :: Testing",
+ "Topic :: Software Development :: Testing :: Traffic Generation",
+ "Topic :: Internet :: WWW/HTTP",
+ ],
+ install_requires=[
+ 'netlib>=%s' % version.MINORVERSION,
+ "requests>=2.4.0",
+ "Flask>=0.10.1"
+ ],
+ extras_require={
+ 'dev': [
+ "mock>=1.0.1",
+ "nose>=1.3.0",
+ "nose-cov>=1.6",
+ "coveralls>=0.4.1"
+ ]
+ }
)