diff --git a/freak/__init__.py b/freak/__init__.py index 9a16d02..52f803f 100644 --- a/freak/__init__.py +++ b/freak/__init__.py @@ -26,7 +26,7 @@ from suou import twocolon_list, WantsContentType from .colors import color_themes, theme_classes -__version__ = '0.5.0-dev60' +__version__ = '0.5.0-dev62' APP_BASE_DIR = os.path.dirname(os.path.dirname(__file__)) diff --git a/freak/models.py b/freak/models.py index fb699b3..407c4f2 100644 --- a/freak/models.py +++ b/freak/models.py @@ -15,7 +15,7 @@ from sqlalchemy import Column, Integer, String, ForeignKey, UniqueConstraint, an CheckConstraint, Date, DateTime, Boolean, func, BigInteger, \ SmallInteger, select, update, Table from sqlalchemy.orm import Relationship, relationship -from suou.sqlalchemy_async import SQLAlchemy +from suou.sqlalchemy.asyncio import SQLAlchemy from suou import SiqType, Snowflake, Wanted, deprecated, makelist, not_implemented, want_isodate from suou.sqlalchemy import create_session, declarative_base, id_column, parent_children, snowflake_column from werkzeug.security import check_password_hash diff --git a/freak/rest/__init__.py b/freak/rest/__init__.py index cf9cc68..6f36741 100644 --- a/freak/rest/__init__.py +++ b/freak/rest/__init__.py @@ -36,11 +36,6 @@ csrf.exempt(bp) current_user: UserLoader -## TODO deprecate auth_required since it does not work -## will be removed in 0.6 -from suou.flask_sqlalchemy import require_auth -auth_required = deprecated('use login_required() and current_user instead')(require_auth(User, db)) - @not_implemented() async def authenticated(): pass diff --git a/pyproject.toml b/pyproject.toml index a800391..9de900f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,7 +19,7 @@ dependencies = [ "libsass", "setuptools>=78.1.0", "Hypercorn", - "suou[sqlalchemy]>=0.11.2" + "suou[quart_sqlalchemy]>=0.12.4" ] requires-python = ">=3.10" classifiers = [