Received: by mail.netbsd.org (Postfix, from userid 605) id D4ED584D5B; Thu, 10 Oct 2019 18:26:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 5C45184D47 for ; Thu, 10 Oct 2019 18:26:54 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id hmkBsnWz1dZy for ; Thu, 10 Oct 2019 18:26:53 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 8A1F384C6C for ; Thu, 10 Oct 2019 18:26:53 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 83A38FBF4; Thu, 10 Oct 2019 18:26:53 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_157073201367630" MIME-Version: 1.0 Date: Thu, 10 Oct 2019 18:26:53 +0000 From: "Adam Ciarcinski" Subject: CVS commit: pkgsrc/databases/py-alembic To: pkgsrc-changes@NetBSD.org Reply-To: adam@netbsd.org X-Mailer: log_accum Message-Id: <20191010182653.83A38FBF4@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_157073201367630 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="UTF-8" Module Name: pkgsrc Committed By: adam Date: Thu Oct 10 18:26:53 UTC 2019 Modified Files: pkgsrc/databases/py-alembic: Makefile PLIST distinfo Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 pkgsrc/databases/py-alembic/Makefile cvs rdiff -u -r1.4 -r1.5 pkgsrc/databases/py-alembic/PLIST cvs rdiff -u -r1.17 -r1.18 pkgsrc/databases/py-alembic/distinfo Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_157073201367630 Content-Disposition: inline Content-Length: 2672 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/databases/py-alembic/Makefile diff -u pkgsrc/databases/py-alembic/Makefile:1.18 pkgsrc/databases/py-alembic/Makefile:1.19 --- pkgsrc/databases/py-alembic/Makefile:1.18 Wed Aug 28 06:37:38 2019 +++ pkgsrc/databases/py-alembic/Makefile Thu Oct 10 18:26:53 2019 @@ -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/} Index: pkgsrc/databases/py-alembic/PLIST diff -u pkgsrc/databases/py-alembic/PLIST:1.4 pkgsrc/databases/py-alembic/PLIST:1.5 --- pkgsrc/databases/py-alembic/PLIST:1.4 Wed Aug 28 06:37:38 2019 +++ pkgsrc/databases/py-alembic/PLIST Thu Oct 10 18:26:53 2019 @@ -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/base.pyo ${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 Index: pkgsrc/databases/py-alembic/distinfo diff -u pkgsrc/databases/py-alembic/distinfo:1.17 pkgsrc/databases/py-alembic/distinfo:1.18 --- pkgsrc/databases/py-alembic/distinfo:1.17 Wed Aug 28 06:37:38 2019 +++ pkgsrc/databases/py-alembic/distinfo Thu Oct 10 18:26:53 2019 @@ -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 --_----------=_157073201367630--