mirror of
https://github.com/Cian-H/invenio-config-iform.git
synced 2025-12-22 21:11:57 +00:00
global: make it compatible with v12
This commit is contained in:
@@ -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"""
|
||||
|
||||
@@ -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):
|
||||
|
||||
10
setup.cfg
10
setup.cfg
@@ -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 =
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user