0.12.1 fix imports in sqlalchemy module
This commit is contained in:
parent
36f7927597
commit
919bdcbe06
7 changed files with 34 additions and 7 deletions
|
|
@ -1,5 +1,9 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 0.12.1
|
||||||
|
|
||||||
|
+ Fix import failure for `AsyncSelectPagination` (module `sqlalchemy`)
|
||||||
|
|
||||||
## 0.12.0 "The Color Update"
|
## 0.12.0 "The Color Update"
|
||||||
|
|
||||||
* Moved `AsyncSelectPagination` to submodule `sqlalchemy.quart`. If you need to use it, specify `suou[quart_sqlalchemy]` in requirements.
|
* Moved `AsyncSelectPagination` to submodule `sqlalchemy.quart`. If you need to use it, specify `suou[quart_sqlalchemy]` in requirements.
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@ API
|
||||||
suou.lex
|
suou.lex
|
||||||
suou.luck
|
suou.luck
|
||||||
suou.markdown
|
suou.markdown
|
||||||
|
suou.mat
|
||||||
suou.migrate
|
suou.migrate
|
||||||
suou.peewee
|
suou.peewee
|
||||||
suou.quart
|
suou.quart
|
||||||
|
|
|
||||||
|
|
@ -19,15 +19,28 @@ Web colors
|
||||||
----------
|
----------
|
||||||
|
|
||||||
.. autoclass:: RGBColor
|
.. autoclass:: RGBColor
|
||||||
|
|
||||||
|
.. automethods::
|
||||||
|
|
||||||
|
|
||||||
.. autoclass:: WebColor
|
.. autoclass:: WebColor
|
||||||
|
|
||||||
|
|
||||||
.. auto
|
.. autoclass:: LinearRGBColor
|
||||||
|
|
||||||
|
.. automethods::
|
||||||
|
|
||||||
|
|
||||||
.. autoclass:: XYZColor
|
.. autoclass:: XYZColor
|
||||||
|
|
||||||
|
.. automethods::
|
||||||
|
|
||||||
.. autoclass:: OKLabColor
|
|
||||||
|
.. autoclass:: OKLabColor
|
||||||
|
|
||||||
|
.. automethods::
|
||||||
|
|
||||||
|
|
||||||
|
.. autoclass:: OKLCHColor
|
||||||
|
|
||||||
|
.. automethods::
|
||||||
|
|
@ -9,7 +9,10 @@
|
||||||
.. autosummary::
|
.. autosummary::
|
||||||
|
|
||||||
Chalk
|
Chalk
|
||||||
|
LinearRGBColor
|
||||||
|
OKLCHColor
|
||||||
|
OKLabColor
|
||||||
RGBColor
|
RGBColor
|
||||||
SRGBColor
|
|
||||||
WebColor
|
WebColor
|
||||||
|
XYZColor
|
||||||
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
suou.sqlalchemy.asyncio
|
suou.sqlalchemy.asyncio
|
||||||
=======================
|
=======================
|
||||||
|
|
||||||
.. automodule:: suou.sqlalchemy.asyncio
|
.. automodule:: suou.sqlalchemy.asyncio
|
||||||
|
|
@ -14,7 +14,6 @@ suou.sqlalchemy.asyncio
|
||||||
|
|
||||||
.. autosummary::
|
.. autosummary::
|
||||||
|
|
||||||
AsyncSelectPagination
|
|
||||||
SQLAlchemy
|
SQLAlchemy
|
||||||
SessionWrapper
|
SessionWrapper
|
||||||
|
|
||||||
|
|
@ -38,7 +38,7 @@ from .http import WantsContentType
|
||||||
from .color import OKLabColor, chalk, WebColor, RGBColor, LinearRGBColor, XYZColor, OKLCHColor
|
from .color import OKLabColor, chalk, WebColor, RGBColor, LinearRGBColor, XYZColor, OKLCHColor
|
||||||
from .mat import Matrix
|
from .mat import Matrix
|
||||||
|
|
||||||
__version__ = "0.12.0"
|
__version__ = "0.12.1"
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'ConfigOptions', 'ConfigParserConfigSource', 'ConfigSource', 'ConfigValue',
|
'ConfigOptions', 'ConfigParserConfigSource', 'ConfigSource', 'ConfigValue',
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ import warnings
|
||||||
from sqlalchemy import BigInteger, Boolean, CheckConstraint, Date, Dialect, ForeignKey, LargeBinary, Column, MetaData, SmallInteger, String, create_engine, select, text
|
from sqlalchemy import BigInteger, Boolean, CheckConstraint, Date, Dialect, ForeignKey, LargeBinary, Column, MetaData, SmallInteger, String, create_engine, select, text
|
||||||
from sqlalchemy.orm import DeclarativeBase, InstrumentedAttribute, Relationship, Session, declarative_base as _declarative_base, relationship
|
from sqlalchemy.orm import DeclarativeBase, InstrumentedAttribute, Relationship, Session, declarative_base as _declarative_base, relationship
|
||||||
from sqlalchemy.types import TypeEngine
|
from sqlalchemy.types import TypeEngine
|
||||||
|
from suou.glue import FakeModule
|
||||||
|
|
||||||
from ..snowflake import SnowflakeGen
|
from ..snowflake import SnowflakeGen
|
||||||
from ..itertools import kwargs_prefix, makelist
|
from ..itertools import kwargs_prefix, makelist
|
||||||
|
|
@ -158,12 +159,18 @@ def require_auth_base(cls: type[DeclarativeBase], *, src: AuthSrc, column: str |
|
||||||
return decorator
|
return decorator
|
||||||
|
|
||||||
|
|
||||||
from .asyncio import SQLAlchemy, AsyncSelectPagination, async_query
|
from .asyncio import SQLAlchemy, async_query
|
||||||
from .orm import (
|
from .orm import (
|
||||||
id_column, snowflake_column, match_column, match_constraint, bool_column, declarative_base, parent_children,
|
id_column, snowflake_column, match_column, match_constraint, bool_column, declarative_base, parent_children,
|
||||||
author_pair, age_pair, bound_fk, unbound_fk, want_column, a_relationship, BitSelector, secret_column, username_column
|
author_pair, age_pair, bound_fk, unbound_fk, want_column, a_relationship, BitSelector, secret_column, username_column
|
||||||
)
|
)
|
||||||
|
|
||||||
|
try:
|
||||||
|
from .quart import AsyncSelectPagination
|
||||||
|
AsyncSelectPagination = deprecated('import AsyncSelectPagination from suou.sqlalchemy.quart instead')(AsyncSelectPagination)
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
# Optional dependency: do not import into __init__.py
|
# Optional dependency: do not import into __init__.py
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'IdType', 'id_column', 'snowflake_column', 'entity_base', 'declarative_base', 'token_signer',
|
'IdType', 'id_column', 'snowflake_column', 'entity_base', 'declarative_base', 'token_signer',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue