From 0e1734a10559d48b658a566ad2c9835bd811a9925a54b61d8ac0497439eac058 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 25 Sep 2023 22:35:32 +0000 Subject: [PATCH 1/2] Accepting request 1113500 from home:mimi_vx:branches:devel:languages:python - update to 1.12.0 * Added new feature to the "code formatter" function which allows standalone executable tools to be run against code, without going through the Python interpreter. Known as the `exec` runner, it complements the existing `console_scripts` runner by allowing non-Python tools such as `ruff` to be used. * Change the default value of `.EnvironmentContext.configure.compare_type` to `True`. As Alembic's autogenerate for types was dramatically improved in version 1.4 released in 2020, the type comparison feature is now much more reliable so is now enabled by default. * Fixed issue where the `ForeignKeyConstraint.match` parameter would not be rendered in autogenerated migrations. * Fixed issue where the `revision_environment` directive in `alembic.ini` was ignored by the `alembic merge` command, leading to issues when other configurational elements depend upon `env.py` being invoked within the command. * Added support for `op.drop_constraint()` to support PostgreSQL `ExcludeConstraint` objects, as well as other constraint-like objects that may be present in third party dialects, by resolving the `type_` parameter to be `None` for this case. Autogenerate has also been enhanced to exclude the `type_` parameter from rendering within this command when `type_` is `None`. OBS-URL: https://build.opensuse.org/request/show/1113500 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-alembic?expand=0&rev=150 --- alembic-1.11.2.tar.gz | 3 --- alembic-1.12.0.tar.gz | 3 +++ python-alembic.changes | 26 ++++++++++++++++++++++++++ python-alembic.spec | 3 +-- 4 files changed, 30 insertions(+), 5 deletions(-) delete mode 100644 alembic-1.11.2.tar.gz create mode 100644 alembic-1.12.0.tar.gz diff --git a/alembic-1.11.2.tar.gz b/alembic-1.11.2.tar.gz deleted file mode 100644 index f364043..0000000 --- a/alembic-1.11.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:678f662130dc540dac12de0ea73de9f89caea9dbea138f60ef6263149bf84657 -size 1192900 diff --git a/alembic-1.12.0.tar.gz b/alembic-1.12.0.tar.gz new file mode 100644 index 0000000..5225644 --- /dev/null +++ b/alembic-1.12.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8e7645c32e4f200675e69f0745415335eb59a3663f5feb487abfa0b30c45888b +size 1196597 diff --git a/python-alembic.changes b/python-alembic.changes index 11251f4..14e29c7 100644 --- a/python-alembic.changes +++ b/python-alembic.changes @@ -1,3 +1,29 @@ +------------------------------------------------------------------- +Mon Sep 25 14:53:14 UTC 2023 - Ondřej Súkup + +- update to 1.12.0 + * Added new feature to the "code formatter" function which allows standalone + executable tools to be run against code, without going through the Python + interpreter. Known as the `exec` runner, it complements the existing + `console_scripts` runner by allowing non-Python tools such as `ruff` to + be used. + * Change the default value of `.EnvironmentContext.configure.compare_type` to `True`. + As Alembic's autogenerate for types was dramatically improved in + version 1.4 released in 2020, the type comparison feature is now much + more reliable so is now enabled by default. + * Fixed issue where the `ForeignKeyConstraint.match` parameter would not be + rendered in autogenerated migrations. + * Fixed issue where the `revision_environment` directive in `alembic.ini` + was ignored by the `alembic merge` command, leading to issues when other + configurational elements depend upon `env.py` being invoked within the + command. + * Added support for `op.drop_constraint()` to support PostgreSQL + `ExcludeConstraint` objects, as well as other constraint-like objects + that may be present in third party dialects, by resolving the `type_` + parameter to be `None` for this case. Autogenerate has also been + enhanced to exclude the `type_` parameter from rendering within this + command when `type_` is `None`. + ------------------------------------------------------------------- Sun Aug 13 19:32:21 UTC 2023 - Dirk Müller diff --git a/python-alembic.spec b/python-alembic.spec index abdca22..035f11b 100644 --- a/python-alembic.spec +++ b/python-alembic.spec @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-alembic -Version: 1.11.2 +Version: 1.12.0 Release: 0 Summary: A database migration tool for SQLAlchemy License: MIT @@ -38,7 +38,6 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-Mako Requires: python-SQLAlchemy >= 2.0.0 -Requires: python-python-dateutil Requires: python-typing-extensions >= 4 Requires(post): update-alternatives Requires(postun):update-alternatives From 8ee5b264307f1baee8c613248ed2d9ed14bf719794b605da4b1410b042e981a2 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 25 Sep 2023 22:38:33 +0000 Subject: [PATCH 2/2] - Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-alembic?expand=0&rev=151 --- python-alembic.changes | 5 +++++ python-alembic.spec | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/python-alembic.changes b/python-alembic.changes index 14e29c7..291c64f 100644 --- a/python-alembic.changes +++ b/python-alembic.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Sep 25 22:38:26 UTC 2023 - Matej Cepl + +- Clean up the SPEC file + ------------------------------------------------------------------- Mon Sep 25 14:53:14 UTC 2023 - Ondřej Súkup diff --git a/python-alembic.spec b/python-alembic.spec index 035f11b..f724b41 100644 --- a/python-alembic.spec +++ b/python-alembic.spec @@ -28,11 +28,12 @@ BuildRequires: %{python_module Mako} 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 pip} 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: %{python_module wheel} BuildRequires: %{pythons} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -66,10 +67,10 @@ offers the following functionality: %autopatch -p1 %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %python_clone -a %{buildroot}%{_bindir}/alembic