-
Notifications
You must be signed in to change notification settings - Fork 64
/
setup.py
87 lines (74 loc) · 2.41 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
__version__ = '4.6.1-dev'
import os
from setuptools import find_packages
from setuptools import setup
from setuptools.command.test import test
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()
except BaseException: # doesn't work under tox/pip
README = ''
CHANGES = ''
install_requires = ['importlib-metadata;python_version<"3.10"']
class Benchmark(test):
description = "Run benchmarks"
def finalize_options(self):
self.distribution.tests_require = [
'zope.pagetemplate',
'zope.component',
'zope.i18n',
'zope.testing']
test.finalize_options(self)
def run_tests(self):
from chameleon import benchmark
print("running benchmark...")
benchmark.start()
setup(
name="Chameleon",
version=__version__,
description="Fast HTML/XML Template Compiler.",
long_description="\n\n".join((README, CHANGES)),
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
],
author="Malthe Borch",
author_email="mborch@gmail.com",
url="https://chameleon.readthedocs.io",
project_urls={
'Documentation': 'https://chameleon.readthedocs.io',
'Issue Tracker': 'https://github.com/malthe/chameleon/issues',
'Sources': 'https://github.com/malthe/chameleon',
},
license='BSD-like (http://repoze.org/license.html)',
packages=find_packages('src'),
package_dir={'': 'src'},
include_package_data=True,
package_data={
'chameleon': [
'py.typed',
],
},
python_requires='>=3.9',
install_requires=install_requires,
extras_require={
'docs': {
'Sphinx',
'sphinx_rtd_theme',
},
},
zip_safe=False,
cmdclass={
'benchmark': Benchmark,
}
)