-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
93 lines (85 loc) · 3.46 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
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# This file is part of CERN Search.
# Copyright (C) 2018-2021 CERN.
#
# Citadel Search is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
"""Citadel Search."""
import os
from setuptools import setup
readme = open("README.md").read()
history = open("CHANGES.md").read()
setup_requires = [
"pytest-runner>=3.0.0,<5",
]
tests_require = [
"pytest-runner>=3.0.0,<5",
]
install_requires = [
"pytest",
]
# Get the version string. Cannot be done with import!
g = {}
with open(os.path.join("cern_search_rest_api", "version.py"), "rt") as fp:
exec(fp.read(), g)
version = g["__version__"]
setup(
name="cern-search-rest-api",
version=version,
description="CERN Search as a Service",
long_description=readme + "\n\n" + history,
license="GPLv3",
author="CERN",
author_email="[email protected]",
url="http://search.cern.ch/",
zip_safe=False,
include_package_data=True,
platforms="any",
entry_points={
"console_scripts": [
"cern_search_rest_api = invenio_app.cli:cli",
],
"invenio_config.module": ["cern_search_rest_api = cern_search_rest_api.config"],
"invenio_search.mappings": [
"test = cern_search_rest_api.modules.cernsearch.mappings.test",
"indico = cern_search_rest_api.modules.cernsearch.mappings.indico",
"webservices = cern_search_rest_api.modules.cernsearch.mappings.webservices",
"edms = cern_search_rest_api.modules.cernsearch.mappings.edms",
"archives = cern_search_rest_api.modules.cernsearch.mappings.archives",
],
"invenio_jsonschemas.schemas": [
"test = cern_search_rest_api.modules.cernsearch.jsonschemas.test",
"indico = cern_search_rest_api.modules.cernsearch.jsonschemas.indico",
"webservices = cern_search_rest_api.modules.cernsearch.jsonschemas.webservices",
"edms = cern_search_rest_api.modules.cernsearch.jsonschemas.edms",
"archives = cern_search_rest_api.modules.cernsearch.jsonschemas.archives",
],
"invenio_base.apps": ["cern-search = cern_search_rest_api.modules.cernsearch.ext:CERNSearch"],
"invenio_base.api_apps": ["cern-search = cern_search_rest_api.modules.cernsearch.ext:CERNSearch"],
"invenio_base.blueprints": [
"health_check = cern_search_rest_api.modules.cernsearch.views:build_health_blueprint"
],
"invenio_celery.tasks": [
"cern-search = cern_search_rest_api.modules.cernsearch.tasks",
"cern-search-indexer_tasks = cern_search_rest_api.modules.cernsearch.indexer_tasks",
],
"flask.commands": ["utils = cern_search_rest_api.modules.cernsearch.cli:utils"],
},
classifiers=[
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Development Status :: 1 - Pre-Alpha",
],
setup_requires=setup_requires,
tests_require=tests_require,
install_requires=install_requires,
)