2014-10-01 22:05:29 +00:00
|
|
|
from setuptools import setup, find_packages
|
|
|
|
from codecs import open
|
|
|
|
import os
|
2016-02-15 17:12:12 +00:00
|
|
|
import sys
|
2012-04-29 09:30:48 +00:00
|
|
|
|
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
|
|
|
|
2016-02-15 17:12:12 +00:00
|
|
|
sys.path.append(os.path.join(here, "..", "netlib"))
|
|
|
|
from libpathod import version
|
|
|
|
|
2016-02-15 20:13:06 +00:00
|
|
|
with open(os.path.join(here, 'README.rst'), 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",
|
2015-06-16 01:18:52 +00:00
|
|
|
"Programming Language :: Python :: 2.7",
|
|
|
|
"Programming Language :: Python :: Implementation :: CPython",
|
|
|
|
"Programming Language :: Python :: Implementation :: PyPy",
|
2014-08-30 16:07:13 +00:00
|
|
|
"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
|
|
|
|
2016-02-05 23:26:51 +00:00
|
|
|
packages=find_packages(exclude=["test", "test.*"]),
|
2014-10-01 22:05:29 +00:00
|
|
|
include_package_data=True,
|
|
|
|
entry_points={
|
|
|
|
'console_scripts': [
|
2015-06-08 14:03:33 +00:00
|
|
|
"pathod = libpathod.pathod_cmdline:go_pathod",
|
|
|
|
"pathoc = libpathod.pathoc_cmdline:go_pathoc"
|
2014-10-01 22:05:29 +00:00
|
|
|
]
|
|
|
|
},
|
2014-08-30 16:07:13 +00:00
|
|
|
install_requires=[
|
2016-02-15 23:22:38 +00:00
|
|
|
"netlib=={}".format(version.VERSION),
|
2016-02-05 22:42:37 +00:00
|
|
|
"requests>=2.9.1, <2.10",
|
2015-12-03 16:56:41 +00:00
|
|
|
"Flask>=0.10.1, <0.11",
|
2016-02-07 20:20:31 +00:00
|
|
|
"pyparsing>=2.1,<2.2"
|
2014-08-30 16:07:13 +00:00
|
|
|
],
|
2014-08-30 16:16:16 +00:00
|
|
|
extras_require={
|
2014-08-30 16:07:13 +00:00
|
|
|
'dev': [
|
2016-02-05 22:42:37 +00:00
|
|
|
"mock>=1.3.0, <1.4",
|
2015-09-21 21:03:45 +00:00
|
|
|
"pytest>=2.8.0",
|
2016-02-05 22:42:37 +00:00
|
|
|
"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"
|
2014-08-30 16:07:13 +00:00
|
|
|
]
|
|
|
|
}
|
2012-04-29 09:30:48 +00:00
|
|
|
)
|