-
Notifications
You must be signed in to change notification settings - Fork 12
/
setup.py
111 lines (104 loc) · 4.1 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
# -*- coding: utf-8 -*-
#
# Copyright (C) 2018 CERN.
# Copyright (c) 2017 Thomas P. Robitaille.
#
# Asclepias Broker is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
"""Scholarly link broker for the Asclepias project."""
import os
from setuptools import find_packages, setup
readme = open('README.rst').read()
packages = find_packages()
# Get the version string. Cannot be done with import!
g = {}
with open(os.path.join('asclepias_broker', 'version.py'), 'rt') as fp:
exec(fp.read(), g)
version = g['__version__']
setup(
name='asclepias-broker',
version=version,
description=__doc__,
long_description=readme,
keywords='scholarly link broker',
license='MIT',
author='CERN, Thomas Robitaille',
author_email='[email protected]',
url='https://github.com/asclepias/asclepias-broker',
packages=packages,
zip_safe=False,
include_package_data=True,
platforms='any',
entry_points={
'console_scripts': [
'asclepias-broker = invenio_app.cli:cli',
],
'flask.commands': [
'metadata = asclepias_broker.metadata.cli:metadata',
'events = asclepias_broker.events.cli:events',
'search = asclepias_broker.search.cli:search',
'harvester = asclepias_broker.harvester.cli:harvester',
'monitor = asclepias_broker.monitoring.cli:monitor',
],
'invenio_config.module': [
'asclepias_broker = asclepias_broker.config',
],
'invenio_base.apps': [
'flask_breadcrumbs = flask_breadcrumbs:Breadcrumbs',
('asclepias_harvester = '
'asclepias_broker.harvester.ext:AsclepiasHarvester'),
],
'invenio_base.api_apps': [
# TODO: Fix this in Flask-Menu/Breadcrumbs (i.e. make it possible
# to skip menus/breadcrumbs registration if the extensions aare not
# loaded/enabled...)
'flask_breadcrumbs = flask_breadcrumbs:Breadcrumbs',
('asclepias_harvester = '
'asclepias_broker.harvester.ext:AsclepiasHarvester'),
],
'invenio_base.api_blueprints': [
('asclepias_broker_events = '
'asclepias_broker.events.views:blueprint'),
('asclepias_broker_search = '
'asclepias_broker.search.views:blueprint'),
],
'invenio_celery.tasks': [
'asclepias_broker_graph_tasks = asclepias_broker.graph.tasks',
'asclepias_broker_search_tasks = asclepias_broker.search.tasks',
'asclepias_harvester_tasks = asclepias_broker.harvester.tasks',
'asclepias_monitoring_tasks = asclepias_broker.monitoring.tasks'
],
'invenio_db.models': [
'asclepias_broker_core = asclepias_broker.core.models',
'asclepias_broker_events = asclepias_broker.events.models',
'asclepias_broker_graph = asclepias_broker.graph.models',
'asclepias_broker_metadata = asclepias_broker.metadata.models',
],
'invenio_pidstore.fetchers': [
'relid = asclepias_broker.pidstore:relid_fetcher',
'meta = asclepias_broker.pidstore:relid_fetcher',
],
'invenio_pidstore.minters': [
'relid = asclepias_broker.pidstore:relid_minter',
'meta = asclepias_broker.pidstore:relid_minter',
],
'invenio_search.mappings': [
'relationships = asclepias_broker.mappings',
],
'invenio_queues.queues': [
('asclepias_harvester_queues = '
'asclepias_broker.harvester.queues:declare_queues'),
],
},
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Development Status :: 3 - Alpha',
],
)