|
| 1 | +# SPDX-FileCopyrightText: 2016-2019 CERN. |
| 2 | +# SPDX-FileCopyrightText: 2022-2026 Graz University of Technology. |
| 3 | +# SPDX-FileCopyrightText: 2022 Graz University of Technology. |
| 4 | +# SPDX-FileCopyrightText: 2026 TU Wien. |
| 5 | +# SPDX-License-Identifier: MIT |
| 6 | + |
| 7 | +[project] |
| 8 | +name = "invenio-records-files" |
| 9 | +description = "Invenio modules that integrates records and files." |
| 10 | +readme = "README.rst" |
| 11 | +requires-python = ">=3.9" |
| 12 | +license = "MIT" |
| 13 | +authors = [ |
| 14 | + { name = "CERN", email = "info@inveniosoftware.org" }, |
| 15 | +] |
| 16 | +keywords = [ |
| 17 | + "files", |
| 18 | + "invenio", |
| 19 | + "records", |
| 20 | +] |
| 21 | +classifiers = [ |
| 22 | + "Development Status :: 5 - Production/Stable", |
| 23 | +] |
| 24 | +dependencies = [ |
| 25 | + "invenio-base>=1.2.2,<3.0.0", |
| 26 | + "invenio-files-rest>=6.0.0,<7.0.0", |
| 27 | + "invenio-records>=6.0.0,<7.0.0", |
| 28 | + "invenio-records-rest>=6.0.0,<7.0.0", |
| 29 | +] |
| 30 | +dynamic = ["version"] |
| 31 | + |
| 32 | +[project.urls] |
| 33 | +Homepage = "https://github.com/inveniosoftware/invenio-records-files" |
| 34 | + |
| 35 | +[project.entry-points."invenio_base.api_apps"] |
| 36 | +invenio_records_files = "invenio_records_files:InvenioRecordsFiles" |
| 37 | + |
| 38 | +[project.entry-points."invenio_base.api_blueprints"] |
| 39 | +invenio_records_files = "invenio_records_files.views:create_blueprint_from_app" |
| 40 | + |
| 41 | +[project.entry-points."invenio_base.apps"] |
| 42 | +invenio_records_files = "invenio_records_files:InvenioRecordsFiles" |
| 43 | + |
| 44 | +[project.entry-points."invenio_db.alembic"] |
| 45 | +invenio_records_files = "invenio_records_files:alembic" |
| 46 | + |
| 47 | +[project.entry-points."invenio_db.models"] |
| 48 | +invenio_records_files = "invenio_records_files.models" |
| 49 | + |
| 50 | +[project.entry-points."invenio_jsonschemas.schemas"] |
| 51 | +records_files = "invenio_records_files.jsonschemas" |
| 52 | + |
| 53 | +[project.optional-dependencies] |
| 54 | +docs = [ |
| 55 | + "sphinx>=3", |
| 56 | +] |
| 57 | +elasticsearch7 = [ |
| 58 | + "invenio-search[elasticsearch7]>=3.0.0,<4.0.0", |
| 59 | +] |
| 60 | +mysql = [ |
| 61 | + "invenio-db[mysql,versioning]>=2.2.0,<3.0.0", |
| 62 | +] |
| 63 | +opensearch2 = [ |
| 64 | + "invenio-search[opensearch2]>=3.0.0,<4.0.0", |
| 65 | +] |
| 66 | +postgresql = [ |
| 67 | + "invenio-db[postgresql,versioning]>=2.2.0,<3.0.0", |
| 68 | +] |
| 69 | +sqlite = [ |
| 70 | + "invenio-db[versioning]>=2.2.0,<3.0.0", |
| 71 | +] |
| 72 | +tests = [ |
| 73 | + "invenio-indexer>=6.0.0,<7.0.0", |
| 74 | + "mock>=1.3.0", |
| 75 | + "pytest-black>=0.6.0", |
| 76 | + "pytest-invenio>=4.0.0,<5.0.0", |
| 77 | + "sphinx>=3", |
| 78 | +] |
| 79 | + |
1 | 80 | [build-system] |
2 | | -requires = ["setuptools", "wheel", "babel>2.8"] |
3 | | -build-backend = "setuptools.build_meta" |
| 81 | +requires = ["hatchling"] |
| 82 | +build-backend = "hatchling.build" |
| 83 | + |
| 84 | +[tool.hatch.version] |
| 85 | +path = "invenio_records_files/__init__.py" |
| 86 | + |
| 87 | +[tool.hatch.build.targets.sdist] |
| 88 | +include = [ |
| 89 | + "/invenio_records_files", |
| 90 | +] |
| 91 | + |
| 92 | +[tool.isort] |
| 93 | +profile = "black" |
| 94 | + |
| 95 | +[tool.pydocstyle] |
| 96 | +add_ignore = "D401" |
| 97 | + |
| 98 | +[tool.pytest.ini_options] |
| 99 | +addopts = '--black --isort --pydocstyle --doctest-glob="*.rst" --doctest-modules --cov=invenio_records_files --cov-report=term-missing' |
| 100 | +testpaths = "tests invenio_records_files" |
| 101 | +live_server_scope = "module" |
4 | 102 |
|
| 103 | +# UV needs to be told explicitly which extras are conflicting: |
| 104 | +# https://docs.astral.sh/uv/concepts/projects/config/#conflicting-dependencies |
| 105 | +[tool.uv] |
| 106 | +conflicts = [ |
| 107 | + [ |
| 108 | + { extra = "opensearch1" }, |
| 109 | + { extra = "opensearch2" }, |
| 110 | + { extra = "elasticsearch7" }, |
| 111 | + ] |
| 112 | +] |
0 commit comments