mirror of
https://github.com/Cian-H/invenio-config-iform.git
synced 2025-12-22 13:11:56 +00:00
Switched build system from setuptools to hatchling
This commit is contained in:
@@ -8,11 +8,10 @@
|
|||||||
|
|
||||||
"""invenio module that adds I-Form configs."""
|
"""invenio module that adds I-Form configs."""
|
||||||
|
|
||||||
|
from .__version__ import version as __version__
|
||||||
from .ext import InvenioConfigIform
|
from .ext import InvenioConfigIform
|
||||||
from .utils import get_identity_from_user_by_email
|
from .utils import get_identity_from_user_by_email
|
||||||
|
|
||||||
__version__ = "0.12.5"
|
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
"InvenioConfigIform",
|
"InvenioConfigIform",
|
||||||
"__version__",
|
"__version__",
|
||||||
|
|||||||
11
invenio_config_iform/__version__.py
Normal file
11
invenio_config_iform/__version__.py
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
#
|
||||||
|
# Copyright (C) 2025 I-Form Advanced Manufacturing Research Centre.
|
||||||
|
#
|
||||||
|
# invenio-config-iform is free software; you can redistribute it and/or
|
||||||
|
# modify it under the terms of the MIT License; see LICENSE file for more
|
||||||
|
# details.
|
||||||
|
|
||||||
|
"""Version data for this python module."""
|
||||||
|
|
||||||
|
version = "0.13.0"
|
||||||
@@ -42,12 +42,7 @@ from invenio_rdm_records.services.generators import (
|
|||||||
SecretLinks,
|
SecretLinks,
|
||||||
SubmissionReviewer,
|
SubmissionReviewer,
|
||||||
)
|
)
|
||||||
from invenio_records_permissions.generators import (
|
from invenio_records_permissions.generators import AnyUser, Disable, IfConfig, SystemProcess
|
||||||
AnyUser,
|
|
||||||
Disable,
|
|
||||||
IfConfig,
|
|
||||||
SystemProcess,
|
|
||||||
)
|
|
||||||
from invenio_records_permissions.policies.records import RecordPermissionPolicy
|
from invenio_records_permissions.policies.records import RecordPermissionPolicy
|
||||||
from invenio_users_resources.services.permissions import UserManager
|
from invenio_users_resources.services.permissions import UserManager
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ classifiers = [
|
|||||||
"Programming Language :: Python :: 3.12",
|
"Programming Language :: Python :: 3.12",
|
||||||
"Development Status :: 3 - Alpha",
|
"Development Status :: 3 - Alpha",
|
||||||
]
|
]
|
||||||
requires-python = ">=3.12"
|
requires-python = ">=3.10,<3.13"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"invenio-cache>=1.1.1",
|
"invenio-cache>=1.1.1",
|
||||||
"invenio-i18n>=2.0.0",
|
"invenio-i18n>=2.0.0",
|
||||||
@@ -39,32 +39,17 @@ tests = [
|
|||||||
"Sphinx>=4.5.0",
|
"Sphinx>=4.5.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
[project.entry-points."invenio_base.apps"]
|
[build-system]
|
||||||
invenio_config_iform = "invenio_config_iform:InvenioConfigIform"
|
requires = ["hatchling"]
|
||||||
|
build-backend = "hatchling.build"
|
||||||
|
|
||||||
[project.entry-points."invenio_base.blueprints"]
|
[tool.hatch.version]
|
||||||
invenio_config_iform = "invenio_config_iform.views:ui_blueprint"
|
path = "invenio_config_iform/__version__.py"
|
||||||
|
|
||||||
[project.entry-points."invenio_i18n.translations"]
|
[tool.hatch.build]
|
||||||
messages = "invenio_config_iform"
|
|
||||||
|
|
||||||
[project.entry-points."invenio_config.module"]
|
|
||||||
invenio_config_iform = "invenio_config_iform.config"
|
|
||||||
|
|
||||||
[project.entry-points."invenio_base.finalize_app"]
|
|
||||||
invenio_config_iform = "invenio_config_iform.ext:finalize_app"
|
|
||||||
|
|
||||||
[tool.setuptools]
|
|
||||||
zip-safe = false
|
|
||||||
include-package-data = true
|
|
||||||
|
|
||||||
[tool.setuptools.packages.find]
|
|
||||||
include = ["invenio_config_iform"]
|
include = ["invenio_config_iform"]
|
||||||
exclude = [".venv", "tests/*", "*/tests/*", "*.rst", "run-tests.sh"]
|
exclude = [".venv", "tests/*", "*/tests/*", "*.rst", "run-tests.sh"]
|
||||||
|
|
||||||
[tool.setuptools.dynamic]
|
|
||||||
version = { attr = "invenio_config_iform.__version__" }
|
|
||||||
|
|
||||||
# Testing configuration
|
# Testing configuration
|
||||||
[tool.pytest]
|
[tool.pytest]
|
||||||
addopts = "--black --isort --pydocstyle --doctest-glob=\"*.rst\" --doctest-modules --cov=invenio_config_iform --cov-report=term-missing tests invenio_config_iform"
|
addopts = "--black --isort --pydocstyle --doctest-glob=\"*.rst\" --doctest-modules --cov=invenio_config_iform --cov-report=term-missing tests invenio_config_iform"
|
||||||
@@ -133,3 +118,6 @@ output-dir = "invenio_config_iform/translations/"
|
|||||||
[tool.babel.update_catalog]
|
[tool.babel.update_catalog]
|
||||||
input-file = "invenio_config_iform/translations/messages.pot"
|
input-file = "invenio_config_iform/translations/messages.pot"
|
||||||
output-dir = "invenio_config_iform/translations/"
|
output-dir = "invenio_config_iform/translations/"
|
||||||
|
|
||||||
|
[tool.uv.sources]
|
||||||
|
invenio-config-iform = { workspace = true }
|
||||||
|
|||||||
Reference in New Issue
Block a user