pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/bpython bpython: updated to 0.22



details:   https://anonhg.NetBSD.org/pkgsrc/rev/194b562e2d19
branches:  trunk
changeset: 769150:194b562e2d19
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon Nov 08 16:47:30 2021 +0000

description:
bpython: updated to 0.22

0.22
----

General information:

* The #bpython channel has moved to OFTC.
* Type annotations have been added to the bpython code base.
* Declarative build configuration is used as much as possible.

New features:

* Allow auto-completion to be disabled
* Respect locals when using bpython.embed
* Use pyperclip for better clipboard handling

Fixes:

* Fix writing of b"" on fake stdout
* Iterate over all completers until a successful one is found
* Handle errors in theme configuration without crashing
* Read PYTHONSTARTUP with utf8 as encoding
* Use default sys.ps1 and sys.ps2 if user specified ones are not usable
* Do not crash when encountering unreadable files while processing modules for import completion
* Fix sys.stdin.readline
* Fix tab completion for dict keys
* Replicate python behavior when running with -i and a non-existing file
* Fix handling of __signature__ for completion.
  Thanks to gpotter2

Changes to dependencies:

* pyperclip is a new optional dependency for clipboard support
* backports.cached-property is now required for Python < 3.8
* dataclasses is now required for Python < 3.7

Support for Python 3.10 has been added.

diffstat:

 devel/bpython/Makefile |  13 +++++++++++--
 devel/bpython/PLIST    |   7 ++-----
 devel/bpython/distinfo |   8 ++++----
 3 files changed, 17 insertions(+), 11 deletions(-)

diffs (76 lines):

diff -r faacf3fe114c -r 194b562e2d19 devel/bpython/Makefile
--- a/devel/bpython/Makefile    Mon Nov 08 16:46:30 2021 +0000
+++ b/devel/bpython/Makefile    Mon Nov 08 16:47:30 2021 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.28 2021/03/20 15:14:48 adam Exp $
+# $NetBSD: Makefile,v 1.29 2021/11/08 16:47:30 adam Exp $
 
-DISTNAME=      bpython-0.21
+DISTNAME=      bpython-0.22
 CATEGORIES=    devel python
 MASTER_SITES=  https://bpython-interpreter.org/releases/
 
@@ -13,6 +13,7 @@
 BUILD_DEPENDS+=        ${PYPKGPREFIX}-sphinx-[0-9]*:../../devel/py-requests
 DEPENDS+=      ${PYPKGPREFIX}-curses>=0nb4:../../devel/py-curses
 DEPENDS+=      ${PYPKGPREFIX}-curtsies>=0.3.5:../../devel/py-curtsies
+DEPENDS+=      ${PYPKGPREFIX}-cwcwidth-[0-9]*:../../devel/py-cwcwidth
 DEPENDS+=      ${PYPKGPREFIX}-greenlet-[0-9]*:../../devel/py-greenlet
 DEPENDS+=      ${PYPKGPREFIX}-pygments-[0-9]*:../../textproc/py-pygments
 DEPENDS+=      ${PYPKGPREFIX}-readline>=0nb2:../../devel/py-readline
@@ -24,6 +25,14 @@
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 
+.include "../../lang/python/pyversion.mk"
+.if ${_PYTHON_VERSION} < 37
+DEPENDS+=      ${PYPKGPREFIX}-dataclasses-[0-9]*:../../devel/py-dataclasses
+.endif
+.if ${_PYTHON_VERSION} < 38
+DEPENDS+=      ${PYPKGPREFIX}-backports.cached-property-[0-9]*:../../devel/py-backports.cached-property
+.endif
+
 .include "../../lang/python/egg.mk"
 .include "../../sysutils/desktop-file-utils/desktopdb.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r faacf3fe114c -r 194b562e2d19 devel/bpython/PLIST
--- a/devel/bpython/PLIST       Mon Nov 08 16:46:30 2021 +0000
+++ b/devel/bpython/PLIST       Mon Nov 08 16:47:30 2021 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.5 2021/03/20 15:14:48 adam Exp $
+@comment $NetBSD: PLIST,v 1.6 2021/11/08 16:47:30 adam Exp $
 bin/bpdb
 bin/bpython
 bin/bpython-curses
@@ -39,9 +39,6 @@
 ${PYSITELIB}/bpython/cli.py
 ${PYSITELIB}/bpython/cli.pyc
 ${PYSITELIB}/bpython/cli.pyo
-${PYSITELIB}/bpython/clipboard.py
-${PYSITELIB}/bpython/clipboard.pyc
-${PYSITELIB}/bpython/clipboard.pyo
 ${PYSITELIB}/bpython/config.py
 ${PYSITELIB}/bpython/config.pyc
 ${PYSITELIB}/bpython/config.pyo
@@ -223,6 +220,6 @@
 ${PYSITELIB}/bpython/urwid.pyo
 man/man1/bpython.1
 man/man5/bpython-config.5
-share/appinfo/org.bpython-interpreter.bpython.appdata.xml
 share/applications/org.bpython-interpreter.bpython.desktop
+share/metainfo/org.bpython-interpreter.bpython.metainfo.xml
 share/pixmaps/bpython.png
diff -r faacf3fe114c -r 194b562e2d19 devel/bpython/distinfo
--- a/devel/bpython/distinfo    Mon Nov 08 16:46:30 2021 +0000
+++ b/devel/bpython/distinfo    Mon Nov 08 16:47:30 2021 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.8 2021/10/26 10:14:20 nia Exp $
+$NetBSD: distinfo,v 1.9 2021/11/08 16:47:30 adam Exp $
 
-BLAKE2s (bpython-0.21.tar.gz) = f70dca09c9871131056d4a6a758717f2ecb7af16ffea6fb48191a5d129ca9ac9
-SHA512 (bpython-0.21.tar.gz) = a0eea1b9c2329ce5665456e99703ef476faab38f880eb8a330a6536970888cfdaada9f0e377d3c1acd8b6c79eb0c562ada43e82bac9df4cce5878594c3399ddf
-Size (bpython-0.21.tar.gz) = 208206 bytes
+BLAKE2s (bpython-0.22.tar.gz) = bbc0faca4993791af86435d57d57a53e71ddba82686de680ffc6d0338417ea62
+SHA512 (bpython-0.22.tar.gz) = 14f275c5ed9de08223020a6c70b466507236e84ee9c3dd60d51bb8b1908e943071f54acc68c611fbd64f28f283306a7ea2b6bde0b475fda528cb5e0cf9872b28
+Size (bpython-0.22.tar.gz) = 217214 bytes
 SHA1 (patch-setup.py) = 9caba0004771928676c7d0d4f7c0594f8ba6934a



Home | Main Index | Thread Index | Old Index