update suou requirement and fix imports
This commit is contained in:
parent
d8746f90ef
commit
1980af5fa5
4 changed files with 3 additions and 8 deletions
|
|
@ -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__))
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue