2014-10-01 22:05:29 +00:00
|
|
|
from setuptools import setup, find_packages
|
|
|
|
from codecs import open
|
|
|
|
import os
|
2012-04-29 09:30:48 +00:00
|
|
|
from libpathod import version
|
|
|
|
|
2014-10-01 22:05:29 +00:00
|
|
|
# Based on https://github.com/pypa/sampleproject/blob/master/setup.py
|
|
|
|
# and https://python-packaging-user-guide.readthedocs.org/
|
2014-08-30 16:07:13 +00:00
|
|
|
|
2014-10-01 22:05:29 +00:00
|
|
|
here = os.path.abspath(os.path.dirname(__file__))
|
2012-04-29 09:30:48 +00:00
|
|
|
|
2014-10-01 22:05:29 +00:00
|
|
|
with open(os.path.join(here, 'README.txt'), encoding='utf-8') as f:
|
2014-08-30 23:31:14 +00:00
|
|
|
long_description = f.read()
|
2012-04-29 09:30:48 +00:00
|
|
|
|
|
|
|
setup(
|
2014-08-30 16:07:13 +00:00
|
|
|
name="pathod",
|
|
|
|
version=version.VERSION,
|
|
|
|
description="A pathological HTTP/S daemon for testing and stressing clients.",
|
|
|
|
long_description=long_description,
|
2014-10-01 22:05:29 +00:00
|
|
|
url="http://pathod.net",
|
2014-08-30 16:07:13 +00:00
|
|
|
author="Aldo Cortesi",
|
|
|
|
author_email="aldo@corte.si",
|
2014-10-01 22:05:29 +00:00
|
|
|
license="MIT",
|
2014-08-30 16:07:13 +00:00
|
|
|
classifiers=[
|
|
|
|
"License :: OSI Approved :: MIT License",
|
|
|
|
"Development Status :: 5 - Production/Stable",
|
|
|
|
"Operating System :: POSIX",
|
|
|
|
"Programming Language :: Python",
|
|
|
|
"Programming Language :: Python :: 2",
|
|
|
|
"Topic :: Internet",
|
2014-10-01 22:05:29 +00:00
|
|
|
"Topic :: Internet :: WWW/HTTP",
|
2014-08-30 16:07:13 +00:00
|
|
|
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
|
|
|
|
"Topic :: Software Development :: Testing",
|
|
|
|
"Topic :: Software Development :: Testing :: Traffic Generation",
|
|
|
|
],
|
2014-10-01 22:05:29 +00:00
|
|
|
|
|
|
|
packages=find_packages(),
|
|
|
|
include_package_data=True,
|
2014-11-08 01:42:10 +00:00
|
|
|
scripts = ["pathod", "pathoc"],
|
2014-08-30 16:07:13 +00:00
|
|
|
install_requires=[
|
2014-11-11 11:28:08 +00:00
|
|
|
"netlib>=%s, <%s" % (version.MINORVERSION, version.NEXT_MINORVERSION),
|
2014-11-04 20:58:07 +00:00
|
|
|
# It's INSANE that we have to do this, but...
|
|
|
|
# FIXME: Requirement to be removed at next release
|
|
|
|
"pip>=1.5.6",
|
2014-09-28 01:55:16 +00:00
|
|
|
"requests>=2.4.1",
|
2014-08-30 16:07:13 +00:00
|
|
|
"Flask>=0.10.1"
|
|
|
|
],
|
2014-08-30 16:16:16 +00:00
|
|
|
extras_require={
|
2014-08-30 16:07:13 +00:00
|
|
|
'dev': [
|
|
|
|
"mock>=1.0.1",
|
|
|
|
"nose>=1.3.0",
|
|
|
|
"nose-cov>=1.6",
|
|
|
|
"coveralls>=0.4.1"
|
|
|
|
]
|
|
|
|
}
|
2012-04-29 09:30:48 +00:00
|
|
|
)
|