Compare commits
16 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 9d24ca03ad | |||
| 54cf9466f4 | |||
| ad2a0457ae | |||
| 4edb95d937 | |||
| 8162c12554 | |||
| c2f8b033f2 | |||
| fd6a8cf4bd | |||
| 6ff53f34eb | |||
| 62d35ed945 | |||
| 0bbe50d04e | |||
| c62390d9df | |||
| 9a12f38e20 | |||
| 4f1af2c527 | |||
| 88fb1f0eff | |||
| 32847390cd | |||
| 13c002f005 |
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:4932c8558bf68f2ee92b9bbcb8218671c627064d5b08939437af6d77dc05e595
|
|
||||||
size 1213288
|
|
||||||
BIN
alembic-1.15.2.tar.gz
LFS
Normal file
BIN
alembic-1.15.2.tar.gz
LFS
Normal file
Binary file not shown.
@@ -1,65 +0,0 @@
|
|||||||
From 6bdb9043868d4bd04ebe3fe8a4991735d5f87ed3 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Mike Bayer <mike_mp@zzzcomputing.com>
|
|
||||||
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
|
|
||||||
@@ -1,3 +1,89 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Aug 11 12:43:03 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Make the libalternatives transition conditional
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 16 12:19:22 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to libalternatives
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Apr 4 09:43:05 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
- Update to 1.15.2
|
||||||
|
* Fixed issue where the "modified_name" of :class:`.AlterColumnOp` would not
|
||||||
|
be considered when rendering op directives for autogenerate. While
|
||||||
|
autogenerate cannot detect changes in column name, this would nonetheless
|
||||||
|
impact approaches that made use of this attribute in rewriter recipes. Pull
|
||||||
|
request courtesy lenvk.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Mar 21 10:20:46 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
- Update to 1.15.1
|
||||||
|
* Fixed an issue in the new :pep:`621` ``pyproject.toml`` layout that
|
||||||
|
prevented Alembic's template files from being included in the ``.whl``
|
||||||
|
file in the distribution.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 27 12:29:40 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
- Update to 1.14.1
|
||||||
|
* Modified SQLite’s dialect to render “ALTER TABLE <t> RENAME COLUMN”
|
||||||
|
when Operations.alter_column() is used with a straight rename,
|
||||||
|
supporting SQLite’s recently added column rename feature.
|
||||||
|
* Added tzdata to tz extras, which is required on some platforms
|
||||||
|
such as Windows. Pull request courtesy Danipulok.
|
||||||
|
* Fixed bug where autogen render of a “variant” type would fail to
|
||||||
|
catch the variants if the leading type were a dialect-specific type,
|
||||||
|
rather than a generic type.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 19 12:31:07 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to el_1_14_0:
|
||||||
|
* **[usecase] [runtime]** Added a new hook to the
|
||||||
|
`DefaultImpl` `DefaultImpl.version_table_impl()`. This allows
|
||||||
|
third party dialects to define the exact structure of the
|
||||||
|
alembic_version table, to include use cases where the table
|
||||||
|
requires special directives and/or additional columns so that
|
||||||
|
it may function correctly on a particular backend.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Sep 28 19:16:36 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- 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 <gyee@suse.com>
|
||||||
|
|
||||||
|
- 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á <mmachova@suse.com>
|
Fri May 17 13:09:48 UTC 2024 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-alembic
|
# spec file for package python-alembic
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,16 +16,19 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
%bcond_without libalternatives
|
||||||
|
%else
|
||||||
|
%bcond_with libalternatives
|
||||||
|
%endif
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-alembic
|
Name: python-alembic
|
||||||
Version: 1.13.1
|
Version: 1.15.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A database migration tool for SQLAlchemy
|
Summary: A database migration tool for SQLAlchemy
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/sqlalchemy/alembic
|
URL: https://github.com/sqlalchemy/alembic
|
||||||
Source0: https://files.pythonhosted.org/packages/source/a/alembic/alembic-%{version}.tar.gz
|
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 Mako}
|
||||||
BuildRequires: %{python_module SQLAlchemy >= 2.0.0}
|
BuildRequires: %{python_module SQLAlchemy >= 2.0.0}
|
||||||
BuildRequires: %{python_module backports.zoneinfo if %python-base < 3.9}
|
BuildRequires: %{python_module backports.zoneinfo if %python-base < 3.9}
|
||||||
@@ -43,9 +46,14 @@ BuildRequires: python-rpm-macros
|
|||||||
Requires: python-Mako
|
Requires: python-Mako
|
||||||
Requires: python-SQLAlchemy >= 2.0.0
|
Requires: python-SQLAlchemy >= 2.0.0
|
||||||
Requires: python-typing-extensions >= 4
|
Requires: python-typing-extensions >= 4
|
||||||
|
BuildArch: noarch
|
||||||
|
%if %{with libalternatives}
|
||||||
|
BuildRequires: alts
|
||||||
|
Requires: alts
|
||||||
|
%else
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
%endif
|
||||||
%if 0%{?python_version_nodots} < 39
|
%if 0%{?python_version_nodots} < 39
|
||||||
Requires: python-importlib-metadata
|
Requires: python-importlib-metadata
|
||||||
Requires: python-importlib-resources
|
Requires: python-importlib-resources
|
||||||
@@ -67,7 +75,6 @@ offers the following functionality:
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n alembic-%{version}
|
%setup -q -n alembic-%{version}
|
||||||
%autopatch -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
@@ -80,6 +87,9 @@ offers the following functionality:
|
|||||||
%check
|
%check
|
||||||
%pytest -n auto
|
%pytest -n auto
|
||||||
|
|
||||||
|
%pre
|
||||||
|
%python_libalternatives_reset_alternative alembic
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative alembic
|
%python_install_alternative alembic
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user