-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
executable file
·58 lines (56 loc) · 1.97 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
"""
esmarc is a python3 tool to read line-delimited MARC21 JSON from an elasticSearch index, perform a mapping and writes the output in a directory with a file for each mapping type.
"""
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name='esmarc',
version='1.3',
description='esmarc is a python3 tool to read line-delimited MARC21 JSON from an elasticSearch index, perform a mapping and writes the output in a directory with a file for each mapping type.',
url='https://github.com/slub/esmarc',
author='SLUB LOD Team',
author_email='lod.team@slub-dresden.de',
license="Apache 2.0",
packages=[
'esmarc',
'swb_fix',
'wikidata',
'wikipedia',
'wikipedia_categories',
'geonames',
'gnd_sachgruppen',
'entityfacts',
'enrichment'
],
package_dir={
'esmarc': 'esmarc',
'swb_fix': 'esmarc',
'enrichment': 'enrichment',
'wikidata': 'enrichment',
'wikipedia': 'enrichment',
'wikipedia_categories': 'enrichment',
'entityfacts': 'enrichment',
'geonames': 'enrichment',
'gnd_sachgruppen': 'enrichment'
},
install_requires=[
'argparse>=1.4.0',
'elasticsearch>=7.0.0,<8.0.0',
'dateparser',
'urllib3',
'es2json @ git+https://github.com/slub/es2json.git'
],
python_requires=">=3.5,<4",
entry_points={
"console_scripts": [
"esmarc=esmarc.cli:cli",
"wikidata.py=enrichment.wikidata:run",
"wikipedia.py=enrichment.wikipedia:run",
"wikipedia_categories.py=enrichment.wikipedia_categories:run",
"entityfacts.py=enrichment.entityfacts:run",
"geonames.py=enrichment.geonames:run",
"gnd_sachgruppen.py=enrichment.gnd_sachgruppen:run",
]
}
)