From 3172973e7a07682d42842fc38dc6dba8b4ebb584 Mon Sep 17 00:00:00 2001 From: Carl George Date: Sat, 21 Mar 2020 21:59:23 -0500 Subject: [PATCH] Update to 1.4.2 * Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1808866 * Remove old patch file --- .gitignore | 1 + 0f87fecb.patch | 29 ----------------------------- python-alembic.spec | 5 ++++- sources | 2 +- 4 files changed, 6 insertions(+), 31 deletions(-) delete mode 100644 0f87fecb.patch diff --git a/.gitignore b/.gitignore index 69c0320..0f1feca 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,4 @@ /alembic-1.2.1.tar.gz /alembic-1.3.1.tar.gz /alembic-1.4.0.tar.gz +/alembic-1.4.2.tar.gz diff --git a/0f87fecb.patch b/0f87fecb.patch deleted file mode 100644 index 416dbeb..0000000 --- a/0f87fecb.patch +++ /dev/null @@ -1,29 +0,0 @@ -From 0f87fecbf4848d65fb66bfbf8fceb3e1e63ac3ae Mon Sep 17 00:00:00 2001 -From: Mike Bayer -Date: Fri, 18 May 2018 11:11:49 -0400 -Subject: [PATCH] Implement native boolean check constraint flag in test suite - -This is based on -https://github.com/zzzeek/sqlalchemy/commit/d2bacad469c0b07cc707b563e37e835abcf96eb8 -which adds further specificity to SQL Server's boolean behaviors, -the test suite here expects a CHECK constraint to be rendered. - -Change-Id: I2cce018135f292c7eeddcdbc724668ee9d9c9c48 ---- - alembic/testing/fixtures.py | 3 +++ - 1 file changed, 3 insertions(+) - -diff --git a/alembic/testing/fixtures.py b/alembic/testing/fixtures.py -index e6c16dd..86d40a2 100644 ---- a/alembic/testing/fixtures.py -+++ b/alembic/testing/fixtures.py -@@ -146,6 +146,9 @@ def assert_contains(self, sql): - ctx_dialect = _get_dialect(dialect) - if native_boolean is not None: - ctx_dialect.supports_native_boolean = native_boolean -+ # this is new as of SQLAlchemy 1.2.7 and is used by SQL Server, -+ # which breaks assumptions in the alembic test suite -+ ctx_dialect.non_native_boolean_check_constraint = True - if not as_sql: - def execute(stmt, *multiparam, **param): - if isinstance(stmt, string_types): diff --git a/python-alembic.spec b/python-alembic.spec index e6c11e4..465b926 100644 --- a/python-alembic.spec +++ b/python-alembic.spec @@ -1,7 +1,7 @@ %global modname alembic Name: python-alembic -Version: 1.4.0 +Version: 1.4.2 Release: 1%{?dist} Summary: Database migration tool for SQLAlchemy @@ -98,6 +98,9 @@ py.test-3 %changelog +* Sun Mar 22 2020 Carl George - 1.4.2-1 +- Latest upstream rhbz#1808866 + * Wed Feb 19 2020 Randy Barlow - 1.4.0-1 - Update to 1.4.0 (#1784129). - https://alembic.sqlalchemy.org/en/latest/changelog.html#change-1.4.0 diff --git a/sources b/sources index 248c08b..bd1213c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (alembic-1.4.0.tar.gz) = f66c17ce9bd1dedd74d0df6dbda569a2fceb7770ce1020730142c7bd3f72398c520c3b7fdb3a7af0494c231c8f323c01928ca3fcd867d4f7747ad3b5c1f8857c +SHA512 (alembic-1.4.2.tar.gz) = 82bdfe442c19033aa2b802ec49edd13ed265c00a2b5a048490a83ffa8e53587c56a90b64d554e746a9189923419c528482cb7a7c950c210e0de47b32fa7c270e