-
Notifications
You must be signed in to change notification settings - Fork 32
/
setup.py
108 lines (103 loc) · 3.74 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#!/usr/bin/python
import versioneer
# For the convenience of the travis configuration, make this information
# particularly easy to find. See .travis.yml.
_MINIMUM_TWISTED_VERSION = "16.3"
from setuptools import setup, find_packages
import os
data_files=[]
for (dirpath, dirnames, filenames) in os.walk("doc"):
if ".svn" in dirnames:
del dirnames[dirnames.index(".svn")]
thesedocs = []
for fname in filenames:
thesedocs.append(os.path.join(dirpath, fname))
data_files.append((dirpath, thesedocs))
if __name__ == '__main__':
setup(
name='Nevow',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
packages=find_packages(),
py_modules=["twisted.plugins.nevow_widget"],
include_package_data=True,
author='Divmod, Inc.',
author_email='[email protected]',
maintainer='Twisted Matrix Labs',
maintainer_email='[email protected]',
description='Web Application Construction Kit',
url='https://github.com/twisted/nevow',
license='MIT',
platforms=["any"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Framework :: Twisted",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries",
],
scripts=['bin/nevow-xmlgettext', 'bin/nit'],
data_files=data_files,
package_data={
'formless': [
'freeform-default.css'
],
'nevow': [
'Canvas.swf',
'*.css',
'*.js',
'css/*.css',
'css/Nevow/*.css',
'css/Nevow/TagLibrary/*.css',
'js/Divmod/*.js',
'js/Nevow/*.js',
'js/Nevow/Test/*.js',
'js/Nevow/Athena/Tests/*.js',
'js/Divmod/Runtime/*.js',
'js/Nevow/Athena/*.js',
'js/Nevow/TagLibrary/*.js',
'js/Divmod/Test/*.js',
'js/PythonTestSupport/*.js',
],
'nevow.athena_private': [
'*.png'
],
'nevow.taglibrary': [
'*.css',
'*.js'
],
'nevow.livetrial': [
'*.css',
'*.js'
],
'nevow.test': [
'*.js'
],
'nevow.test.test_package.Foo': [
'*.js'
],
'nevow.test.test_package.Foo.Baz': [
'*.js'
],
},
install_requires=[
# Nevow builds on Twisted Web's HTTP server. It also uses various
# other generally useful pieces of Twisted (such as its logging system,
# not to mention reactors and Deferreds).
#
# That dependency will be expressed here with a version range including
# only those versions of Twisted against which Nevow's continuous
# integration system is configured to actually test. This ensures any
# combination allowed by this declaration has been tested and found to
# work.
"twisted>=" + _MINIMUM_TWISTED_VERSION,
],
extras_require={
'doc': [
'Sphinx',
],
},
zip_safe=False,
)