From 13c002f0051c3ad1701770e7ff2d747dedb18be0231aa2c24f20b10fb56b5423 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 31 Aug 2024 12:30:43 +0000 Subject: [PATCH] Accepting request 1197961 from home:yeey:branches:devel:languages:python MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - update to 1.31.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. OBS-URL: https://build.opensuse.org/request/show/1197961 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-alembic?expand=0&rev=162 --- alembic-1.13.1.tar.gz | 3 -- alembic-1.13.2.tar.gz | 3 ++ pytest8.patch | 65 ------------------------------------------ python-alembic.changes | 20 +++++++++++++ python-alembic.spec | 5 +--- 5 files changed, 24 insertions(+), 72 deletions(-) delete mode 100644 alembic-1.13.1.tar.gz create mode 100644 alembic-1.13.2.tar.gz delete mode 100644 pytest8.patch diff --git a/alembic-1.13.1.tar.gz b/alembic-1.13.1.tar.gz deleted file mode 100644 index 697080e..0000000 --- a/alembic-1.13.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4932c8558bf68f2ee92b9bbcb8218671c627064d5b08939437af6d77dc05e595 -size 1213288 diff --git a/alembic-1.13.2.tar.gz b/alembic-1.13.2.tar.gz new file mode 100644 index 0000000..fe30114 --- /dev/null +++ b/alembic-1.13.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1ff0ae32975f4fd96028c39ed9bb3c867fe3af956bd7bb37343b54c9fe7445ef +size 1206463 diff --git a/pytest8.patch b/pytest8.patch deleted file mode 100644 index 61d0087..0000000 --- a/pytest8.patch +++ /dev/null @@ -1,65 +0,0 @@ -From 6bdb9043868d4bd04ebe3fe8a4991735d5f87ed3 Mon Sep 17 00:00:00 2001 -From: Mike Bayer -Date: Sun, 3 Mar 2024 23:11:50 -0500 -Subject: [PATCH] use SQLAlchemy's xdist methods - -Fixes to support pytest 8.1 for the test suite. - -the use of teardown() was based on pytest's nose -compat, which is removed. their xdist style tests use the name -"setup_method()" and "teardown_method()" now. - -We have SQLAlchemy's pytestplugin in use which uses pytest fixtures -to invoke our own xdist style setUp and tearDown methods, which we -are already using here, so use those for this one test. - -Fixes: #1435 -Change-Id: I4c49e81fca6bfa957594714009531fe12691ace5 ---- - docs/build/unreleased/1435.rst | 5 +++++ - tests/test_command.py | 15 +++++++-------- - tox.ini | 2 +- - 3 files changed, 13 insertions(+), 9 deletions(-) - create mode 100644 docs/build/unreleased/1435.rst - -diff --git a/tests/test_command.py b/tests/test_command.py -index c665f955..04a624ad 100644 ---- a/tests/test_command.py -+++ b/tests/test_command.py -@@ -64,7 +64,7 @@ def setup_class(cls): - def teardown_class(cls): - clear_staging_env() - -- def teardown(self): -+ def tearDown(self): - self.cfg.set_main_option("revision_environment", "false") - - @classmethod -@@ -206,13 +206,12 @@ def test_history_indicate_current(self): - - - class RevisionEnvironmentTest(_BufMixin, TestBase): -- @classmethod -- def setup(cls): -- cls.env = staging_env() -- cls.cfg = _sqlite_testing_config() -- cls._setup_env_file() -+ def setUp(self): -+ self.env = staging_env() -+ self.cfg = _sqlite_testing_config() -+ self._setup_env_file() - -- def teardown(self): -+ def tearDown(self): - self.cfg.set_main_option("revision_environment", "false") - clear_staging_env() - -@@ -1144,7 +1143,7 @@ def setup_class(cls): - cls.cfg = _sqlite_testing_config() - cls.a, cls.b, cls.c = three_rev_fixture(cls.cfg) - -- def teardown(self): -+ def tearDown(self): - os.environ.pop("ALEMBIC_CONFIG", None) - - @classmethod diff --git a/python-alembic.changes b/python-alembic.changes index e477130..f424e07 100644 --- a/python-alembic.changes +++ b/python-alembic.changes @@ -1,3 +1,23 @@ +------------------------------------------------------------------- +Tue Aug 13 23:30:46 UTC 2024 - Guang Yee + +- update to 1.31.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á diff --git a/python-alembic.spec b/python-alembic.spec index b0adb63..ee21ee1 100644 --- a/python-alembic.spec +++ b/python-alembic.spec @@ -18,14 +18,12 @@ %{?sle15_python_module_pythons} Name: python-alembic -Version: 1.13.1 +Version: 1.13.2 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 -# PATCH-FIX-UPSTREAM https://github.com/sqlalchemy/alembic/commit/6bdb9043868d4bd04ebe3fe8a4991735d5f87ed3 use SQLAlchemy's xdist methods -Patch: pytest8.patch BuildRequires: %{python_module Mako} BuildRequires: %{python_module SQLAlchemy >= 2.0.0} BuildRequires: %{python_module backports.zoneinfo if %python-base < 3.9} @@ -67,7 +65,6 @@ offers the following functionality: %prep %setup -q -n alembic-%{version} -%autopatch -p1 %build %pyproject_wheel