diff options
| author | adam <adam@pkgsrc.org> | 2019-10-10 18:26:53 +0000 |
|---|---|---|
| committer | adam <adam@pkgsrc.org> | 2019-10-10 18:26:53 +0000 |
| commit | 72e5aaffe21e6a0d86fb07ae3b99cae67d4a91ad (patch) | |
| tree | ecbdd04c74cf43cdb1fd716b5f4888ca15905ab5 /databases/py-alembic | |
| parent | f375cb6afd5a4f9639df9c1e9035974fbcc54cf5 (diff) | |
| download | pkgsrc-72e5aaffe21e6a0d86fb07ae3b99cae67d4a91ad.tar.gz | |
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 (limited to 'databases/py-alembic')
| -rw-r--r-- | databases/py-alembic/Makefile | 4 | ||||
| -rw-r--r-- | databases/py-alembic/PLIST | 5 | ||||
| -rw-r--r-- | databases/py-alembic/distinfo | 10 |
3 files changed, 11 insertions, 8 deletions
diff --git a/databases/py-alembic/Makefile b/databases/py-alembic/Makefile index ee35e09ce34..8828a727b33 100644 --- a/databases/py-alembic/Makefile +++ b/databases/py-alembic/Makefile @@ -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 --git a/databases/py-alembic/PLIST b/databases/py-alembic/PLIST index f1c77c8fe55..f9000f4d0b3 100644 --- a/databases/py-alembic/PLIST +++ b/databases/py-alembic/PLIST @@ -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 diff --git a/databases/py-alembic/distinfo b/databases/py-alembic/distinfo index 9f21c495f42..891dac3c846 100644 --- a/databases/py-alembic/distinfo +++ b/databases/py-alembic/distinfo @@ -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 |
