Compare commits

..
Author SHA1 Message Date
Cian-H eb999d49ef chore: push version tag 2026-08-12 15:51:57 +01:00
Cian-H ef0fb9b06c Replaced german language with irish 2026-07-15 14:24:04 +01:00
Cian-H 96b7fc0b53 Updated devenv 2026-07-01 09:26:49 +01:00
Cian-H c017d2bc6f Fixed missing TUG to I-Form conversions 2025-09-01 11:06:38 +01:00
Cian-H 672f686d1a Added dependabot config 2025-05-27 17:52:59 +01:00
Cian-H 59c3ac5bc2 Patch: badge display fix 2025-05-23 17:24:58 +01:00
Cian-H 1e75799497 Patch: Another attempt to fix badge display 2025-05-23 17:20:57 +01:00
Cian-H fec9dd75c7 Patch: Fixed code coverage badge display 2025-05-23 17:17:57 +01:00
Cian-H 2ae8ab6926 Patch: fixed test config typo 2025-05-23 17:15:02 +01:00
Cian-H e24e1f2cbc Patch: code cleanup 2025-05-23 17:13:41 +01:00
Cian-H e3465637f9 Removed unnecessary babel config 2025-05-23 17:10:48 +01:00
Cian-H f7a4ab0939 Removed unnecessary docker version check 2025-05-23 16:26:13 +01:00
12 changed files with 223 additions and 158 deletions
+29
View File
@@ -0,0 +1,29 @@
version: 2
updates:
- package-ecosystem: "uv"
directory: "/"
schedule:
interval: "weekly"
day: "monday"
time: "04:00"
open-pull-requests-limit: 8
allow:
- dependency-type: "all"
reviewers:
- "Cian-H"
assignees:
- "Cian-H"
commit-message:
prefix: "uv-deps"
prefix-development: "uv-deps-dev"
include: "scope"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "monday"
time: "04:00"
open-pull-requests-limit: 5
commit-message:
prefix: "ci"
-2
View File
@@ -74,8 +74,6 @@ jobs:
run: |
uv --version
uv run python --version
docker --version
docker ps
- name: Install dependencies
run: |
+3 -3
View File
@@ -24,11 +24,11 @@
.. image:: https://readthedocs.org/projects/invenio-config-iform/badge/?version=latest
:target: https://invenio-config-iform.readthedocs.io/en/latest/?badge=latest
.. image:: https://img.shields.io/coveralls/mb-wali/invenio-config-iform.svg
:target: https://coveralls.io/r/Cian-H/invenio-config-iform
.. image:: https://coveralls.io/repos/github/Cian-H/invenio-config-iform/badge.svg?branch=master
:target: https://coveralls.io/github/Cian-H/invenio-config-iform?branch=master
.. image:: https://img.shields.io/badge/code%20style-Ruff-D7FF64.svg
:target: https://github.com/astral-sh/ruff
:target: https://github.com/astral-sh/ruff
invenio module that adds I-Form configs.
+54 -18
View File
@@ -3,10 +3,11 @@
"devenv": {
"locked": {
"dir": "src/modules",
"lastModified": 1746707904,
"lastModified": 1782860656,
"narHash": "sha256-HiSNP0/eEhKGZBWC6kLZVN8I6j6AwVnI4gjeH25+/5k=",
"owner": "cachix",
"repo": "devenv",
"rev": "fada79d97f2066c444766d039b0a62affd3e3cab",
"rev": "3f6df48c00d8aa408f0440f2707662aa91a1f033",
"type": "github"
},
"original": {
@@ -19,14 +20,15 @@
"flake-compat": {
"flake": false,
"locked": {
"lastModified": 1733328505,
"owner": "edolstra",
"lastModified": 1767039857,
"narHash": "sha256-vNpUSpF5Nuw8xvDLj2KCwwksIbjua2LZCqhV1LNRDns=",
"owner": "NixOS",
"repo": "flake-compat",
"rev": "ff81ac966bb2cae68946d5ed5fc4994f96d0ffec",
"rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab",
"type": "github"
},
"original": {
"owner": "edolstra",
"owner": "NixOS",
"repo": "flake-compat",
"type": "github"
}
@@ -35,15 +37,14 @@
"inputs": {
"flake-compat": "flake-compat",
"gitignore": "gitignore",
"nixpkgs": [
"nixpkgs"
]
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1746537231,
"lastModified": 1781733627,
"narHash": "sha256-U3yTuGBnmXvXoQI3qkpfEDsn9RovQPAjN7ndRco+3u0=",
"owner": "cachix",
"repo": "git-hooks.nix",
"rev": "fa466640195d38ec97cf0493d6d6882bc4d14969",
"rev": "3bbec39bc90eadfa031e6f3b77272f3f60803e39",
"type": "github"
},
"original": {
@@ -61,6 +62,7 @@
},
"locked": {
"lastModified": 1709087332,
"narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=",
"owner": "hercules-ci",
"repo": "gitignore.nix",
"rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
@@ -74,10 +76,47 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1745934659,
"lastModified": 1770073757,
"narHash": "sha256-Vy+G+F+3E/Tl+GMNgiHl9Pah2DgShmIUBJXmbiQPHbI=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "47472570b1e607482890801aeaf29bfb749884f6",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-src": {
"flake": false,
"locked": {
"lastModified": 1781607440,
"narHash": "sha256-rxO+uc/KFbSJp+pgyXRuAX6QlG9hJdnt0BXpEQRXY+U=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "3e41b24abd260e8f71dbe2f5737d24122f972158",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"inputs": {
"nixpkgs-src": "nixpkgs-src"
},
"locked": {
"lastModified": 1782132010,
"narHash": "sha256-ZnAVHdVrotp80iIMm5CSR1fdxPlw7Uwmwxb+O/wsgZ8=",
"owner": "cachix",
"repo": "devenv-nixpkgs",
"rev": "fbc071e5c11e23fba50037de37268e3d8a1858eb",
"rev": "12866ae2dddbc0ab8b329915f8072bb9c75bde89",
"type": "github"
},
"original": {
@@ -91,13 +130,10 @@
"inputs": {
"devenv": "devenv",
"git-hooks": "git-hooks",
"nixpkgs": "nixpkgs",
"pre-commit-hooks": [
"git-hooks"
]
"nixpkgs": "nixpkgs_2"
}
}
},
"root": "root",
"version": 7
}
}
+2
View File
@@ -2,3 +2,5 @@
inputs:
nixpkgs:
url: github:cachix/devenv-nixpkgs/rolling
git-hooks:
url: github:cachix/git-hooks.nix
+1 -1
View File
@@ -8,4 +8,4 @@
"""Metadata for this python module."""
__version__ = "2025.5.20.16"
__version__ = "2026.8.12"
+15 -10
View File
@@ -36,7 +36,13 @@ CONFIG_IFORM_ROUTES = {
"terms": "/terms",
"gdpr": "/gdpr",
}
"""Defined routes for TUG."""
"""Defined routes for I-Form."""
CONFIG_IFORM_SUPPORT_EMAIL = "repository-support@iform.ie"
"""Support email address for I-Form."""
CONFIG_IFORM_INFO_EMAIL = "info@iform.ie"
"""Info email address for I-Form."""
# Invenio-App
# ===========
@@ -49,7 +55,6 @@ APP_DEFAULT_SECURE_HEADERS = {
"data:",
"'unsafe-inline'",
"blob:",
"ub-support.tugraz.at", # zammad contact form
],
},
"content_security_policy_report_only": False,
@@ -72,9 +77,9 @@ APP_DEFAULT_SECURE_HEADERS = {
# See https://invenio-i18n.readthedocs.io/en/latest/configuration.html
BABEL_DEFAULT_LOCALE = "en"
# Default time zone
BABEL_DEFAULT_TIMEZONE = "Europe/Vienna"
BABEL_DEFAULT_TIMEZONE = "Europe/Dublin"
# Other supported languages (do not include BABEL_DEFAULT_LOCALE in list).
I18N_LANGUAGES = [("de", _("German"))]
I18N_LANGUAGES = [("ga", _("Irish"))]
# Invenio-Mail
# ===========
@@ -83,11 +88,11 @@ I18N_LANGUAGES = [("de", _("German"))]
MAIL_SERVER = "localhost"
"""Domain ip where mail server is running."""
SECURITY_EMAIL_SENDER = "info@invenio-test.tugraz.at"
SECURITY_EMAIL_SENDER = CONFIG_IFORM_INFO_EMAIL
"""Email address used as sender of account registration emails."""
"""Domain name should match the domain used in web server."""
SECURITY_EMAIL_SUBJECT_REGISTER = _("Welcome to TU Graz Repository!")
SECURITY_EMAIL_SUBJECT_REGISTER = _("Welcome to I-Form Repository!")
"""Email subject for account registration emails."""
MAIL_SUPPRESS_SEND = True
@@ -229,7 +234,7 @@ RECAPTCHA_PRIVATE_KEY = None
# See:
# https://invenio-rdm-records.readthedocs.io/en/latest/configuration.html
#
RDM_RECORDS_USER_FIXTURE_PASSWORDS = {"info@tugraz.at": None}
RDM_RECORDS_USER_FIXTURE_PASSWORDS = {CONFIG_IFORM_INFO_EMAIL: None}
"""Overrides for the user fixtures' passwords.
The password set for a user fixture in this dictionary overrides the
password set in the ``users.yaml`` file. This can be used to set custom
@@ -254,7 +259,7 @@ This is only required if you want your records to be harvestable in DataCite XML
# =========================
# See https://github.com/inveniosoftware/invenio-app-rdm/blob/master/invenio_app_rdm/config.py
APP_RDM_DEPOSIT_FORM_DEFAULTS = {
"publisher": "Graz University of Technology",
"publisher": "I-Form Research Centre",
}
"""Default values for new records in the deposit UI.
@@ -365,11 +370,11 @@ SESSION_COOKIE_SAMESITE = "Strict"
# =======
# See https://github.com/inveniosoftware/invenio-oaiserver/blob/master/invenio_oaiserver/config.py
OAISERVER_ID_PREFIX = "repository.tugraz.at"
OAISERVER_ID_PREFIX = "repository.iform.ie"
"""The prefix that will be applied to the generated OAI-PMH ids."""
OAISERVER_ADMIN_EMAILS = [
"oai@repository.tugraz.at",
"oai@repository.iform.ie",
]
"""The e-mail addresses of administrators of the repository.
@@ -1,6 +1,6 @@
{{ _('Dear user,') }}
{{ _('Welcome to the Repository of TU Graz!') }}
{{ _('Welcome to the I-Form Repository!') }}
{{ _('To help you get started, here are some useful links:') }}
@@ -12,7 +12,7 @@
{{ _('You can confirm your email through the link below:') }}
{{ confirmation_link }}">
{% endif %}
{{ _('If you require any assistance please do not hesitate to contact us at repository-support@tugraz.at.') }}
{{ _('If you require any assistance please do not hesitate to contact us at %(support_email)s.', support_email=config.CONFIG_IFORM_SUPPORT_EMAIL) }}
{{ _('Best regards,') }}
{{ _('TU Graz Repository Team') }}
{{ _('I-Form Repository Team') }}
@@ -1,82 +0,0 @@
# German translations for invenio-config-iform.
# Copyright (C) 2021 Graz University of Technology
# This file is distributed under the same license as the
# invenio-config-iform project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2021.
#
msgid ""
msgstr ""
"Project-Id-Version: invenio-config-iform 0.5.5\n"
"Report-Msgid-Bugs-To: mojib.wali@tugraz.at\n"
"POT-Creation-Date: 2021-04-27 15:30+0200\n"
"PO-Revision-Date: 2021-04-22 11:57+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: de\n"
"Language-Team: de <LL@li.org>\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.9.0\n"
#: invenio_config_iform/config.py:87
msgid "Welcome to TU Graz Repository!"
msgstr "Willkommen im TU Graz Repository!"
#: invenio_config_iform/templates/security/email/welcome.txt:1
msgid "Dear user,"
msgstr "Lieber Nutzer,"
#: invenio_config_iform/templates/security/email/welcome.txt:3
msgid "Welcome to the Repository of TU Graz!"
msgstr "Willkommen im TU Graz Repository!"
#: invenio_config_iform/templates/security/email/welcome.txt:5
msgid "To help you get started, here are some useful links:"
msgstr ""
"Um Ihnen den Einstieg zu erleichtern, finden Sie hier einige nützliche "
"Links:"
#: invenio_config_iform/templates/security/email/welcome.txt:7
msgid "Guidelines:"
msgstr "Leitfaden:"
#: invenio_config_iform/templates/security/email/welcome.txt:7
msgid "Repository Guide"
msgstr "Handbuch"
#: invenio_config_iform/templates/security/email/welcome.txt:7
msgid "how to upload files"
msgstr "wie man Dateien hochlädt"
#: invenio_config_iform/templates/security/email/welcome.txt:8
msgid "Search Guide"
msgstr "Suchanleitung"
#: invenio_config_iform/templates/security/email/welcome.txt:9
msgid "Terms And Conditions"
msgstr "Nutzungsbedingungen"
#: invenio_config_iform/templates/security/email/welcome.txt:10
msgid "Data Protection Rights"
msgstr "Datenschutzerklärung"
#: invenio_config_iform/templates/security/email/welcome.txt:13
msgid "You can confirm your email through the link below:"
msgstr "Sie können Ihre E-Mail über den folgenden Link bestätigen:"
#: invenio_config_iform/templates/security/email/welcome.txt:16
msgid ""
"If you require any assistance please do not hesitate to contact us at "
"repository-support@tugraz.at."
msgstr ""
"Wenn Sie Hilfe benötigen, zögern Sie bitte nicht, uns unter repository-"
"support@tugraz.at zu kontaktieren."
#: invenio_config_iform/templates/security/email/welcome.txt:18
msgid "Best regards,"
msgstr "Mit freundlichen Grüßen,"
#: invenio_config_iform/templates/security/email/welcome.txt:19
msgid "TU Graz Repository Team"
msgstr "TU Graz Repository Team"
@@ -0,0 +1,91 @@
# Irish translations for I-Form Repository.
# Copyright (C) 2026 I-Form
# This file is distributed under the same license as the I-Form Repository project.
# Cian Hughes <cian.hughes@dcu.ie>, 2026.
#
msgid ""
msgstr ""
"Project-Id-Version: I-Form Repository 1.0\n"
"Report-Msgid-Bugs-To: repository-support@iform.ie\n"
"POT-Creation-Date: 2026-07-01 12:31+0100\n"
"PO-Revision-Date: 2026-07-01 11:06+0100\n"
"Last-Translator: Cian Hughes <cian.hughes@dcu.ie>\n"
"Language: ga\n"
"Language-Team: ga <LL@li.org>\n"
"Plural-Forms: nplurals=5; plural=(n==1 ? 0 : n==2 ? 1 : n>=3 && n<=6 ? 2 "
": n>=7 && n<=10 ? 3 : 4);\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.17.0\n"
#: invenio_config_iform/config.py:82
msgid "Irish"
msgstr "Gaeilge"
#: invenio_config_iform/config.py:95
msgid "Welcome to I-Form Repository!"
msgstr "Fáilte chuig Taisclann I-Form!"
#: invenio_config_iform/templates/security/email/welcome.txt:1
msgid "Dear user,"
msgstr "A úsáideoir, a chara,"
#: invenio_config_iform/templates/security/email/welcome.txt:3
msgid "Welcome to the I-Form Repository!"
msgstr "Fáilte chuig Taisclann I-Form!"
#: invenio_config_iform/templates/security/email/welcome.txt:5
msgid "To help you get started, here are some useful links:"
msgstr "Chun cabhrú leat tosú, seo a leanas roinnt nasc úsáideach:"
#: invenio_config_iform/templates/security/email/welcome.txt:7
msgid "Guidelines:"
msgstr "Treoirlínte:"
#: invenio_config_iform/templates/security/email/welcome.txt:7
msgid "Repository Guide"
msgstr "Treoir don Taisclann"
#: invenio_config_iform/templates/security/email/welcome.txt:7
msgid "how to upload files"
msgstr "conas comhaid a uaslódáil"
#: invenio_config_iform/templates/security/email/welcome.txt:8
msgid "Search Guide"
msgstr "Treoir Chuardaigh"
#: invenio_config_iform/templates/security/email/welcome.txt:9
msgid "Terms And Conditions"
msgstr "Téarmaí agus Coinníollacha"
#: invenio_config_iform/templates/security/email/welcome.txt:10
msgid "Data Protection Rights"
msgstr "Cearta Cosanta Sonraí"
#: invenio_config_iform/templates/security/email/welcome.txt:12
msgid "You can confirm your email through the link below:"
msgstr "Is féidir leat do ríomhphost a dhearbhú tríd an nasc thíos:"
#: invenio_config_iform/templates/security/email/welcome.txt:15
#, python-format
msgid ""
"If you require any assistance please do not hesitate to contact us at "
"%(support_email)s."
msgstr ""
"Má theastaíonn aon chúnamh uait, ná bíodh leisce ort teagmháil a dhéanamh"
" linn ag %(support_email)s."
#: invenio_config_iform/templates/security/email/welcome.txt:17
msgid "Best regards,"
msgstr "Le gach dea-mhéin,"
#: invenio_config_iform/templates/security/email/welcome.txt:18
msgid "I-Form Repository Team"
msgstr "Foireann Thaisclainne I-Form"
+24 -19
View File
@@ -1,25 +1,28 @@
# Translations template for invenio-config-iform.
# Copyright (C) 2021 Graz University of Technology
# This file is distributed under the same license as the
# invenio-config-iform project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2021.
# Translations template for I-Form Repository.
# Copyright (C) 2026 I-Form
# This file is distributed under the same license as the I-Form Repository project.
# Cian Hughes <cian.hughes@dcu.ie>, 2026.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: invenio-config-iform 0.5.5\n"
"Report-Msgid-Bugs-To: mojib.wali@tugraz.at\n"
"POT-Creation-Date: 2021-04-27 15:30+0200\n"
"Project-Id-Version: I-Form Repository 1.0\n"
"Report-Msgid-Bugs-To: repository-support@iform.ie\n"
"POT-Creation-Date: 2026-07-01 12:31+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Last-Translator: Cian Hughes <cian.hughes@dcu.ie>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.9.0\n"
"Generated-By: Babel 2.17.0\n"
#: invenio_config_iform/config.py:87
msgid "Welcome to TU Graz Repository!"
#: invenio_config_iform/config.py:82
msgid "Irish"
msgstr ""
#: invenio_config_iform/config.py:95
msgid "Welcome to I-Form Repository!"
msgstr ""
#: invenio_config_iform/templates/security/email/welcome.txt:1
@@ -27,7 +30,7 @@ msgid "Dear user,"
msgstr ""
#: invenio_config_iform/templates/security/email/welcome.txt:3
msgid "Welcome to the Repository of TU Graz!"
msgid "Welcome to the I-Form Repository!"
msgstr ""
#: invenio_config_iform/templates/security/email/welcome.txt:5
@@ -58,20 +61,22 @@ msgstr ""
msgid "Data Protection Rights"
msgstr ""
#: invenio_config_iform/templates/security/email/welcome.txt:13
#: invenio_config_iform/templates/security/email/welcome.txt:12
msgid "You can confirm your email through the link below:"
msgstr ""
#: invenio_config_iform/templates/security/email/welcome.txt:16
#: invenio_config_iform/templates/security/email/welcome.txt:15
#, python-format
msgid ""
"If you require any assistance please do not hesitate to contact us at "
"repository-support@tugraz.at."
"%(support_email)s."
msgstr ""
#: invenio_config_iform/templates/security/email/welcome.txt:18
#: invenio_config_iform/templates/security/email/welcome.txt:17
msgid "Best regards,"
msgstr ""
#: invenio_config_iform/templates/security/email/welcome.txt:19
msgid "TU Graz Repository Team"
#: invenio_config_iform/templates/security/email/welcome.txt:18
msgid "I-Form Repository Team"
msgstr ""
+1 -20
View File
@@ -84,6 +84,7 @@ path = "invenio_config_iform/__about__.py"
[tool.hatch.build]
include = ["invenio_config_iform"]
exclude = [".venv", "tests/*", "*/tests/*", "*.rst", "run-tests.sh"]
ignore-vcs = true
# Testing configuration
[tool.pytest]
@@ -133,23 +134,3 @@ line-ending = "auto"
[tool.pydocstyle]
add_ignore = ["D401"]
# Babel configuration
[tool.babel.compile_catalog]
directory = "invenio_config_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_config_iform/translations/messages.pot"
add-comments = "NOTE"
[tool.babel.init_catalog]
input-file = "invenio_config_iform/translations/messages.pot"
output-dir = "invenio_config_iform/translations/"
[tool.babel.update_catalog]
input-file = "invenio_config_iform/translations/messages.pot"
output-dir = "invenio_config_iform/translations/"