1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
#-*- coding:utf-8 -*-
from setuptools import setup
import sys, os
import codecs
here = os.path.abspath(os.path.dirname(__file__))
def readfile(fname):
return codecs.open(os.path.join(here, fname), encoding='utf-8').read()
version = '0.7.0'
README = readfile('README.rst')
CHANGES = readfile('CHANGES.rst')
AUTHORS = readfile('AUTHORS.rst')
install_requires=[]
if sys.version_info < (3, 2):
install_requires=["backports.functools_lru_cache >= 1.0"]
# hack, or test wont run on py2.7
try:
import multiprocessing
import logging
except:
pass
setup(name='wsgicors',
version=version,
description="WSGI for Cross Origin Resource Sharing (CORS)",
long_description=README + '\n\n' + CHANGES + '\n\n' + AUTHORS,
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Development Status :: 3 - Alpha",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Internet :: WWW/HTTP :: WSGI"
],
keywords=["wsgi", "cors"],
author='Norman Krämer',
author_email='kraemer.norman@googlemail.com',
url="https://github.com/may-day/wsgicors",
license='Apache Software License 2.0',
py_modules=["wsgicors"],
install_requires = install_requires,
tests_require = [
'nose',
'nose-testconfig',
'webob'
],
test_suite = 'nose.collector',
entry_points = """
[paste.filter_app_factory]
middleware = wsgicors:make_middleware
"""
)
|