-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
55 lines (47 loc) · 1.67 KB
/
setup.py
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
#!/usr/bin/env python3
import sys
import re
import os
from setuptools import setup, Extension
from scgi.__init__ import __version__
LONG_DESC = """\
SCGI is a protocol for connecting web application servers to HTTP
servers (e.g. Apache, nginx). Contained in this package is a library to
implement the application server side of the protocol.
"""
# Ensure that version number is correct.
def _check_version_numbers():
PAT = re.compile(r'(^|VERSION ")%s\b' % re.escape(__version__), re.M)
for fn in ["apache2/mod_scgi.c"]:
if not PAT.search(open(fn).read(200)):
raise AssertionError("version number mismatch in %r" % fn)
if 'sdist' in sys.argv[1:]:
_check_version_numbers()
setup(
name="scgi",
version=__version__,
description="A Python package for implementing SCGI servers.",
long_description=LONG_DESC,
author="Neil Schemenauer",
author_email="[email protected]",
# url = "http://",
license="DFSG approved (see LICENSE.txt)",
packages=['scgi'],
ext_modules=[Extension(name="scgi.passfd", sources=['scgi/passfd.c'])],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'License :: DFSG approved',
'Intended Audience :: Developers',
'Operating System :: Unix',
'Operating System :: Microsoft :: Windows',
'Operating System :: MacOS :: MacOS X',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Programming Language :: Python :: 3 :: Only',
],
download_url=(
'http://python.ca/scgi/releases/' 'scgi-%s.tar.gz' % __version__
),
url='http://python.ca/scgi/',
python_requires='>=3.5',
)