From 9399a24db98c0e72414bda37b39721effe29f9282a6f90ffc4aea64a3b1431ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 13 Dec 2024 11:07:58 +0100 Subject: [PATCH] Sync from SUSE:SLFO:Main python-alembic revision e5521e8a32bf97aab84064c386d98d3f --- alembic-1.12.1.tar.gz | 3 -- alembic-1.13.3.tar.gz | 3 ++ python-alembic.changes | 97 ++++++++++++++++++++++++++++++++++++++++++ python-alembic.spec | 10 ++--- 4 files changed, 105 insertions(+), 8 deletions(-) delete mode 100644 alembic-1.12.1.tar.gz create mode 100644 alembic-1.13.3.tar.gz diff --git a/alembic-1.12.1.tar.gz b/alembic-1.12.1.tar.gz deleted file mode 100644 index f4dc665..0000000 --- a/alembic-1.12.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bca5877e9678b454706347bc10b97cb7d67f300320fa5c3a94423e8266e2823f -size 1200204 diff --git a/alembic-1.13.3.tar.gz b/alembic-1.13.3.tar.gz new file mode 100644 index 0000000..c609f29 --- /dev/null +++ b/alembic-1.13.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:203503117415561e203aa14541740643a611f641517f0209fcae63e9fa09f1a2 +size 1921223 diff --git a/python-alembic.changes b/python-alembic.changes index 980dd9c..23df6b5 100644 --- a/python-alembic.changes +++ b/python-alembic.changes @@ -1,3 +1,100 @@ +------------------------------------------------------------------- +Sat Sep 28 19:16:36 UTC 2024 - Dirk Müller + +- update to 1.13.3: + * Render `if_exists` and `if_not_exists` parameters in + `CreateTableOp`, `CreateIndexOp`, `DropTableOp` and + `DropIndexOp` in an autogenerate context. + * Enhance `version_locations` parsing to handle paths containing + newlines. + * Added support for `Operations.create_table.if_not_exists` and + `Operations.drop_table.if_exists`, adding similar + functionality to render IF [NOT] EXISTS for table operations + in a similar way as with indexes. + +------------------------------------------------------------------- +Tue Aug 13 23:30:46 UTC 2024 - Guang Yee + +- update to 1.13.2: + * Improve computed column compare function to support multi-line + expressions. Pull request courtesy of Georg Wicke-Arndt. + * Fixed bug in alembic command stdout where long messages were + not properly wrapping at the terminal width. Pull request + courtesy Saif Hakim. + * Fixed internal issue where Alembic would call + connection.execute() sending an empty tuple to indicate + “no params”. In SQLAlchemy 2.1 this case will be deprecated as + “empty sequence” is ambiguous as to its intent. + * Fixes to support pytest 8.1 for the test suite. + * Fixed the detection of serial column in autogenerate with + tables not under default schema on PostgreSQL. +- Drop pytest8.patch as it has merged upstream and included + in the 1.31.2 release. + + +------------------------------------------------------------------- +Fri May 17 13:09:48 UTC 2024 - Markéta Machová + +- Add pytest8.patch to fix the tests with the new pytest + +------------------------------------------------------------------- +Wed Dec 27 09:35:46 UTC 2023 - Dirk Müller + +- update to 1.13.1: + * Fixed :class:`.Rewriter` so that more than two instances + could be chained together correctly, also allowing multiple + ``process_revision_directives`` callables to be chained. + * Fixed issue where the method + :meth:`.EnvironmentContext.get_x_argument` using the + :paramref:`.EnvironmentContext.get_x_argument.as_dictionary` + parameter would fail if an argument key were passed on the + command line as a name alone, that is, without an equal sign + ``=`` or a value. Behavior is repaired where this condition is + detected and will return a blank string for the given key, + consistent with the behavior where the ``=`` sign is + present and no value. + * Fixed issue where the "unique" flag of an ``Index`` would not + be maintained when generating downgrade migrations. + * Fixed bug in versioning model where a downgrade across a + revision with two down revisions with one down revision + depending on the other, would produce an erroneous state in + the alembic_version table, making upgrades impossible + without manually repairing the table. + * Updated pep-484 typing to pass mypy "strict" mode, however + including per-module qualifications for specific typing + elements not yet complete. + * This allows us to catch specific typing issues that have been + ongoing such as import symbols not properly exported. + +------------------------------------------------------------------- +Thu Dec 14 09:13:53 UTC 2023 - Petr Gajdos + +- update to 1.13.0: + * Fixed issue where the ``alembic check`` command did not + function correctly with upgrade structures that have multiple, + top-level elements, as are generated from the "multi-env" + environment template. + * Updated logic introduced in :ticket:`151` to allow + ``if_exists`` and ``if_not_exists`` on index operations also + on SQLAlchemy 1.4 series. Previously this feature was + mistakenly requiring the 2.0 series. + * Replaced ``python-dateutil`` with the standard library module + zoneinfo. + * Alembic 1.13 now supports Python 3.8 and above. + * Fixed autogenerate issue where ``create_table_comment()`` and + ``drop_table_comment()`` rendering in a batch table modify + would include the "table" and "schema" arguments, which are + not accepted in batch as these are already part of the top + level block. + * Additional fixes to PostgreSQL expression index compare + feature. The compare now correctly accommodates casts and + differences in spacing. + * Added detection logic for operation clauses inside the + expression, skipping the compare of these expressions. + * To accommodate these changes the logic for the comparison of + the indexes and unique constraints was moved to the dialect + implementation, allowing greater flexibility. + ------------------------------------------------------------------- Tue Nov 14 12:40:19 UTC 2023 - Dirk Müller diff --git a/python-alembic.spec b/python-alembic.spec index 6fc3aad..cdc93ff 100644 --- a/python-alembic.spec +++ b/python-alembic.spec @@ -1,7 +1,7 @@ # # spec file for package python-alembic # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-alembic -Version: 1.12.1 +Version: 1.13.3 Release: 0 Summary: A database migration tool for SQLAlchemy License: MIT @@ -26,12 +26,13 @@ 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 >= 2.0.0} +BuildRequires: %{python_module backports.zoneinfo if %python-base < 3.9} BuildRequires: %{python_module importlib-metadata if %python-base < 3.9} BuildRequires: %{python_module importlib-resources if %python-base < 3.9} BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest-xdist} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module python-dateutil} +BuildRequires: %{python_module pytzdata} BuildRequires: %{python_module typing-extensions >= 4} BuildRequires: %{python_module wheel} BuildRequires: %{pythons} @@ -41,7 +42,7 @@ Requires: python-Mako Requires: python-SQLAlchemy >= 2.0.0 Requires: python-typing-extensions >= 4 Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %if 0%{?python_version_nodots} < 39 Requires: python-importlib-metadata @@ -64,7 +65,6 @@ offers the following functionality: %prep %setup -q -n alembic-%{version} -%autopatch -p1 %build %pyproject_wheel