diff --git a/alembic-1.10.4.tar.gz b/alembic-1.10.4.tar.gz new file mode 100644 index 0000000..bda1638 --- /dev/null +++ b/alembic-1.10.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:295b54bbb92c4008ab6a7dcd1e227e668416d6f84b98b3c4446a2bc6214a556b +size 1152769 diff --git a/alembic-1.9.3.tar.gz b/alembic-1.9.3.tar.gz deleted file mode 100644 index e9e3088..0000000 --- a/alembic-1.9.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8fd6aaea56f5a703a190d25a705dfa91d7c313bb71de2f9c68f5abdcaf5df164 -size 1137492 diff --git a/python-alembic.changes b/python-alembic.changes index cc6e933..6c83d55 100644 --- a/python-alembic.changes +++ b/python-alembic.changes @@ -1,3 +1,45 @@ +------------------------------------------------------------------- +Fri May 5 22:12:29 UTC 2023 - Dirk Müller + +- update to 1.10.4: + * Added support for autogenerate comparison of indexes on + PostgreSQL which include SQL sort option, such as + ``ASC`` or ``NULLS FIRST``. + * Fixed various typing issues observed with pyright, including + issues involving the combination of :class:`.Function` and + :meth:`.MigrationContext.begin_transaction`. + * Fixed error raised by alembic when running autogenerate after + removing a function based index. + * Fixed regression where Alembic would not run with older + SQLAlchemy 1.3 versions prior to 1.3.24 due to a + missing symbol. Workarounds have been applied for older + 1.3 versions. + * Fixed issue regarding PostgreSQL :class:`.ExcludeConstraint`, + where constraint elements which made use of :func:`.literal_column` + could not be rendered for autogenerate. Additionally, using SQLAlchemy + 2.0.5 or greater, :func:`.text()` constructs are also supported within + PostgreSQL :class:`.ExcludeConstraint` objects for autogenerate render. + * Fixed issue in index detection where autogenerate change + detection would consider indexes with the same columns but with + different order as equal, while in general they are not equivalent + in how a database will use them. + * Recursive traversal of revision files in a particular + revision directory is now supported, by indicating + ``recursive_version_locations = true`` in alembic.ini. + * Fixed issue where indexes on SQLite which include SQL + expressions would not compare correctly, generating false + positives under autogenerate. These indexes are now skipped, + generating a warning, in the same way that + expression-based indexes on PostgreSQL are skipped and + generate warnings when SQLAlchemy 1.x installations are + in use. Note that reflection of + SQLite expression-based indexes continues to not yet be + supported under SQLAlchemy 2.0, even though PostgreSQL + expression-based indexes have now been implemented. + * Properly escape constraint name on SQL Server when dropping + a column while specifying ``mssql_drop_default=True`` or + ``mssql_drop_check=True`` or ``mssql_drop_foreign_key=True``. + ------------------------------------------------------------------- Fri Feb 10 12:36:15 UTC 2023 - Dirk Müller diff --git a/python-alembic.spec b/python-alembic.spec index f2a10ba..1e17be1 100644 --- a/python-alembic.spec +++ b/python-alembic.spec @@ -19,26 +19,28 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-alembic -Version: 1.9.3 +Version: 1.10.4 Release: 0 Summary: A database migration tool for SQLAlchemy License: MIT URL: https://github.com/sqlalchemy/alembic Source0: https://files.pythonhosted.org/packages/source/a/alembic/alembic-%{version}.tar.gz BuildRequires: %{python_module Mako} -BuildRequires: %{python_module SQLAlchemy >= 1.3.0} +BuildRequires: %{python_module SQLAlchemy >= 2.0.0} BuildRequires: %{python_module importlib-metadata if %python-base < 3.9} BuildRequires: %{python_module importlib-resources if %python-base < 3.9} BuildRequires: %{python_module pytest-xdist} BuildRequires: %{python_module pytest} BuildRequires: %{python_module python-dateutil} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module typing-extensions >= 4} BuildRequires: %{pythons} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-Mako -Requires: python-SQLAlchemy >= 1.3.0 +Requires: python-SQLAlchemy >= 2.0.0 Requires: python-python-dateutil +Requires: python-typing-extensions >= 4 Requires(post): update-alternatives Requires(postun):update-alternatives BuildArch: noarch