1
0

16 Commits

Author SHA256 Message Date
a826e4d248 Accepting request 1321929 from devel:languages:python
Forwarded request #1321860 from yeey

- Update to 1.17.2
    * [feature] [operations] Added Operations.implementation_for.replace parameter to
      Operations.implementation_for(), allowing replacement of existing
      operation implementations. This allows for existing operations such as
      CreateTableOp to be extended directly.
    * [bug] [mssql] Fixed issue in SQL Server dialect where the DROP that's automatically
      emitted for existing default constraints during an ALTER COLUMN needs to
      take place before not just the modification of the column's default, but
      also before the column's type is changed.

OBS-URL: https://build.opensuse.org/request/show/1321929
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-alembic?expand=0&rev=88
2025-12-11 17:32:01 +00:00
700d90eb6f - Update to 1.17.2
* [feature] [operations] Added Operations.implementation_for.replace parameter to
    Operations.implementation_for(), allowing replacement of existing
    operation implementations. This allows for existing operations such as
    CreateTableOp to be extended directly.
  * [bug] [mssql] Fixed issue in SQL Server dialect where the DROP that's automatically
    emitted for existing default constraints during an ALTER COLUMN needs to
    take place before not just the modification of the column's default, but
    also before the column's type is changed.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-alembic?expand=0&rev=178
2025-12-10 10:06:40 +00:00
555277b1c7 Accepting request 1298832 from devel:languages:python
- Make the libalternatives transition conditional

OBS-URL: https://build.opensuse.org/request/show/1298832
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-alembic?expand=0&rev=87
2025-08-12 15:03:29 +00:00
45d5aa7024 - Make the libalternatives transition conditional
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-alembic?expand=0&rev=176
2025-08-11 12:44:11 +00:00
62897139c0 Accepting request 1286097 from devel:languages:python
- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1286097
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-alembic?expand=0&rev=86
2025-06-18 13:53:45 +00:00
9679e7c7b2 - Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-alembic?expand=0&rev=174
2025-06-16 12:19:49 +00:00
b8ae99a05b Accepting request 1267106 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1267106
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-alembic?expand=0&rev=85
2025-04-07 15:35:06 +00:00
178a1bb78f - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-alembic?expand=0&rev=172
2025-04-04 10:52:09 +00:00
e4fd8ef792 Accepting request 1255008 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1255008
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-alembic?expand=0&rev=84
2025-03-24 12:25:16 +00:00
6020932414 - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-alembic?expand=0&rev=170
2025-03-21 13:02:23 +00:00
6a1c2d7825 Accepting request 1240751 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1240751
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-alembic?expand=0&rev=83
2025-01-29 15:09:48 +00:00
c6c000eada - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-alembic?expand=0&rev=168
2025-01-28 10:11:27 +00:00
070ff8df28 Accepting request 1225089 from devel:languages:python
- 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.

OBS-URL: https://build.opensuse.org/request/show/1225089
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-alembic?expand=0&rev=82
2024-11-20 15:59:18 +00:00
7d861e46ab - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-alembic?expand=0&rev=166
2024-11-19 12:32:07 +00:00
1758204b1a Accepting request 1204393 from devel:languages:python
- 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.

- update to 1.13.2:

OBS-URL: https://build.opensuse.org/request/show/1204393
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-alembic?expand=0&rev=81
2024-09-30 13:34:28 +00:00
5a2f0ae1c0 - 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.
- update to 1.13.2:

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-alembic?expand=0&rev=164
2024-09-28 19:20:47 +00:00
4 changed files with 101 additions and 8 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1ff0ae32975f4fd96028c39ed9bb3c867fe3af956bd7bb37343b54c9fe7445ef
size 1206463

3
alembic-1.17.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bbe9751705c5e0f14877f02d46c53d10885e377e3d90eda810a016f9baa19e8e
size 1988064

View File

@@ -1,7 +1,86 @@
-------------------------------------------------------------------
Wed Dec 3 22:05:51 UTC 2025 - Guang Yee <gyee@suse.com>
- Update to 1.17.2
* [feature] [operations] Added Operations.implementation_for.replace parameter to
Operations.implementation_for(), allowing replacement of existing
operation implementations. This allows for existing operations such as
CreateTableOp to be extended directly.
* [bug] [mssql] Fixed issue in SQL Server dialect where the DROP that's automatically
emitted for existing default constraints during an ALTER COLUMN needs to
take place before not just the modification of the column's default, but
also before the column's type is changed.
-------------------------------------------------------------------
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 SQLites dialect to render “ALTER TABLE <t> RENAME COLUMN”
when Operations.alter_column() is used with a straight rename,
supporting SQLites 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.31.2:
- 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
@@ -16,7 +95,7 @@ Tue Aug 13 23:30:46 UTC 2024 - Guang Yee <gyee@suse.com>
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>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-alembic
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,9 +16,14 @@
#
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons}
Name: python-alembic
Version: 1.13.2
Version: 1.17.2
Release: 0
Summary: A database migration tool for SQLAlchemy
License: MIT
@@ -27,6 +32,7 @@ Source0: https://files.pythonhosted.org/packages/source/a/alembic/alembic
BuildRequires: %{python_module Mako}
BuildRequires: %{python_module SQLAlchemy >= 2.0.0}
BuildRequires: %{python_module backports.zoneinfo if %python-base < 3.9}
BuildRequires: %{python_module black}
BuildRequires: %{python_module importlib-metadata if %python-base < 3.9}
BuildRequires: %{python_module importlib-resources if %python-base < 3.9}
BuildRequires: %{python_module pip}
@@ -41,9 +47,14 @@ BuildRequires: python-rpm-macros
Requires: python-Mako
Requires: python-SQLAlchemy >= 2.0.0
Requires: python-typing-extensions >= 4
BuildArch: noarch
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%endif
%if 0%{?python_version_nodots} < 39
Requires: python-importlib-metadata
Requires: python-importlib-resources
@@ -77,6 +88,9 @@ offers the following functionality:
%check
%pytest -n auto
%pre
%python_libalternatives_reset_alternative alembic
%post
%python_install_alternative alembic