-
Notifications
You must be signed in to change notification settings - Fork 7
/
pyproject.toml
182 lines (156 loc) · 6.4 KB
/
pyproject.toml
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
[tool.poetry]
name = "rero-ebooks"
version = "0.7.0"
description = "Ebooks repository for RERO."
authors = ["RERO <[email protected]>"]
license = "GNU Affero General Public License v3.0"
[tool.poetry.dependencies]
python = ">= 3.9, <3.10"
## Python packages dependencies (order matters)
#------------------------------------------------------------------------------
## Note: poetry evaluates the package constraints from the top to the bottom
## and respects only the last constraint to install the package.
## Thus the most strength constraint should be at the end.
## Imagine the following package list for the foo package with the
## most recent version equal to 5.0:
## A foo Pipfile example:
## ----------------------
## foo = ">1.0" # first will install 5.0
## foo = "==1.0" # then will downgrade to 1.0
## foo = ">3.0" # finally will upgrade to 5.0
## when the python code will be executed a conflict exception will be raised.
#------------------------------------------------------------------------------
# Default from Invenio
lxml = ">=4.9.1"
marshmallow = ">=3.0.0,<4.0.0"
uwsgi = ">=2.0"
uwsgi-tools = ">=1.1.1"
uwsgitop = ">=0.11"
## Third party invenio modules used by RERO EBOOKS
# TODO: needed for `parameter from` fix.
invenio-oaiharvester = { git = "https://github.com/inveniosoftware/invenio-oaiharvester.git", tag = "v1.0.0a4" }
invenio-search = {version = ">=2.1.0,<3.0.0", extras = ["elasticsearch7"]}
# Invenio core modules
invenio-app = ">=1.4.0,<2.0.0"
invenio-base = ">=1.3.0,<2.0.0"
invenio-cache = ">=1.1.1,<2.0.0"
invenio-celery = ">=1.2.5,<2.0.0"
invenio-config = ">=1.0.3,<2.0.0"
invenio-i18n = ">=2.0.0,<3.0.0"
invenio-db = {version = ">=1.1.0,<2.0.0", extras = ["postgresql"]}
# Invenio base bundle
invenio-admin = ">=1.4.0,<1.5.0"
invenio-assets = ">=3.0.0,<4.0.0"
invenio-formatter = ">=2.0.0,<3.0.0"
invenio-logging = ">=2.0.0,<3.0.0"
invenio-mail = ">=2.0.0,<3.0.0"
invenio-rest = ">=1.3.0,<2.0.0"
invenio-theme = ">=3.0.0,<4.0.0"
# Invenio auth bundle
invenio-access = ">=2.0.0,<3.0.0"
invenio-accounts = ">=5.0.0,<6.0.0"
invenio-oauth2server = ">=2.0.0,<3.0.0"
invenio-oauthclient = ">=4.0.0,<5.0.0"
invenio-userprofiles = ">=3.0.0,<4.0.0"
# Invenio metadata bundle
invenio-indexer = ">=2.2.0,<3.0.0"
invenio-jsonschemas = ">=1.1.4,<2.0.0"
invenio-oaiserver = ">=2.2.0,<3.0.0"
invenio-pidstore = ">=1.3.0,<2.0.0"
invenio-records-rest = ">=2.2.0,<3.0.0"
invenio-records-ui = ">=1.2.0,<2.0.0"
invenio-records = "2.1.0,<3.0.0"
#invenio-search-ui = ">=2.4.0,<3.0.0"
# Pinned due to before_first_request deprecation https://flask.palletsprojects.com/en/2.2.x/api/#flask.Flask.before_first_request
Flask = ">=2.2.0,<2.3.0"
sentry-sdk = ">=1.0.0" # normaly in invenio-logging = {version = ">=2.0.0,<3.0.0", extras = ["sentry_sdk"]}
dojson = ">=1.4.0"
# TODO: dojson problem = AttributeError: 'Group' object has no attribute 'resultcallback'
click = "<8.1.0"
## RERO ILS specific python modules
PyYAML = ">=5.3.1"
isbnlib = ">=3.9.1"
requests = ">=2.20.0"
responses = "*"
## Deployment
python-dotenv = ">=0.13.0"
## RERO ILS specific python modules
poethepoet = "*"
# rero-invenio-base = ">=0.2.0"
# werkzeug = "<2.3.0"
[tool.poetry.dev-dependencies]
## Python packages development dependencies (order matters)
#----------------------------------------------------------
## Default from Invenio
pytest-invenio = ">=2.1.6,<3.0.0"
pydocstyle = ">=6.1.1"
pytest-black = ">=0.3.2"
Sphinx = ">=4.5.0"
## RERO ILS specific python packages
safety = ">=1.8,<3.0.0"
mock = ">=2.0.0"
autoflake = ">=1.3.1"
appnope = { version = "*", optional = true }
[tool.poetry.plugins."console_scripts"]
rero-ebooks = "invenio_app.cli:cli"
[tool.poetry.plugins."invenio_assets.webpack"]
rero_ebooks_theme = "rero_ebooks.theme.webpack:theme"
[tool.poetry.plugins."invenio_base.apps"]
rero_ebooks = "rero_ebooks:ReroEBooks"
[tool.poetry.plugins."invenio_base.blueprints"]
rero_ebooks = "rero_ebooks.theme.views:blueprint"
[tool.poetry.plugins."invenio_base.api_blueprints"]
api_rero_ebooks = "rero_ebooks.theme.views:api_blueprint"
[tool.poetry.plugins."invenio_config.module"]
rero_ebooks = "rero_ebooks.config"
[tool.poetry.plugins."invenio_i18n.translations"]
messages = "rero_ebooks"
[tool.poetry.plugins."invenio_pidstore.minters"]
ebook = "rero_ebooks.minters:ebook_pid_minter"
[tool.poetry.plugins."invenio_pidstore.fetchers"]
ebook = "rero_ebooks.fetchers:ebook_pid_fetcher"
[tool.poetry.plugins."invenio_search.mappings"]
ebooks = "rero_ebooks.mappings"
[tool.poetry.plugins."dojson.cli.rule"]
tomarc21 = "dojson.contrib.to_marc21:to_marc21"
cantookmarc21 = "rero_ebooks.dojson.marc21:marc21"
cantookjson = "rero_ebooks.dojson.json.model:cantook_json"
[tool.poetry.plugins."dojson.cli.dump"]
pjson = "rero_ebooks.dojson.utils:dump"
[tool.poetry.plugins."flask.commands"]
oaiharvester = "rero_ebooks.cli:oaiharvester"
apiharvester = "rero_ebooks.apiharvester.cli:apiharvester"
[tool.poetry.plugins."rero_ebooks.marc21"]
bdleader = "rero_ebooks.dojson.marc21.fields.bdleader"
bd00x = "rero_ebooks.dojson.marc21.fields.bd00x"
bd01x09x = "rero_ebooks.dojson.marc21.fields.bd01x09x"
bd1xx = "rero_ebooks.dojson.marc21.fields.bd1xx"
bd20x24x = "rero_ebooks.dojson.marc21.fields.bd20x24x"
bd25x28x = "rero_ebooks.dojson.marc21.fields.bd25x28x"
bd3xx = "rero_ebooks.dojson.marc21.fields.bd3xx"
bd4xx = "rero_ebooks.dojson.marc21.fields.bd4xx"
bd5xx = "rero_ebooks.dojson.marc21.fields.bd5xx"
bd6xx = "rero_ebooks.dojson.marc21.fields.bd6xx"
bd70x75x = "rero_ebooks.dojson.marc21.fields.bd70x75x"
bd76x78x = "rero_ebooks.dojson.marc21.fields.bd76x78x"
bd80x83x = "rero_ebooks.dojson.marc21.fields.bd80x83x"
bd84188x = "rero_ebooks.dojson.marc21.fields.bd84188x"
[tool.poetry.plugins."invenio_db.models"]
apiharvester = "rero_ebooks.apiharvester.models"
[tool.poetry.plugins."invenio_celery.tasks"]
rero_ebooks = "rero_ebooks.tasks"
apiharvester = "rero_ebooks.apiharvester.tasks"
[tool.poe.tasks]
bootstrap = {cmd = "./scripts/bootstrap", help = "Runs bootstrap"}
console = {cmd = "./scripts/console", help = "Opens invenio shell"}
run_tests = {cmd = "./scripts/tests", help = "Runs all tests"}
tests = {cmd = "pytest", help = "pytest"}
tests_debug = {cmd = "./scripts/pytest -s --v --no-cov", help = "pytest -s --v --no-cov"}
server = {cmd = "./scripts/server", help = "Starts the server "}
setup = {cmd = "./scripts/setup", help = "Runs setup"}
update = {cmd = "./scripts/update", help = "Runs update"}
[tool.isort]
profile = "black"
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"