forked from miku/siskin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
187 lines (171 loc) · 5.2 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
#!/usr/bin/env python
# coding: utf-8
# Copyright 2015 by Leipzig University Library, http://ub.uni-leipzig.de
# The Finc Authors, http://finc.info
# Martin Czygan, <martin.czygan@uni-leipzig.de>
#
# This file is part of some open source application.
#
# Some open source application is free software: you can redistribute
# it and/or modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation, either
# version 3 of the License, or (at your option) any later version.
#
# Some open source application is distributed in the hope that it will
# be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Foobar. If not, see <http://www.gnu.org/licenses/>.
#
# @license GPL-3.0+ <http://spdx.org/licenses/GPL-3.0+>
"""
siskin is a set of tasks for library metadata management. For more information
on the project, please refer to https://finc.info.
"""
import sys
from siskin import __version__
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
# XXX: Break this up into production and development dependencies.
install_requires = [
"astroid>=1.1.1,<2",
"backoff>=1.11.1",
"beautifulsoup4>=4", # https://pypi.org/project/bs4/
"colorama>=0.3.3",
"configparser>=3.5.0",
"cython>=0.29.33",
"decorator>=5.0.9",
"duckdb>=0.8.1",
"elasticsearch>=7",
"feedparser>=6.0.8",
"gluish>=0.3.5",
"internetarchive>=2.0.3",
"iso-639>=0.4.5",
"langdetect>=1.0.9",
"lingua-language-detector>=2.0.2",
"logilab-common>=0.61.0",
# 'luigi>=3', # https://github.com/spotify/luigi/issues/3202, 3.11 issue;
# PEP0508 fix commit until release appears; seems to not work out of the
# box on target, but this does:
#
# $ pip install -e git+https://github.com/luigi#egg=luigi
#
# 'luigi @ git+https://github.com/spotify/luigi@3de05605024bdfdb38cf011c271edb0f488a90e0#egg=luigi',
"luigi>=3.2.1",
"lxml>=3.4.2",
"marcx>=0.2.12",
"numpy",
"pandas>=1.1",
"pydantic>=1.10.5",
"pygments>=2.9.0",
"pyisbn>=1.0.0",
"pymarc>=3.0.1",
"pymysql>=0.7",
"python-dateutil>=2.8.2",
"pytz>=2014.4",
"rdflib>=4",
"requests>=2.26.0",
"responses",
"six>=1.16.0",
"tqdm>=4",
"urllib3<1.27,>=1.21.1",
"xlrd>=1.0.0",
"xlsxwriter>=1.4.4",
"xmltodict>=0.11.0",
]
if sys.version_info.major < 3:
install_requires += ["argparse>=1.2", "wsgiref>=0.1.2"]
print("""
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Installation note:
If you see an error like
> AttributeError: 'ChangelogAwareDistribution' object has no attribute
'_egg_fetcher'
or similar from python-daemon, it's unfortunate but fixable: install
python-daemon manually, then run setup.py again:
$ pip install python-daemon
$ python setup.py develop
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
""")
setup(
name="siskin",
version=__version__,
description="Luigi tasks for building an article metadata index for https://finc.info",
url="https://github.com/ubleipzig/siskin",
author="The Finc Authors",
author_email="team@finc.info",
packages=["siskin", "siskin.sources", "siskin.workflows"],
package_dir={"siskin": "siskin"},
package_data={
"siskin": [
"assets/*",
"assets/arxiv/*",
"assets/amsl/*",
"assets/datacite/*",
"assets/js/*",
"assets/mail/*",
"assets/maps/*",
"assets/oai/*",
"assets/55/*",
"assets/68/*",
"assets/87/*",
]
},
scripts=[
"bin/iconv-chunks",
# TODO(martin): use "siskin-" prefix for all scripts
"bin/siskin-whatislive.sh",
"bin/taskcat",
"bin/taskchecksetup",
"bin/taskcleanup",
"bin/taskconfig",
"bin/taskdeps",
"bin/taskdeps-dot",
"bin/taskdir",
"bin/taskdo",
"bin/taskdocs",
"bin/taskdu",
"bin/taskgc",
"bin/taskhash",
"bin/taskhead",
"bin/taskhelp",
"bin/taskhome",
"bin/taskimportcache",
"bin/taskinspect",
"bin/taskless",
"bin/taskls",
"bin/tasknames",
"bin/taskopen",
"bin/taskoutput",
"bin/taskps",
"bin/taskredo",
"bin/taskrm",
"bin/taskstatus",
"bin/tasksync",
"bin/tasktags",
"bin/tasktree",
"bin/taskversion",
"bin/taskwc",
],
entry_points={
"console_scripts": [
"siskin=siskin.main:main",
],
},
install_requires=install_requires,
zip_safe=False,
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX",
"Programming Language :: Python :: 3",
"Programming Language :: Python",
"Topic :: Text Processing",
],
)