py-astor: updated to 0.6

0.6:

New features
* New astor.rtrip command-line tool to test round-tripping of Python source to AST and back to source. (Contributed by Patrick Maupin.)
* New pretty printer outputs much better looking code:
  . Remove parentheses where not necessary
  . Use triple-quoted strings where it makes sense
  . Add placeholder for function to do nice line wrapping on output
* Additional Python 3.5 support: - Additional unpacking generalizations (PEP 448)
  .  Async and await (PEP 492)
* Added Python 3.6 feature support:
  . f-strings (PEP 498)
  . async comprehensions (PEP 530)
  . variable annotations (PEP 526)
* Code cleanup, including renaming for PEP8 and deprecation of old names. See :ref:`deprecations` for more information.

Bug fixes
* Don't put trailing comma-spaces in dictionaries. astor will now create {'three': 3} instead of {'three': 3, }.
* Fixed several bugs in code generation.
This commit is contained in:
adam 2017-10-31 12:51:23 +00:00
parent 7fd46dde04
commit 36b8c1980f
3 changed files with 33 additions and 18 deletions

View file

@ -1,12 +1,12 @@
# $NetBSD: Makefile,v 1.6 2017/09/16 19:26:47 wiz Exp $
# $NetBSD: Makefile,v 1.7 2017/10/31 12:51:23 adam Exp $
DISTNAME= astor-0.5
DISTNAME= astor-0.6
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=a/astor/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/pmaupin/astor
HOMEPAGE= https://github.com/berkerpeksag/astor
COMMENT= Read/rewrite/write Python ASTs
LICENSE= 2-clause-bsd

View file

@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.1 2014/05/18 03:22:03 rodent Exp $
@comment $NetBSD: PLIST,v 1.2 2017/10/31 12:51:23 adam Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@ -6,15 +6,30 @@ ${PYSITELIB}/${EGG_INFODIR}/top_level.txt
${PYSITELIB}/astor/__init__.py
${PYSITELIB}/astor/__init__.pyc
${PYSITELIB}/astor/__init__.pyo
${PYSITELIB}/astor/codegen.py
${PYSITELIB}/astor/codegen.pyc
${PYSITELIB}/astor/codegen.pyo
${PYSITELIB}/astor/misc.py
${PYSITELIB}/astor/misc.pyc
${PYSITELIB}/astor/misc.pyo
${PYSITELIB}/astor/treewalk.py
${PYSITELIB}/astor/treewalk.pyc
${PYSITELIB}/astor/treewalk.pyo
${PYSITELIB}/astor/code_gen.py
${PYSITELIB}/astor/code_gen.pyc
${PYSITELIB}/astor/code_gen.pyo
${PYSITELIB}/astor/file_util.py
${PYSITELIB}/astor/file_util.pyc
${PYSITELIB}/astor/file_util.pyo
${PYSITELIB}/astor/node_util.py
${PYSITELIB}/astor/node_util.pyc
${PYSITELIB}/astor/node_util.pyo
${PYSITELIB}/astor/op_util.py
${PYSITELIB}/astor/op_util.pyc
${PYSITELIB}/astor/op_util.pyo
${PYSITELIB}/astor/rtrip.py
${PYSITELIB}/astor/rtrip.pyc
${PYSITELIB}/astor/rtrip.pyo
${PYSITELIB}/astor/source_repr.py
${PYSITELIB}/astor/source_repr.pyc
${PYSITELIB}/astor/source_repr.pyo
${PYSITELIB}/astor/string_repr.py
${PYSITELIB}/astor/string_repr.pyc
${PYSITELIB}/astor/string_repr.pyo
${PYSITELIB}/astor/tree_walk.py
${PYSITELIB}/astor/tree_walk.pyc
${PYSITELIB}/astor/tree_walk.pyo
${PYSITELIB}/setuputils.py
${PYSITELIB}/setuputils.pyc
${PYSITELIB}/setuputils.pyo

View file

@ -1,6 +1,6 @@
$NetBSD: distinfo,v 1.5 2015/11/03 03:29:04 agc Exp $
$NetBSD: distinfo,v 1.6 2017/10/31 12:51:23 adam Exp $
SHA1 (astor-0.5.tar.gz) = ec9b78ac901a857e62574fa4b262dc52b0ecce87
RMD160 (astor-0.5.tar.gz) = d204d3ddc43d3a4388382a885742fc8a504416ab
SHA512 (astor-0.5.tar.gz) = 7c940371a6c3ddbc4a6691edb6ee17eef61436912bb873c5c0cba4f3865c9d4f8e077674b14ccc7e319b749898782aaf87e085eedd9ba7f8638130deb67f549b
Size (astor-0.5.tar.gz) = 10999 bytes
SHA1 (astor-0.6.tar.gz) = 40f3b2e18d00975f5a36f023c19f6221b5d43e42
RMD160 (astor-0.6.tar.gz) = 9ee21e2aa222be09344515beee7bac0a152c0293
SHA512 (astor-0.6.tar.gz) = 4f9598229f8a77901573fa1841716cc810ec8e108b155d8c7c50ab477d794f8ecd1784df66a1272a2739cc968d8eb6632f62b4d6ef067682db05233f127be409
Size (astor-0.6.tar.gz) = 28684 bytes