From 0cee624dbbfbf2f384aba3f2f5512bd076f1f0d1 Mon Sep 17 00:00:00 2001 From: Christoph Ladurner Date: Sun, 8 Oct 2023 23:01:51 +0200 Subject: [PATCH] global: make it compatible with v12 --- invenio_theme_tugraz/config.py | 4 ++-- setup.cfg | 11 +++++------ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/invenio_theme_tugraz/config.py b/invenio_theme_tugraz/config.py index 52e141f..1c760bc 100644 --- a/invenio_theme_tugraz/config.py +++ b/invenio_theme_tugraz/config.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2020-2021 Graz University of Technology. +# Copyright (C) 2020-2023 Graz University of Technology. # # invenio-theme-tugraz is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see LICENSE file for more @@ -8,7 +8,7 @@ """invenio module for TUGRAZ theme.""" -from flask_babelex import gettext as _ +from invenio_i18n import gettext as _ INVENIO_THEME_TUGRAZ_DEFAULT_VALUE = _("TU Graz Repository") """Default value for the application.""" diff --git a/setup.cfg b/setup.cfg index 08b853a..7f3cf1b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -33,17 +33,16 @@ classifiers = [options] include_package_data = True packages = find: -python_requires = >=3.8 +python_requires = >=3.9 zip_safe = False install_requires = - flask-babel>=2,<3 - invenio-assets>=2.0.0,<3.0.0 - invenio-i18n>=1.3.1,<1.4.0 - invenio_config_tugraz>=0.11.0,<0.12.0 + invenio-assets>=2.0.0 + invenio-i18n>=1.3.1 + invenio_config_tugraz>=0.11.0 [options.extras_require] tests = - pytest-black>=0.3.0 + pytest-black-ng>=0.4.0 Sphinx>=4.5.0 pytest-invenio>=2.1.0,<3.0.0 invenio-app>=1.3.4,<1.4.0