Newer
Older
# -*- coding: utf-8 -*-
#
# Copyright (C) 2024 TU Wien.
#
# Invenio-Theme-TUW is free software; you can redistribute it and/or modify
# it under the terms of the MIT License; see LICENSE file for more details.
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
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "invenio_theme_tuw/__init__.py"
[tool.hatch.build.targets.sdist]
exclude = [
"sonar-project.properties",
".gitlab-ci.yml",
]
[project]
name = "invenio-theme-tuw"
dynamic = ["version"]
description = "TU Wien corporate design for InvenioRDM."
keywords = ["invenio", "theme", "corporate design", "tu wien"]
requires-python = ">=3.9"
readme = "README.rst"
license = "MIT"
authors = [
{name = "Team of the Center for Research Data Management (TU Wien)", email = "tudata@tuwien.ac.at"},
]
classifiers = [
"Environment :: Web Environment",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Development Status :: 5 - Production/Stable",
]
dependencies = [
"Flask-WebpackExt>=1.0.0",
"Invenio-App-RDM>=12.0.0,<13.0.0",
"Invenio-Search>=2.0.0",
"Flask>=2.0.2",
"Flask-Session-Captcha>=1.3.0,<1.4",
]
[project.optional-dependencies]
tests = [
"pytest-ruff>=0.4.1",
"pytest-black>=0.3.0",
"pytest-invenio>=1.4.0,<3",
"opensearch-dsl>=2.1.0",
]
[project.urls]
Repository = "https://gitlab.tuwien.ac.at/crdm/invenio-theme-tuw"
# entrypoints
[project.entry-points."invenio_base.apps"]
invenio_theme_tuw = "invenio_theme_tuw:InvenioThemeTUW"
[project.entry-points."invenio_base.blueprints"]
invenio_theme_tuw_blueprint = "invenio_theme_tuw.views:create_blueprint"
[project.entry-points."invenio_base.finalize_app"]
invenio_theme_tuw_bp_order = "invenio_theme_tuw.startup:override_bp_order"
invenio_theme_tuw_deposit_pages = "invenio_theme_tuw.startup:override_view_functions"
invenio_theme_tuw_users_admin = "invenio_theme_tuw.startup:register_menu_entries"
[project.entry-points."invenio_assets.webpack"]
invenio_theme_tuw_theme = "invenio_theme_tuw.webpack:theme"
[project.entry-points."invenio_config.module"]
invenio_theme_tuw = "invenio_theme_tuw.config"
[project.entry-points."invenio_i18n.translations"]
messages = "invenio_theme_tuw"
# configuration for tools
[tool.isort]
profile = "black"
[tool.pytest.ini_options]
addopts = '--ruff --black --isort --pydocstyle --doctest-glob="*.rst" --doctest-modules --cov=invenio_theme_tuw --cov-report=term-missing'
testpaths = "tests invenio_theme_tuw"
[tool.pydocstyle]
add_ignore = "D401"