-
Notifications
You must be signed in to change notification settings - Fork 13
/
setup.py
70 lines (59 loc) · 1.89 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/usr/bin/env python3
# Setup script for Quixote
import sys
from setuptools import setup, Extension
# Should match quixote.__version__.
VERSION = '3.6'
LONG_DESC = """\
Quixote is a framework for developing Web applications in Python.
The target is web applications that are developed and maintained by
Python programmers. Quixote includes PTL, the Python Template Language for
producing HTML with Python code. Use of PTL is not required in Quixote
applications.
"""
# a fast htmltext type
htmltext = Extension(
name="quixote.html._c_htmltext", sources=["quixote/html/_c_htmltext.c"]
)
kw = {
'name': "Quixote",
'version': VERSION,
'description': "A small and flexible Python Web application framework",
'long_description': LONG_DESC,
'author': "The Quixote developers",
'author_email': "webmaster@quixote.ca",
'url': "http://www.quixote.ca/",
'license': "DFSG approved (see LICENSE.txt)",
'package_dir': {'quixote': 'quixote'},
'packages': [
'quixote',
'quixote.demo',
'quixote.form',
'quixote.html',
'quixote.ptl',
'quixote.server',
],
'ext_modules': [],
'python_requires': '>=3.6',
#'cmdclass': {'build_py': qx_build_py},
}
build_extensions = sys.platform != 'win32'
if build_extensions:
kw['ext_modules'].append(htmltext)
kw['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',
]
kw['download_url'] = (
'http://quixote.ca/releases/' 'Quixote-%s.tar.gz' % kw['version']
)
kw['url'] = 'http://www.quixote.ca/'
kw['platforms'] = 'Most'
setup(**kw)