Wed Aug 28 06:37:38 2019 UTC ()
py-alembic: updated to 1.1.0

1.1.0:

bug

[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 env.py scripts need to add dialect_opts={"paramstyle": "named"} to their offline context.configure(). See the alembic/templates/generic/env.py template for an example.

[bug] [py3k]

Fixed use of the deprecated 窶彿mp窶� 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 窶徘ython setup.py test窶� feature in favor of a straight run of 窶徼ox窶�. Per Pypa / pytest developers, 窶徭etup.py窶� commands are in general headed towards deprecation in favor of tox. The tox.ini script has been updated such that running 窶徼ox窶� with no arguments will perform a single run of the test suite against the default installed Python interpreter.

usecase

[usecase] [commands]

The 窶彗lembic init窶� command will now proceed if the target directory exists as long as it窶冱 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.

misc

[change]

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窶冱 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.


(adam)
diff -r1.17 -r1.18 pkgsrc/databases/py-alembic/Makefile
diff -r1.3 -r1.4 pkgsrc/databases/py-alembic/PLIST
diff -r1.16 -r1.17 pkgsrc/databases/py-alembic/distinfo

cvs diff -r1.17 -r1.18 pkgsrc/databases/py-alembic/Makefile (expand / switch to unified diff)

--- pkgsrc/databases/py-alembic/Makefile 2019/07/03 20:24:24 1.17
+++ pkgsrc/databases/py-alembic/Makefile 2019/08/28 06:37:38 1.18
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1# $NetBSD: Makefile,v 1.17 2019/07/03 20:24:24 adam Exp $ 1# $NetBSD: Makefile,v 1.18 2019/08/28 06:37:38 adam Exp $
2 2
3DISTNAME= alembic-1.0.11 3DISTNAME= alembic-1.1.0
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5CATEGORIES= databases python 5CATEGORIES= databases python
6MASTER_SITES= ${MASTER_SITE_PYPI:=a/alembic/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=a/alembic/}
7 7
8MAINTAINER= kamelderouiche@yahoo.com 8MAINTAINER= kamelderouiche@yahoo.com
9HOMEPAGE= https://alembic.sqlalchemy.org/ 9HOMEPAGE= https://alembic.sqlalchemy.org/
10COMMENT= Database migration tool for SQLAlchemy 10COMMENT= Database migration tool for SQLAlchemy
11LICENSE= mit 11LICENSE= mit
12 12
13DEPENDS+= ${PYPKGPREFIX}-dateutil-[0-9]*:../../time/py-dateutil 13DEPENDS+= ${PYPKGPREFIX}-dateutil-[0-9]*:../../time/py-dateutil
14DEPENDS+= ${PYPKGPREFIX}-editor>=0.3:../../editors/py-editor 14DEPENDS+= ${PYPKGPREFIX}-editor>=0.3:../../editors/py-editor
15DEPENDS+= ${PYPKGPREFIX}-mako-[0-9]*:../../devel/py-mako 15DEPENDS+= ${PYPKGPREFIX}-mako-[0-9]*:../../devel/py-mako
16DEPENDS+= ${PYPKGPREFIX}-sqlalchemy>=0.9.8:../../databases/py-sqlalchemy 16DEPENDS+= ${PYPKGPREFIX}-sqlalchemy>=0.9.8:../../databases/py-sqlalchemy

cvs diff -r1.3 -r1.4 pkgsrc/databases/py-alembic/PLIST (expand / switch to unified diff)

--- pkgsrc/databases/py-alembic/PLIST 2018/10/18 10:15:18 1.3
+++ pkgsrc/databases/py-alembic/PLIST 2019/08/28 06:37:38 1.4
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1@comment $NetBSD: PLIST,v 1.3 2018/10/18 10:15:18 adam Exp $ 1@comment $NetBSD: PLIST,v 1.4 2019/08/28 06:37:38 adam Exp $
2bin/alembic-${PYVERSSUFFIX} 2bin/alembic-${PYVERSSUFFIX}
3${PYSITELIB}/${EGG_INFODIR}/PKG-INFO 3${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
4${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt 4${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
5${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt 5${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
6${PYSITELIB}/${EGG_INFODIR}/entry_points.txt 6${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
7${PYSITELIB}/${EGG_INFODIR}/not-zip-safe 7${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
8${PYSITELIB}/${EGG_INFODIR}/requires.txt 8${PYSITELIB}/${EGG_INFODIR}/requires.txt
9${PYSITELIB}/${EGG_INFODIR}/top_level.txt 9${PYSITELIB}/${EGG_INFODIR}/top_level.txt
10${PYSITELIB}/alembic/__init__.py 10${PYSITELIB}/alembic/__init__.py
11${PYSITELIB}/alembic/__init__.pyc 11${PYSITELIB}/alembic/__init__.pyc
12${PYSITELIB}/alembic/__init__.pyo 12${PYSITELIB}/alembic/__init__.pyo
13${PYSITELIB}/alembic/autogenerate/__init__.py 13${PYSITELIB}/alembic/autogenerate/__init__.py
14${PYSITELIB}/alembic/autogenerate/__init__.pyc 14${PYSITELIB}/alembic/autogenerate/__init__.pyc
@@ -111,77 +111,35 @@ ${PYSITELIB}/alembic/templates/multidb/e @@ -111,77 +111,35 @@ ${PYSITELIB}/alembic/templates/multidb/e
111${PYSITELIB}/alembic/templates/multidb/script.py.mako 111${PYSITELIB}/alembic/templates/multidb/script.py.mako
112${PYSITELIB}/alembic/templates/pylons/README 112${PYSITELIB}/alembic/templates/pylons/README
113${PYSITELIB}/alembic/templates/pylons/alembic.ini.mako 113${PYSITELIB}/alembic/templates/pylons/alembic.ini.mako
114${PYSITELIB}/alembic/templates/pylons/env.py 114${PYSITELIB}/alembic/templates/pylons/env.py
115${PYSITELIB}/alembic/templates/pylons/env.pyc 115${PYSITELIB}/alembic/templates/pylons/env.pyc
116${PYSITELIB}/alembic/templates/pylons/env.pyo 116${PYSITELIB}/alembic/templates/pylons/env.pyo
117${PYSITELIB}/alembic/templates/pylons/script.py.mako 117${PYSITELIB}/alembic/templates/pylons/script.py.mako
118${PYSITELIB}/alembic/testing/__init__.py 118${PYSITELIB}/alembic/testing/__init__.py
119${PYSITELIB}/alembic/testing/__init__.pyc 119${PYSITELIB}/alembic/testing/__init__.pyc
120${PYSITELIB}/alembic/testing/__init__.pyo 120${PYSITELIB}/alembic/testing/__init__.pyo
121${PYSITELIB}/alembic/testing/assertions.py 121${PYSITELIB}/alembic/testing/assertions.py
122${PYSITELIB}/alembic/testing/assertions.pyc 122${PYSITELIB}/alembic/testing/assertions.pyc
123${PYSITELIB}/alembic/testing/assertions.pyo 123${PYSITELIB}/alembic/testing/assertions.pyo
124${PYSITELIB}/alembic/testing/compat.py 
125${PYSITELIB}/alembic/testing/compat.pyc 
126${PYSITELIB}/alembic/testing/compat.pyo 
127${PYSITELIB}/alembic/testing/config.py 
128${PYSITELIB}/alembic/testing/config.pyc 
129${PYSITELIB}/alembic/testing/config.pyo 
130${PYSITELIB}/alembic/testing/engines.py 
131${PYSITELIB}/alembic/testing/engines.pyc 
132${PYSITELIB}/alembic/testing/engines.pyo 
133${PYSITELIB}/alembic/testing/env.py 124${PYSITELIB}/alembic/testing/env.py
134${PYSITELIB}/alembic/testing/env.pyc 125${PYSITELIB}/alembic/testing/env.pyc
135${PYSITELIB}/alembic/testing/env.pyo 126${PYSITELIB}/alembic/testing/env.pyo
136${PYSITELIB}/alembic/testing/exclusions.py 
137${PYSITELIB}/alembic/testing/exclusions.pyc 
138${PYSITELIB}/alembic/testing/exclusions.pyo 
139${PYSITELIB}/alembic/testing/fixtures.py 127${PYSITELIB}/alembic/testing/fixtures.py
140${PYSITELIB}/alembic/testing/fixtures.pyc 128${PYSITELIB}/alembic/testing/fixtures.pyc
141${PYSITELIB}/alembic/testing/fixtures.pyo 129${PYSITELIB}/alembic/testing/fixtures.pyo
142${PYSITELIB}/alembic/testing/mock.py 
143${PYSITELIB}/alembic/testing/mock.pyc 
144${PYSITELIB}/alembic/testing/mock.pyo 
145${PYSITELIB}/alembic/testing/plugin/__init__.py 
146${PYSITELIB}/alembic/testing/plugin/__init__.pyc 
147${PYSITELIB}/alembic/testing/plugin/__init__.pyo 
148${PYSITELIB}/alembic/testing/plugin/bootstrap.py 
149${PYSITELIB}/alembic/testing/plugin/bootstrap.pyc 
150${PYSITELIB}/alembic/testing/plugin/bootstrap.pyo 
151${PYSITELIB}/alembic/testing/plugin/noseplugin.py 
152${PYSITELIB}/alembic/testing/plugin/noseplugin.pyc 
153${PYSITELIB}/alembic/testing/plugin/noseplugin.pyo 
154${PYSITELIB}/alembic/testing/plugin/plugin_base.py 
155${PYSITELIB}/alembic/testing/plugin/plugin_base.pyc 
156${PYSITELIB}/alembic/testing/plugin/plugin_base.pyo 
157${PYSITELIB}/alembic/testing/plugin/pytestplugin.py 
158${PYSITELIB}/alembic/testing/plugin/pytestplugin.pyc 
159${PYSITELIB}/alembic/testing/plugin/pytestplugin.pyo 
160${PYSITELIB}/alembic/testing/provision.py 
161${PYSITELIB}/alembic/testing/provision.pyc 
162${PYSITELIB}/alembic/testing/provision.pyo 
163${PYSITELIB}/alembic/testing/requirements.py 130${PYSITELIB}/alembic/testing/requirements.py
164${PYSITELIB}/alembic/testing/requirements.pyc 131${PYSITELIB}/alembic/testing/requirements.pyc
165${PYSITELIB}/alembic/testing/requirements.pyo 132${PYSITELIB}/alembic/testing/requirements.pyo
166${PYSITELIB}/alembic/testing/runner.py 
167${PYSITELIB}/alembic/testing/runner.pyc 
168${PYSITELIB}/alembic/testing/runner.pyo 
169${PYSITELIB}/alembic/testing/util.py 
170${PYSITELIB}/alembic/testing/util.pyc 
171${PYSITELIB}/alembic/testing/util.pyo 
172${PYSITELIB}/alembic/testing/warnings.py 
173${PYSITELIB}/alembic/testing/warnings.pyc 
174${PYSITELIB}/alembic/testing/warnings.pyo 
175${PYSITELIB}/alembic/util/__init__.py 133${PYSITELIB}/alembic/util/__init__.py
176${PYSITELIB}/alembic/util/__init__.pyc 134${PYSITELIB}/alembic/util/__init__.pyc
177${PYSITELIB}/alembic/util/__init__.pyo 135${PYSITELIB}/alembic/util/__init__.pyo
178${PYSITELIB}/alembic/util/compat.py 136${PYSITELIB}/alembic/util/compat.py
179${PYSITELIB}/alembic/util/compat.pyc 137${PYSITELIB}/alembic/util/compat.pyc
180${PYSITELIB}/alembic/util/compat.pyo 138${PYSITELIB}/alembic/util/compat.pyo
181${PYSITELIB}/alembic/util/exc.py 139${PYSITELIB}/alembic/util/exc.py
182${PYSITELIB}/alembic/util/exc.pyc 140${PYSITELIB}/alembic/util/exc.pyc
183${PYSITELIB}/alembic/util/exc.pyo 141${PYSITELIB}/alembic/util/exc.pyo
184${PYSITELIB}/alembic/util/langhelpers.py 142${PYSITELIB}/alembic/util/langhelpers.py
185${PYSITELIB}/alembic/util/langhelpers.pyc 143${PYSITELIB}/alembic/util/langhelpers.pyc
186${PYSITELIB}/alembic/util/langhelpers.pyo 144${PYSITELIB}/alembic/util/langhelpers.pyo
187${PYSITELIB}/alembic/util/messaging.py 145${PYSITELIB}/alembic/util/messaging.py

cvs diff -r1.16 -r1.17 pkgsrc/databases/py-alembic/distinfo (expand / switch to unified diff)

--- pkgsrc/databases/py-alembic/distinfo 2019/07/03 20:24:24 1.16
+++ pkgsrc/databases/py-alembic/distinfo 2019/08/28 06:37:38 1.17
@@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
1$NetBSD: distinfo,v 1.16 2019/07/03 20:24:24 adam Exp $ 1$NetBSD: distinfo,v 1.17 2019/08/28 06:37:38 adam Exp $
2 2
3SHA1 (alembic-1.0.11.tar.gz) = 7e22f168f674d54be4b0ef69c12f872fec0a2394 3SHA1 (alembic-1.1.0.tar.gz) = 1639ccf471adced412acd9ce916f188d7bf41fee
4RMD160 (alembic-1.0.11.tar.gz) = 58501afb51bdedc155189161f0fd4ee7a8c331c8 4RMD160 (alembic-1.1.0.tar.gz) = 01e8079da01ea524cecea563361d4b04d8584526
5SHA512 (alembic-1.0.11.tar.gz) = 5e59c90a0f0b0ca1fab356accc7f28cd4e2a76625fc7a268e6b3f925b3dd905aa3fda3d0044474b79fc969610fb9f0e795de5c4bdf42f047a194d178ca3d016c 5SHA512 (alembic-1.1.0.tar.gz) = 9ddd5b64048aba67c03effa8839eec2ba486295f86223f281c345ef95077c3dc205773a2a4367c5204ca7789e3f05235de9ed6bc0d200f51515bf3ce5ed8e447
6Size (alembic-1.0.11.tar.gz) = 1032693 bytes 6Size (alembic-1.1.0.tar.gz) = 1028979 bytes