From 571f67a8335a57478f7e453fd1dc516bd5026f30059d44115ca5862539c0cb15 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 18 May 2021 12:24:06 +0000 Subject: [PATCH] Accepting request 893330 from home:apersaud:branches:devel:languages:python update to latest version OBS-URL: https://build.opensuse.org/request/show/893330 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-alembic?expand=0&rev=119 --- alembic-1.5.8.tar.gz | 3 -- alembic-1.6.2.tar.gz | 3 ++ python-alembic.changes | 79 ++++++++++++++++++++++++++++++++++++++++++ python-alembic.spec | 2 +- 4 files changed, 83 insertions(+), 4 deletions(-) delete mode 100644 alembic-1.5.8.tar.gz create mode 100644 alembic-1.6.2.tar.gz diff --git a/alembic-1.5.8.tar.gz b/alembic-1.5.8.tar.gz deleted file mode 100644 index 247ba58..0000000 --- a/alembic-1.5.8.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e27fd67732c97a1c370c33169ef4578cf96436fa0e7dcfaeeef4a917d0737d56 -size 1154284 diff --git a/alembic-1.6.2.tar.gz b/alembic-1.6.2.tar.gz new file mode 100644 index 0000000..a9a2744 --- /dev/null +++ b/alembic-1.6.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fb9a39a7c68e55490be962fb5f70463d384d340e6563d6e3911447778e3b4576 +size 1167842 diff --git a/python-alembic.changes b/python-alembic.changes index 7adae60..b538023 100644 --- a/python-alembic.changes +++ b/python-alembic.changes @@ -1,3 +1,82 @@ +------------------------------------------------------------------- +Fri May 14 01:18:46 UTC 2021 - Arun Persaud + +- update to version 1.6.2: + * bug + + [bug] [regression] [versioning] Fixed additional regression + nearly the same as that of #838 just released in 1.6.1 but + within a slightly different codepath, where “alembic downgrade + head” (or equivalent) would fail instead of iterating no + revisions. + +- changes from version 1.6.1: + * bug + + [bug] [regression] [versioning] Fixed regression in new + revisioning traversal where “alembic downgrade base” would fail + if the database itself were clean and unversioned; additionally + repairs the case where downgrade would fail if attempting to + downgrade to the current head that is already present. + +- changes from version 1.6.0: + * feature + + [feature] [autogenerate] Fix the documentation regarding the + default command-line argument position of the revision script + filename within the post-write hook arguments. Implement a + REVISION_SCRIPT_FILENAME token, enabling the position to be + changed. Switch from str.split() to shlex.split() for more + robust command-line argument parsing. + + [feature] Implement a .cwd (current working directory) suboption + for post-write hooks (of type console_scripts). This is useful + for tools like pre-commit, which rely on the working directory + to locate the necessary config files. Add pre-commit as an + example to the documentation. Minor change: rename some + variables from ticket #819 to improve readability. + * bug + + [bug] [autogenerate] Refactored the implementation of + MigrateOperation constructs such as CreateIndexOp, + CreateTableOp, etc. so that they no longer rely upon maintaining + a persistent version of each schema object internally; instead, + the state variables of each operation object will be used to + produce the corresponding construct when the operation is + invoked. The rationale is so that environments which make use of + operation-manipulation schemes such as those those discussed in + Fine-Grained Autogenerate Generation with Rewriters are better + supported, allowing end-user code to manipulate the public + attributes of these objects which will then be expressed in the + final output, an example is + some_create_index_op.kw["postgresql_concurrently"] = True. + + Previously, these objects when generated from autogenerate would + typically hold onto the original, reflected element internally + without honoring the other state variables of each construct, + preventing the public API from working. + + [bug] [environment] Fixed regression caused by the SQLAlchemy + 1.4/2.0 compatibility switch where calling .rollback() or + .commit() explicitly within the context.begin_transaction() + context manager would cause it to fail when the block ended, as + it did not expect that the transaction was manually closed. + + [bug] [autogenerate] Improved the rendering of op.add_column() + operations when adding multiple columns to an existing table, so + that the order of these statements matches the order in which + the columns were declared in the application’s table + metadata. Previously the added columns were being sorted + alphabetically. + + [bug] [versioning] The algorithm used for calculating + downgrades/upgrades/iterating revisions has been rewritten, to + resolve ongoing issues of branches not being handled + consistently particularly within downgrade operations, as well + as for overall clarity and maintainability. This change includes + that a deprecation warning is emitted if an ambiguous command + such as “downgrade -1” when multiple heads are present is given. + + In particular, the change implements a long-requested use case + of allowing downgrades of a single branch to a branchpoint. + + Huge thanks to Simon Bowly for their impressive efforts in + successfully tackling this very difficult problem. + + [bug] [batch] Added missing batch_op.create_table_comment(), + batch_op.drop_table_comment() directives to batch ops. + ------------------------------------------------------------------- Wed Apr 7 05:16:16 UTC 2021 - Steve Kowalik diff --git a/python-alembic.spec b/python-alembic.spec index 5465600..91c9165 100644 --- a/python-alembic.spec +++ b/python-alembic.spec @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-alembic -Version: 1.5.8 +Version: 1.6.2 Release: 0 Summary: A database migration tool for SQLAlchemy License: MIT