Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,7 @@ indent_size = 2
# Dockerfile
[Dockerfile]
indent_size = 4

# Align TOML indenting with Tombi
[*.toml]
indent_size = 2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,4 @@ docs/_build/

# PyBuilder
target/
uv.lock
22 changes: 0 additions & 22 deletions MANIFEST.in

This file was deleted.

112 changes: 110 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,112 @@
# SPDX-FileCopyrightText: 2016-2019 CERN.
# SPDX-FileCopyrightText: 2022-2026 Graz University of Technology.
# SPDX-FileCopyrightText: 2022 Graz University of Technology.
# SPDX-FileCopyrightText: 2026 TU Wien.
# SPDX-License-Identifier: MIT

[project]
name = "invenio-records-files"
description = "Invenio modules that integrates records and files."
readme = "README.rst"
requires-python = ">=3.9"
license = "MIT"
authors = [
{ name = "CERN", email = "info@inveniosoftware.org" },
]
keywords = [
"files",
"invenio",
"records",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
]
dependencies = [
"invenio-base>=1.2.2,<3.0.0",
"invenio-files-rest>=6.0.0,<7.0.0",
"invenio-records>=6.0.0,<7.0.0",
"invenio-records-rest>=6.0.0,<7.0.0",
]
dynamic = ["version"]

[project.urls]
Repository = "https://github.com/inveniosoftware/invenio-records-files"

[project.entry-points."invenio_base.api_apps"]
invenio_records_files = "invenio_records_files:InvenioRecordsFiles"

[project.entry-points."invenio_base.api_blueprints"]
invenio_records_files = "invenio_records_files.views:create_blueprint_from_app"

[project.entry-points."invenio_base.apps"]
invenio_records_files = "invenio_records_files:InvenioRecordsFiles"

[project.entry-points."invenio_db.alembic"]
invenio_records_files = "invenio_records_files:alembic"

[project.entry-points."invenio_db.models"]
invenio_records_files = "invenio_records_files.models"

[project.entry-points."invenio_jsonschemas.schemas"]
records_files = "invenio_records_files.jsonschemas"

[project.optional-dependencies]
docs = [
"sphinx>=3",
]
elasticsearch7 = [
"invenio-search[elasticsearch7]>=3.0.0,<4.0.0",
]
mysql = [
"invenio-db[mysql,versioning]>=2.2.0,<3.0.0",
]
opensearch2 = [
"invenio-search[opensearch2]>=3.0.0,<4.0.0",
]
postgresql = [
"invenio-db[postgresql,versioning]>=2.2.0,<3.0.0",
]
sqlite = [
"invenio-db[versioning]>=2.2.0,<3.0.0",
]
tests = [
"invenio-indexer>=6.0.0,<7.0.0",
"mock>=1.3.0",
"pytest-black>=0.6.0",
"pytest-invenio>=4.0.0,<5.0.0",
"sphinx>=3",
]

[build-system]
requires = ["setuptools", "wheel", "babel>2.8"]
build-backend = "setuptools.build_meta"
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.version]
path = "invenio_records_files/__init__.py"

[tool.hatch.build.targets.sdist]
include = [
"/invenio_records_files",
]

[tool.isort]
profile = "black"

[tool.pydocstyle]
add_ignore = "D401"

[tool.pytest.ini_options]
addopts = '--black --isort --pydocstyle --doctest-glob="*.rst" --doctest-modules --cov=invenio_records_files --cov-report=term-missing'
testpaths = "tests invenio_records_files"
live_server_scope = "module"

# UV needs to be told explicitly which extras are conflicting:
# https://docs.astral.sh/uv/concepts/projects/config/#conflicting-dependencies
[tool.uv]
conflicts = [
[
{ extra = "opensearch1" },
{ extra = "opensearch2" },
{ extra = "elasticsearch7" },
]
]
6 changes: 0 additions & 6 deletions requirements-devel.txt

This file was deleted.

1 change: 0 additions & 1 deletion run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ function cleanup() {
trap cleanup EXIT


python -m check_manifest
python -m sphinx.cmd.build -qnNW docs docs/_build/html
eval "$(docker-services-cli up --db ${DB:-postgresql} --env)"
python -m pytest
Expand Down
84 changes: 0 additions & 84 deletions setup.cfg

This file was deleted.

9 changes: 0 additions & 9 deletions setup.py

This file was deleted.

Loading