Compare commits

..

2 commits

Author SHA1 Message Date
c4df75d23b 0.14.1 support python 3.15 2026-11-06 18:48:03 +01:00
2e16bc82ce 0.14.1 fix imports in .sqlalchemy 2026-11-06 18:47:26 +01:00
6 changed files with 17 additions and 5 deletions

View file

@ -3,7 +3,7 @@ version: 2
build:
os: ubuntu-24.04
tools:
python: "3.13"
python: "3.14"
sphinx:
configuration: docs/conf.py

View file

@ -1,5 +1,10 @@
# Changelog
## 0.14.1
* Fixed some imports in `sqlalchemy` module
* Support for Python 3.15
## 0.14.0 "Claims & Columns"
* Added `ast` module

View file

@ -27,7 +27,8 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14"
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15"
]
[project.urls]

View file

@ -41,7 +41,7 @@ from .color import OKLabColor, chalk, WebColor, RGBColor, LinearRGBColor, \
from .mat import Matrix
from .argparse import LetterSubparsers
__version__ = "0.14.0"
__version__ = "0.14.1"
__all__ = (
'ColorFormatter',

View file

@ -158,7 +158,7 @@ from .asyncio import SQLAlchemy, async_query, SessionWrapper, AsyncSelectPaginat
from .orm import (
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,
ascii_column, i4_column, now_column,
ascii_column, i4_column, now_column, email_column,
)
try:
@ -173,7 +173,7 @@ __all__ = (
'match_column', 'match_constraint', 'bool_column', 'parent_children',
'author_pair', 'age_pair', 'bound_fk', 'unbound_fk', 'want_column',
'a_relationship', 'BitSelector', 'secret_column', 'username_column',
'ascii_column', 'i4_column', 'now_column',
'ascii_column', 'i4_column', 'now_column', 'email_column',
# .asyncio
'SQLAlchemy', 'AsyncSelectPagination', 'async_query', 'SessionWrapper'
)

View file

@ -102,6 +102,12 @@ match_constraint.TEXT_DIALECTS = {
## Type decorators for match_column and ascii_column follow
class MatchString(TypeDecorator):
"""
XXX if you see this type in an alembic migration this is an error. Please go to the migration file and fix the migration manually,
by replacing suou.sqlalchemy.orm.MatchString with sa.String.
In normal circumstances, this should be a VARCHAR with a CHECK constraint.
"""
impl: TypeAlias = String
def __init__(self, length: int, regex: str | re.Pattern, case: StringCase = StringCase.AS_IS, *args, **kwargs):