-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathsetup.py
242 lines (208 loc) · 7.75 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
requires = [
# ----------------------------------------------
# Environment
# ----------------------------------------------
'six>=1.10.0',
'mock>=3,<4', # 4.0.3
# ----------------------------------------------
# Backend
# ----------------------------------------------
# Pyramid core
'pyramid<1.10', # 1.10.8, 2.0
'hupper<2',
'watchdog<1', # 2.1.9
'pyramid-debugtoolbar==4.3', # 4.9
'Pygments==2.5.2', # 2.13.0
'pyramid-mako<2',
'Mako<2',
'Jinja2>=2.11.3,<3', # 3.1.2
'MarkupSafe<2', # 2.1.1
'Akhet==2.0',
'waitress>=1,<2', # 2.1.2
'Paste<3', # 3.5.2
'PasteDeploy<3', # 3.0.1
'PasteScript<3', # 3.2.1
# Caching
'Beaker<2',
'pyramid_beaker==0.8',
'dogpile.cache<1', # 1.1.8
'platformdirs<3',
# Database and storage
# Can't upgrade to pymongo-3.5.1 due to "from pymongo.connection import Connection"
# usage in "mongodb_gridfs_beaker" module.
'pymongo<3', # 3.13.0, 4.3.3
'mongodb_gridfs_beaker==0.5.4',
'mongoengine==0.13.0', # 0.24.1
'python-magic<1',
# Web services
'cornice<3', # 3.4.4, 3.6.1, 4.0.1, 5.2.0, 6.0.1
# Authorization
'pycryptodome>=3,<4',
'python-jwt>=3.3.4,<4',
'pbkdf2==1.3',
# ----------------------------------------------
# Protocols and data formats
# ----------------------------------------------
# HTTP
'python-epo-ops-client<4', # 4.0.0
'requests<3',
'mechanize<1',
'MechanicalSoup<2',
'beautifulsoup4<5',
# HTTP SNI support
'pyOpenSSL==19.0.0', # 22.0.0
'cryptography>=3.2,<3.4', # 36.0.2
'pyasn1<1',
'ndg-httpsclient<1',
# HTML
'BeautifulSoup<4',
'html2text==2016.9.19', # 2020.1.16
# XML
# Remark: Both lxml 3.8.0 and 4.0.0 will segfault on Debian Wheezy (7.11)
#'lxml==3.4.1', # 4.2.0
'lxml>=4.6.5,<5',
'xmljson<1',
# JSON
'jsonpointer<3',
# ----------------------------------------------
# Data handling and formatting
# ----------------------------------------------
# Data handling
'attrs',
'Bunch==1.0.1', # Maybe switch to "Munch"
'pyparsing==2.0.2', # 2.2.2, 2.3.1, 2.4.7, 3.0.8
'python-dateutil<3',
'ago==0.0.9', # 0.0.93
'arrow==0.10.0', # 0.12.1
'validate_email<2',
'numpy==1.16.6', # 1.22.3
'pandas==0.18.1', # 0.22.0, 0.25.3, 1.4.2
'pathlib2<3',
# Data formatting
'openpyxl>=2.4.2,<3',
'xlrd==0.9.3', # 0.9.4, 1.2.0, 2.0.1
'XlsxWriter==0.9.3', # 1.4.5, 2.0.0, 3.0.3
# Data conversion
'Pillow>=6,<7', # 9.1.0
# Does not work from within virtualenv?
# 'unoconv==0.8.2', # 0.9.0
# ----------------------------------------------
# Program flow
# ----------------------------------------------
'blinker==1.4',
'transitions==0.2.4', # 0.2.9, ..., 0.8.11
# ----------------------------------------------
# Console and system interfaces
# ----------------------------------------------
'docopt<1',
'click>=7,<8',
'envoy==0.0.3',
'where==1.0.2',
'tqdm<5',
]
test_requires = [
# -----------
# Testing
# -----------
'pytest>=4,<5', # 5.4.3, 6.2.5, 7.1.1
'pytest-cov>=2,<3', # 3.0.0
'pytest-xdist<2', # 3.0.2
'coverage>=5.3.1,<6', # 6.3.2
'testfixtures>=6,<7',
'pytest-forked>=1,<2',
]
setup(name='patzilla',
version='0.169.3',
description='PatZilla is a modular patent information research platform and data integration ' \
'toolkit. It features a modern user interface and access to multiple data sources.',
long_description=README,
license="AGPL 3, EUPL 1.2",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: Web Environment",
"Framework :: Paste",
"Framework :: Pyramid",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Information Technology",
"Intended Audience :: Legal Industry",
"Intended Audience :: Manufacturing",
"Intended Audience :: Science/Research",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: European Union Public Licence 1.2 (EUPL 1.2)",
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
"Natural Language :: English",
"Operating System :: MacOS",
"Operating System :: POSIX",
"Programming Language :: JavaScript",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Topic :: Communications",
"Topic :: Database",
"Topic :: Internet",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
"Topic :: Internet :: WWW/HTTP :: WSGI",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Human Machine Interfaces",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Software Development :: Libraries",
"Topic :: System :: Archiving",
"Topic :: Text Processing",
"Topic :: Utilities",
],
author='Andreas Motl',
author_email='andreas.motl@ip-tools.org',
url='https://github.com/ip-tools/patzilla',
keywords='epo ops espacenet dpma depatisnet dpmaregister depatisconnect uspto appft patft '
'cipo ificlaims mtc depatech '
'open-data opendata research analysis technology research-data research-tool '
'intellectual-property patent trademark design information information-retrieval '
'fulltext search search-engine query-language patent-search patent-data '
'research-and-development management'
,
packages=find_packages(),
include_package_data=True,
package_data={
'patzilla.navigator': [
'resources/*.*',
'templates/*.mako', 'templates/*.html', 'templates/*.min.js',
'static/js/**/*.min.js', 'static/js/**/*.min.js.map', '**/**/*.css',
'**/**/*.png', '**/**/*.jpg', '**/**/*.gif', '**/**/*.svg', '**/**/*.txt',
],
'patzilla.util': ['*.js'],
},
zip_safe=False,
install_requires=requires,
tests_require=test_requires,
extras_require={
'test': test_requires,
},
dependency_links=[
],
entry_points={
'paste.app_factory': [
'web = patzilla:web',
'minimal = patzilla:minimal',
],
# This is now a Beaker builtin as per "ext:mongodb"
#'beaker.backends': [
# 'mongodb = patzilla.util.database.beaker_mongodb:MongoDBNamespaceManager',
# ],
'console_scripts': [
'patzilla = patzilla.commands:cli',
'patzilla-user = patzilla.commands:usercmd',
'dpmaregister = patzilla.access.dpma.dpmaregister:run',
'patzilla-sip = patzilla.access.sip.commands:run',
'patzilla-cachecarver = patzilla.util.database.beaker_mongodb_carve:run',
],
},
)