-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathsetup.cfg
95 lines (81 loc) · 2.59 KB
/
setup.cfg
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
{% include "misc/header.py" %}
[metadata]
name = {{ cookiecutter.project_shortname }}
version = attr: {{ cookiecutter.package_name }}.__version__
description = "{{ cookiecutter.description }}"
long_description = file: README.rst, CHANGES.rst
keywords = invenio TODO
license = MIT
author = {{ cookiecutter.author_name }}
author_email = {{ cookiecutter.author_email }}
platforms = any
url = https://github.com/{{ cookiecutter.github_repo }}
classifiers =
Development Status :: 1 - Planning
[options]
include_package_data = True
packages = find:
python_requires = >=3.7
zip_safe = False
install_requires =
invenio-base>=1.2.5
invenio-i18n>=1.3.1
[options.extras_require]
tests =
invenio-app>=1.3.4,<2.0.0
pytest-invenio>=2.1.0,<3.0.0
pytest-black>=0.3.0
sphinx>=4.5.0
# TODO: Check if the module uses search
elasticsearch7 =
invenio-search[elasticsearch7]>=2.1.0,<3.0.0
opensearch2 =
invenio-search[opensearch2]>=2.1.0,<3.0.0
[options.entry_points]
invenio_base.apps =
{{ cookiecutter.package_name }} = {{ cookiecutter.package_name }}:{{ cookiecutter.extension_class }}
invenio_base.blueprints =
{{ cookiecutter.package_name }} = {{ cookiecutter.package_name }}.views:blueprint
invenio_i18n.translations =
messages = {{ cookiecutter.package_name }}
# TODO: Edit these entry points to fit your needs.
# invenio_access.actions =
# invenio_admin.actions =
# invenio_assets.bundles =
# invenio_base.api_apps =
# invenio_base.api_blueprints =
# invenio_celery.tasks =
# invenio_db.models =
# invenio_pidstore.minters =
# invenio_records.jsonresolver =
[build_sphinx]
source-dir = docs/
build-dir = docs/_build
all_files = 1
[bdist_wheel]
universal = 1
[pydocstyle]
add_ignore = D401
[isort]
profile=black
[check-manifest]
ignore =
*-requirements.txt
[tool:pytest]
addopts = --black --isort --pydocstyle --doctest-glob="*.rst" --doctest-modules --cov={{ cookiecutter.package_name }} --cov-report=term-missing
testpaths = docs tests {{ cookiecutter.package_name }}
[compile_catalog]
directory = {{ cookiecutter.package_name }}/translations/
use-fuzzy = True
[extract_messages]
copyright_holder = {{ cookiecutter.copyright_holder }}
msgid_bugs_address = {{ cookiecutter.author_email }}
mapping-file = babel.ini
output-file = {{ cookiecutter.package_name }}/translations/messages.pot
add-comments = NOTE
[init_catalog]
input-file = {{ cookiecutter.package_name }}/translations/messages.pot
output-dir = {{ cookiecutter.package_name }}/translations/
[update_catalog]
input-file = {{ cookiecutter.package_name }}/translations/messages.pot
output-dir = {{ cookiecutter.package_name }}/translations/