proxy.py/setup.py

82 lines
2.9 KiB
Python
Raw Normal View History

2013-08-20 09:26:32 +00:00
# -*- coding: utf-8 -*-
"""
proxy.py
~~~~~~~~
Fast, Lightweight, Programmable Proxy Server in a single Python file.
2013-08-20 09:26:32 +00:00
Use selectors.DefaultSelector instead of select.select (#106) * Use selectors.DefaultSelector instead of select.select * Unregister to avoid endless loop * Cleanup event register/unregiter * Cleanup event registration * Add google-fluentd.conf. Use if running proxy.py on Google Cloud. * Send server error from proxy if for whatever reason we fail to process the request (or should it be BadRequest based upon situation?) * Fix tests for selectors * Only include proxy.py and tests.py in coverage report * Only include proxy.py for coverage * remove redundant integration test, will rewrite using mocks * Proper unregister of events * Change multi core accept model to avoid client TIME_WAIT. Fixes #97 * Catch BlockingIOError * Remove redundant comments * Simplify with AcceptorPool * Pass family to acceptor processes * Remove plugin.access_log for core plugins * Return 501 not implemented for web socket upgrade requests to inbuilt HTTP server * Add support for websocket upgrade * Websocket frame parser * Enable websocket based routing * Add WebsocketClient * Websocket * mypy fixes * Sync GitHub workflow lint and makefile lint commands. For now comment out tests which are broken :( New tests coming next. * Start fixing tests for new code * Fix formatting * Fix main tests * Add worker tests * GitHub only ran windows tests, may be require unique names * Use 3.6/3.7 dev versions for GitHub actions * Add AcceptorPool test * Add x64 and x86 matrix for actions tests * Dont use dev versions since they dont exists for x86 * Ha no x86 support itself * Add backer link * Remove support badge for 3.5 as it doesnt support typing * Update read me with changed architecture notes * Update read me with changed architecture notes * Add `import proxy` usage instructions. * Add pydoc reference for developers * Put pydoc as internal documentation
2019-10-02 07:09:35 +00:00
:copyright: (c) 2013-present by Abhinav Singh and contributors.
2013-08-20 09:26:32 +00:00
:license: BSD, see LICENSE for more details.
"""
from setuptools import setup
import proxy
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Environment :: No Input/Output (Daemon)',
2013-08-20 09:26:32 +00:00
'Environment :: Web Environment',
'Environment :: MacOS X',
'Environment :: Plugins',
'Environment :: Win32 (MS Windows)',
'Framework :: Robot Framework',
'Framework :: Robot Framework :: Library',
2013-08-20 09:26:32 +00:00
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: End Users/Desktop',
2013-08-20 09:26:32 +00:00
'Intended Audience :: System Administrators',
'Intended Audience :: Science/Research',
2013-08-20 09:26:32 +00:00
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
2013-08-20 09:26:32 +00:00
'Operating System :: MacOS',
'Operating System :: MacOS :: MacOS 9',
'Operating System :: MacOS :: MacOS X',
2013-08-20 09:26:32 +00:00
'Operating System :: POSIX',
'Operating System :: POSIX :: Linux',
2013-08-20 09:26:32 +00:00
'Operating System :: Unix',
'Operating System :: Microsoft',
'Operating System :: Microsoft :: Windows',
'Operating System :: Microsoft :: Windows :: Windows 10',
'Operating System :: Android',
2013-08-20 09:26:32 +00:00
'Operating System :: OS Independent',
'Programming Language :: Python :: Implementation',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3',
2019-09-27 20:42:53 +00:00
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Internet',
2013-08-20 09:26:32 +00:00
'Topic :: Internet :: Proxy Servers',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Browsers',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries',
2013-08-20 09:26:32 +00:00
'Topic :: Internet :: WWW/HTTP :: HTTP Servers',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Software Development :: Debuggers',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Monitoring',
'Topic :: System :: Networking',
'Topic :: System :: Networking :: Firewalls',
'Topic :: System :: Networking :: Monitoring',
'Topic :: Utilities',
'Typing :: Typed',
2013-08-20 09:26:32 +00:00
]
setup(
2018-10-17 08:31:19 +00:00
name='proxy.py',
version=proxy.__version__,
author=proxy.__author__,
author_email=proxy.__author_email__,
url=proxy.__homepage__,
description=proxy.__description__,
long_description=open('README.md').read().strip(),
2019-09-27 20:42:53 +00:00
long_description_content_type='text/markdown',
download_url=proxy.__download_url__,
classifiers=classifiers,
2018-10-17 08:31:19 +00:00
license=proxy.__license__,
py_modules=['proxy'],
scripts=['proxy.py'],
install_requires=['typing-extensions==3.7.4'],
2013-08-20 09:26:32 +00:00
)