pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/py-alembic py-alembic: updated to 1.1.0

branches:  trunk
changeset: 338672:7575adc98bd8
user:      adam <>
date:      Wed Aug 28 06:37:38 2019 +0000

py-alembic: updated to 1.1.0



[bug] [commands]

Fixed bug where the double-percent logic applied to some dialects such as psycopg2 would be rendered in --sql mode, by allowing dialect options to be passed through to the dialect used to generate 
SQL and then providing paramstyle="named" so that percent signs need not be doubled. For users having this issue, existing scripts need to add dialect_opts={"paramstyle": "named"} to their 
offline context.configure(). See the alembic/templates/generic/ template for an example.

[bug] [py3k]

Fixed use of the deprecated ?imp? module, which is used to detect pep3147 availability as well as to locate .pyc files, which started emitting deprecation warnings during the test suite. The warnings 
were not being emitted earlier during the test suite, the change is possibly due to changes in py.test itself but this is not clear. The check for pep3147 is set to True for any Python version 3.5 or 
greater now and importlib is used when available. Note that some dependencies such as distutils may still be emitting this warning. Tests are adjusted to accommodate for dependencies that emit the 
warning as well.

[bug] [mysql]

Fixed issue where emitting a change of column name for MySQL did not preserve the column comment, even if it were specified as existing_comment.

[bug] [setup]

Removed the ?python test? feature in favor of a straight run of ?tox?. Per Pypa / pytest developers, ? commands are in general headed towards deprecation in favor of tox. The 
tox.ini script has been updated such that running ?tox? with no arguments will perform a single run of the test suite against the default installed Python interpreter.


[usecase] [commands]

The ?alembic init? command will now proceed if the target directory exists as long as it?s still empty. Previously, it would not proceed if the directory existed. The new behavior is modeled from 
what git does, to accommodate for container or other deployments where an Alembic target directory may need to be already mounted instead of being created with alembic init. Pull request courtesy 
Aviskar KC.



Alembic 1.1 bumps the minimum version of SQLAlchemy to 1.1. As was the case before, Python requirements remain at Python 2.7, or in the 3.x series Python 3.4.

[change] [internals]

The test suite for Alembic now makes use of SQLAlchemy?s testing framework directly. Previously, Alembic had its own version of this framework that was mostly copied from that of SQLAlchemy to enable 
testing with older SQLAlchemy versions. The majority of this code is now removed so that both projects can leverage improvements from a common testing framework.


 databases/py-alembic/Makefile |   4 +-
 databases/py-alembic/PLIST    |  44 +------------------------------------------
 databases/py-alembic/distinfo |  10 ++++----
 3 files changed, 8 insertions(+), 50 deletions(-)

diffs (94 lines):

diff -r ae768414f8f7 -r 7575adc98bd8 databases/py-alembic/Makefile
--- a/databases/py-alembic/Makefile     Wed Aug 28 06:32:52 2019 +0000
+++ b/databases/py-alembic/Makefile     Wed Aug 28 06:37:38 2019 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.17 2019/07/03 20:24:24 adam Exp $
+# $NetBSD: Makefile,v 1.18 2019/08/28 06:37:38 adam Exp $
-DISTNAME=      alembic-1.0.11
+DISTNAME=      alembic-1.1.0
 CATEGORIES=    databases python
diff -r ae768414f8f7 -r 7575adc98bd8 databases/py-alembic/PLIST
--- a/databases/py-alembic/PLIST        Wed Aug 28 06:32:52 2019 +0000
+++ b/databases/py-alembic/PLIST        Wed Aug 28 06:37:38 2019 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2018/10/18 10:15:18 adam Exp $
+@comment $NetBSD: PLIST,v 1.4 2019/08/28 06:37:38 adam Exp $
@@ -121,57 +121,15 @@
diff -r ae768414f8f7 -r 7575adc98bd8 databases/py-alembic/distinfo
--- a/databases/py-alembic/distinfo     Wed Aug 28 06:32:52 2019 +0000
+++ b/databases/py-alembic/distinfo     Wed Aug 28 06:37:38 2019 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.16 2019/07/03 20:24:24 adam Exp $
+$NetBSD: distinfo,v 1.17 2019/08/28 06:37:38 adam Exp $
-SHA1 (alembic-1.0.11.tar.gz) = 7e22f168f674d54be4b0ef69c12f872fec0a2394
-RMD160 (alembic-1.0.11.tar.gz) = 58501afb51bdedc155189161f0fd4ee7a8c331c8
-SHA512 (alembic-1.0.11.tar.gz) = 5e59c90a0f0b0ca1fab356accc7f28cd4e2a76625fc7a268e6b3f925b3dd905aa3fda3d0044474b79fc969610fb9f0e795de5c4bdf42f047a194d178ca3d016c
-Size (alembic-1.0.11.tar.gz) = 1032693 bytes
+SHA1 (alembic-1.1.0.tar.gz) = 1639ccf471adced412acd9ce916f188d7bf41fee
+RMD160 (alembic-1.1.0.tar.gz) = 01e8079da01ea524cecea563361d4b04d8584526
+SHA512 (alembic-1.1.0.tar.gz) = 9ddd5b64048aba67c03effa8839eec2ba486295f86223f281c345ef95077c3dc205773a2a4367c5204ca7789e3f05235de9ed6bc0d200f51515bf3ce5ed8e447
+Size (alembic-1.1.0.tar.gz) = 1028979 bytes

Home | Main Index | Thread Index | Old Index