global: make it compatible with v12

This commit is contained in:
Christoph Ladurner
2023-10-08 23:00:58 +02:00
parent 40a47ed36d
commit bf62abff3f
4 changed files with 10 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2020-2022 Graz University of Technology.
# Copyright (C) 2020-2023 Graz University of Technology.
#
# invenio-config-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 that adds tugraz configs."""
from flask_babelex import gettext as _
from invenio_i18n import gettext as _
INVENIO_CONFIG_TUGRAZ_SHIBBOLETH = False
"""Set True if SAML is configured"""

View File

@@ -9,7 +9,7 @@
"""invenio module for TUGRAZ config."""
from flask import Blueprint, current_app, redirect, url_for
from flask_babelex import get_locale
from invenio_i18n import get_locale
def ui_blueprint(app):

View File

@@ -33,20 +33,20 @@ classifiers =
[options]
include_package_data = True
packages = find:
python_requires = >=3.8
python_requires = >=3.9
zip_safe = False
install_requires =
# keep this dependencies identical to invenio-app-rdm
invenio-rdm-records>=1.1.0,<2.0.0
invenio-cache>=1.1.1,<1.2.0
flask-babel>=2,<3
invenio-cache>=1.1.1,<2.0.0
invenio-i18n>=2.0.0,<3.0.0
invenio-rdm-records>=4.0.0,<5.0.0
[options.extras_require]
tests =
pytest-black>=0.3.0
Sphinx>=4.5.0
pytest-invenio>=2.1.0,<3.0.0
invenio-search[opensearch2]>=2.1.0,<3.0.0
Sphinx>=4.5.0
[options.entry_points]
invenio_base.apps =

View File

@@ -18,8 +18,8 @@ import tempfile
import pytest
from flask import Flask
from flask_babelex import Babel
from invenio_db import InvenioDB, db
from invenio_i18n import InvenioI18N
from sqlalchemy_utils.functions import create_database, database_exists, drop_database
from invenio_config_tugraz import InvenioConfigTugraz
@@ -49,7 +49,7 @@ def create_app(request):
SQLALCHEMY_DATABASE_URI=DB,
SQLALCHEMY_TRACK_MODIFICATIONS=False,
)
Babel(app)
InvenioI18N(app)
InvenioConfigTugraz(app)
InvenioDB(app)