-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.py
executable file
·95 lines (87 loc) · 4.28 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
#!/usr/bin/env python
import sys
from setuptools import setup
import versioneer
from _datalad_buildsupport.setup import (
BuildManPage,
)
cmdclass = versioneer.get_cmdclass()
cmdclass.update(build_manpage=BuildManPage)
# Give setuptools a hint to complain if it's too old a version
# 30.3.0 allows us to put most metadata in setup.cfg
# Should match pyproject.toml
SETUP_REQUIRES = ['setuptools >= 30.3.0']
# This enables setuptools to install wheel on-the-fly
SETUP_REQUIRES += ['wheel'] if 'bdist_wheel' in sys.argv else []
setup(
name="datalad_metalad",
version=versioneer.get_version(),
cmdclass=cmdclass,
setup_requires=SETUP_REQUIRES,
packages=[
'datalad_metalad',
'datalad_metalad.pipeline',
'datalad_metalad.pipeline.consumer',
'datalad_metalad.pipeline.pipelines',
'datalad_metalad.pipeline.processor',
'datalad_metalad.pipeline.provider',
'datalad_metalad.extractors',
'datalad_metalad.extractors.tests',
'datalad_metalad.extractors.legacy',
'datalad_metalad.extractors.legacy.tests',
'datalad_metalad.extractors.studyminimeta',
'datalad_metalad.filters',
'datalad_metalad.indexers',
'datalad_metalad.indexers.tests',
'datalad_metalad.pathutils',
'datalad_metalad.pathutils.tests',
'datalad_metalad.tests',
'datalad_metalad.metadatatypes',
'_datalad_buildsupport',
],
package_dir={
'datalad_metalad.pipeline': 'datalad_metalad/pipeline',
},
package_data={
'datalad_metalad.pipeline': ['pipelines/*.json'],
'datalad_metalad.extractors.legacy.tests': ['data/*'],
},
entry_points={
'datalad.extensions': [
'metalad=datalad_metalad:command_suite',
],
'datalad.tests': [
'metalad=datalad_metalad'
],
'datalad.metadata.extractors': [
'metalad_core=datalad_metalad.extractors.core:DataladCoreExtractor',
'metalad_example_dataset=datalad_metalad.extractors.metalad_example_dataset:MetaladExampleDatasetExtractor',
'metalad_example_file=datalad_metalad.extractors.metalad_example_file:MetaladExampleFileExtractor',
'metalad_external_dataset=datalad_metalad.extractors.external_dataset:ExternalDatasetExtractor',
'metalad_external_file=datalad_metalad.extractors.external_file:ExternalFileExtractor',
'metalad_annex=datalad_metalad.extractors.annex:AnnexMetadataExtractor',
'metalad_custom=datalad_metalad.extractors.custom:CustomMetadataExtractor',
'metalad_genericjson_dataset=datalad_metalad.extractors.genericjson_dataset:GenericJsonDatasetExtractor',
'metalad_genericjson_file=datalad_metalad.extractors.genericjson_file:GenericJsonFileExtractor',
'metalad_runprov=datalad_metalad.extractors.runprov:RunProvenanceExtractor',
'metalad_studyminimeta=datalad_metalad.extractors.studyminimeta.main:StudyMiniMetaExtractor',
'external_dataset=datalad_metalad.extractors.external_dataset:ExternalDatasetExtractor',
'external_file=datalad_metalad.extractors.external_file:ExternalFileExtractor',
'annex=datalad_metalad.extractors.legacy.annex:AnnexMetadataExtractor',
'audio=datalad_metalad.extractors.legacy.audio:AudioMetadataExtractor',
'datacite=datalad_metalad.extractors.legacy.datacite:DataciteMetadataExtractor',
'datalad_core=datalad_metalad.extractors.legacy.datalad_core:DataladCoreMetadataExtractor',
'datalad_rfc822=datalad_metalad.extractors.legacy.datalad_rfc822:DataladRFC822MetadataExtractor',
'exif=datalad_metalad.extractors.legacy.exif:ExifMetadataExtractor',
'frictionless_datapackage=datalad_metalad.extractors.legacy.frictionless_datapackage:FRDPMetadataExtractor',
'image=datalad_metalad.extractors.legacy.image:ImageMetadataExtractor',
'xmp=datalad_metalad.extractors.legacy.xmp:XmpMetadataExtractor',
],
'datalad.metadata.indexers': [
'metalad_studyminimeta=datalad_metalad.indexers.studyminimeta:StudyMiniMetaIndexer',
],
'datalad.metadata.filters': [
'metalad_demofilter=datalad_metalad.filters.demofilter:DemoFilter',
],
},
)