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.2.1
details: https://anonhg.NetBSD.org/pkgsrc/rev/51b3e7aad4f0
branches: trunk
changeset: 415640:51b3e7aad4f0
user: adam <adam%pkgsrc.org@localhost>
date: Thu Oct 10 18:26:53 2019 +0000
description:
py-alembic: updated to 1.2.1
1.2.1
bug
[bug] [command]
Reverted the name change of the ?revisions? argument to command.stamp() to ?revision? as apparently applications are calling upon this argument as a keyword name. Pull request courtesy Thomas
Bechtold. Special translations are also added to the command line interface so that it is still known as ?revisions? in the CLI.
[bug] [tests]
Removed the ?test requirements? from ?setup.py test?, as this command now only emits a removal error in any case and these requirements are unused.
1.2.0
feature
[feature] [command]
Added new --purge flag to the alembic stamp command, which will unconditionally erase the version table before stamping anything. This is useful for development where non-existent version identifiers
might be left within the table. Additionally, alembic.stamp now supports a list of revision identifiers, which are intended to allow setting up muliple heads at once. Overall handling of version
identifiers within the alembic.stamp command has been improved with many new tests and use cases added.
[feature] [runtime]
Added new feature MigrationContext.autocommit_block(), a special directive which will provide for a non-transactional block inside of a migration script. The feature requres that: the database driver
(e.g. DBAPI) supports the AUTOCOMMIT isolation mode. The directive also necessarily needs to COMMIT the existing transaction in progress in order to enter autocommit mode.
[feature] [commands]
Added ?post write hooks? to revision generation. These allow custom logic to run after a revision Python script is generated, typically for the purpose of running code formatters such as ?Black? or
?autopep8?, but may be used for any arbitrary post-render hook as well, including custom Python functions or scripts. The hooks are enabled by providing a [post_write_hooks] section in the
alembic.ini file. A single hook is provided which runs an arbitrary Python executable on the newly generated revision script, which can be configured to run code formatters such as Black; full
examples are included in the documentation.
[feature] [environment]
Added new flag --package to alembic init. For environments where the Alembic migration files and such are within the package tree and importable as modules, this flag can be specified which will add
the additional __init__.py files in the version location and the environment location.
diffstat:
databases/py-alembic/Makefile | 4 ++--
databases/py-alembic/PLIST | 5 ++++-
databases/py-alembic/distinfo | 10 +++++-----
3 files changed, 11 insertions(+), 8 deletions(-)
diffs (46 lines):
diff -r 3eb07216a76e -r 51b3e7aad4f0 databases/py-alembic/Makefile
--- a/databases/py-alembic/Makefile Thu Oct 10 18:22:49 2019 +0000
+++ b/databases/py-alembic/Makefile Thu Oct 10 18:26:53 2019 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.18 2019/08/28 06:37:38 adam Exp $
+# $NetBSD: Makefile,v 1.19 2019/10/10 18:26:53 adam Exp $
-DISTNAME= alembic-1.1.0
+DISTNAME= alembic-1.2.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= databases python
MASTER_SITES= ${MASTER_SITE_PYPI:=a/alembic/}
diff -r 3eb07216a76e -r 51b3e7aad4f0 databases/py-alembic/PLIST
--- a/databases/py-alembic/PLIST Thu Oct 10 18:22:49 2019 +0000
+++ b/databases/py-alembic/PLIST Thu Oct 10 18:26:53 2019 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.4 2019/08/28 06:37:38 adam Exp $
+@comment $NetBSD: PLIST,v 1.5 2019/10/10 18:26:53 adam Exp $
bin/alembic-${PYVERSSUFFIX}
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
@@ -97,6 +97,9 @@
${PYSITELIB}/alembic/script/revision.py
${PYSITELIB}/alembic/script/revision.pyc
${PYSITELIB}/alembic/script/revision.pyo
+${PYSITELIB}/alembic/script/write_hooks.py
+${PYSITELIB}/alembic/script/write_hooks.pyc
+${PYSITELIB}/alembic/script/write_hooks.pyo
${PYSITELIB}/alembic/templates/generic/README
${PYSITELIB}/alembic/templates/generic/alembic.ini.mako
${PYSITELIB}/alembic/templates/generic/env.py
diff -r 3eb07216a76e -r 51b3e7aad4f0 databases/py-alembic/distinfo
--- a/databases/py-alembic/distinfo Thu Oct 10 18:22:49 2019 +0000
+++ b/databases/py-alembic/distinfo Thu Oct 10 18:26:53 2019 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.17 2019/08/28 06:37:38 adam Exp $
+$NetBSD: distinfo,v 1.18 2019/10/10 18:26:53 adam Exp $
-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
+SHA1 (alembic-1.2.1.tar.gz) = efb4bc29740da44697c99e668ae6edc07d70e9c1
+RMD160 (alembic-1.2.1.tar.gz) = 30306893e3ec3faa1f0293c70b04da8348b3067f
+SHA512 (alembic-1.2.1.tar.gz) = 13e0d3bce34dc54fa1f5ce6a734e89884f76438fbfb14cfe343280803f12424e37052bf3ade911c69170d308b2446bbce7bd92b83696fb02ed9a98231fdb05b2
+Size (alembic-1.2.1.tar.gz) = 1053595 bytes
Home |
Main Index |
Thread Index |
Old Index