Migrated from setup.py to package managed by uv

This commit is contained in:
2025-04-25 16:05:21 +01:00
parent 88a3aff0c2
commit c3867ca695
4 changed files with 4529 additions and 17 deletions

View File

@@ -1,3 +1,112 @@
[build-system]
requires = ["setuptools", "wheel", "babel>2.8"]
build-backend = "setuptools.build_meta"
[project]
name = "invenio-theme-iform"
dynamic = ["version"]
description = "Invenio module for the I-Form theme."
readme = { file = "README.rst", content-type = "text/x-rst" }
license = "MIT"
authors = [
{ name = "I-Form Advanced Research Manufacturing Research Centre", email = "cian.hughes@dcu.ie" },
]
keywords = ["invenio", "theme", "invenioRDM", "I-Form"]
classifiers = [
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python :: 3.12",
"Development Status :: 3 - Alpha",
]
requires-python = ">=3.12"
dependencies = [
"invenio-assets>=2.0.0",
"invenio-i18n>=1.3.1",
"invenio-config-iform>=0.11.0",
"invenio_records_global_search>=0.0.1",
"invenio_records_marc21>=0.21.0",
]
[project.urls]
Homepage = "https://github.com/Cian-H/invenio-theme-iform"
Issues = "https://github.com/Cian-H/invenio-theme-iform/issues"
[dependency-groups]
tests = [
"invenio-app>=1.3.4,<2.0.0",
"invenio-previewer>=2.2.0",
"invenio-rdm-records<17.0.0",
"invenio-search[opensearch2]>=2.1.0",
"pytest<8.0.0",
"pytest-black-ng>=0.4.0",
"pytest-invenio>=2.1.0",
"Sphinx>=4.5.0",
]
[project.entry-points."invenio_base.apps"]
invenio_theme_iform = "invenio_theme_iform:InvenioThemeIform"
[project.entry-points."invenio_base.blueprints"]
invenio_theme_iform = "invenio_theme_iform.views:ui_blueprint"
[project.entry-points."invenio_i18n.translations"]
messages = "invenio_theme_iform"
[project.entry-points."invenio_assets.webpack"]
invenio_theme_iform_theme = "invenio_theme_iform.webpack:theme"
[project.entry-points."invenio_config.module"]
invenio_theme_iform = "invenio_theme_iform.config"
[project.entry-points."invenio_base.finalize_app"]
invenio_theme_iform = "invenio_theme_iform.ext:finalize_app"
[tool.setuptools]
zip-safe = false
include-package-data = true
packages = { find = {} }
[tool.setuptools.dynamic]
version = { attr = "invenio_theme_iform.__version__" }
# Testing configuration
[tool.pytest]
addopts = "--black --isort --pydocstyle --doctest-glob=\"*.rst\" --doctest-modules --cov=invenio_theme_iform --cov-report=term-missing tests invenio_theme_iform"
testpaths = ["tests", "invenio_theme_iform"]
live_server_scope = "module"
[tool.pytest.ini_options]
addopts = "--black --isort --pydocstyle --doctest-glob=\"*.rst\" --doctest-modules --cov=invenio_theme_iform --cov-report=term-missing tests invenio_theme_iform"
testpaths = ["tests", "invenio_theme_iform"]
live_server_scope = "module"
# Code style tools configuration
[tool.black]
line-length = 88
target-version = ['py312']
[tool.isort]
profile = "black"
[tool.pydocstyle]
add_ignore = ["D401"]
# Babel configuration
[tool.babel.compile_catalog]
directory = "invenio_theme_iform/translations/"
use-fuzzy = true
[tool.babel.extract_messages]
copyright_holder = "I-Form Advanced Research Manufacturing Research Centre"
msgid_bugs_address = "cian.hughes@dcu.ie"
mapping-file = "babel.ini"
output-file = "invenio_theme_iform/translations/messages.pot"
add-comments = "NOTE"
[tool.babel.init_catalog]
input-file = "invenio_theme_iform/translations/messages.pot"
output-dir = "invenio_theme_iform/translations/"
[tool.babel.update_catalog]
input-file = "invenio_theme_iform/translations/messages.pot"
output-dir = "invenio_theme_iform/translations/"