forked from malthe/chameleon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
72 lines (60 loc) · 2.07 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
__version__ = '3.7.5-dev'
import os
from setuptools import setup, find_packages
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: # doesn't work under tox/pip
README = ''
CHANGES = ''
install_requires = []
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 :: 2",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
],
author="Malthe Borch",
author_email="[email protected]",
url="https://chameleon.readthedocs.io",
license='BSD-like (http://repoze.org/license.html)',
packages=find_packages('src'),
package_dir = {'': 'src'},
include_package_data=True,
install_requires=install_requires,
zip_safe=False,
test_suite="chameleon.tests",
cmdclass={
'benchmark': Benchmark,
}
)