pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-funcparserlib py-funcparserlib: updated to 1.0.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/56af13effc55
branches:  trunk
changeset: 388788:56af13effc55
user:      adam <adam%pkgsrc.org@localhost>
date:      Sat Nov 26 19:50:46 2022 +0000

description:
py-funcparserlib: updated to 1.0.1

1.0.1

Added support for Python 3.11


1.0.0

The stable 1.0.0 release freezes the API of funcparserlib 0.3.6 which was released on 2013-05-02, with a few bug fixes and small features.

Added

Added support for Python 3.10
Added support for Python 3.9
Added support for Python 3.8
Added -p (the same as skip(p)) with more strict type hints for -p and p1 + p2
Added tok(type[, value]) for more compact grammars, better error messages
Added TokenSpec(type, pattern[, flags]) to simplify the use of make_tokenizer()
Added type hints for the public API
Added the new library homepage with the new Getting Started guide and the new API reference

Changed

Parse exceptions now show expected tokens and grammar rules at the stopped position
Dropped support for Python 3.4, 3.5, 3.6 (end of life)
Dropped support for Python 2.5, 2.6, 3.3 (end of life), modernized code for Python 3 to run without obsolete 2to3
Removed documentation and unit tests from the distribution
Switched from setuptools to Poetry
Switched to poetry-core for lighter PEP 517 builds
Run unit tests on GitHub Actions for all supported Pythons

Fixed

Fixed TypeError in oneplus when applying it parser + parser
Fixed AttributeError when comparing Token objects to None
Fixed doctests in the tutorial
Fixed several cases of wrong expected tokens in error messages

diffstat:

 devel/py-funcparserlib/Makefile               |  13 +++----------
 devel/py-funcparserlib/PLIST                  |  24 +++++-------------------
 devel/py-funcparserlib/distinfo               |   9 ++++-----
 devel/py-funcparserlib/patches/patch-setup.py |  15 ---------------
 4 files changed, 12 insertions(+), 49 deletions(-)

diffs (102 lines):

diff -r 6d64b9d0de3b -r 56af13effc55 devel/py-funcparserlib/Makefile
--- a/devel/py-funcparserlib/Makefile   Sat Nov 26 19:43:06 2022 +0000
+++ b/devel/py-funcparserlib/Makefile   Sat Nov 26 19:50:46 2022 +0000
@@ -1,9 +1,8 @@
-# $NetBSD: Makefile,v 1.9 2022/01/04 20:53:06 wiz Exp $
+# $NetBSD: Makefile,v 1.10 2022/11/26 19:50:46 adam Exp $
 
-DISTNAME=      funcparserlib-0.3.6
+DISTNAME=      funcparserlib-1.0.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   1
-CATEGORIES=    devel
+CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=f/funcparserlib/}
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
@@ -14,10 +13,4 @@
 USE_LANGUAGES= # none
 
 .include "../../lang/python/egg.mk"
-
-.if ${PYPKGPREFIX} != "py27"
-pre-build:
-       cd ${WRKSRC} && 2to3-${PYVERSSUFFIX} -w --no-diffs funcparserlib
-.endif
-
 .include "../../mk/bsd.pkg.mk"
diff -r 6d64b9d0de3b -r 56af13effc55 devel/py-funcparserlib/PLIST
--- a/devel/py-funcparserlib/PLIST      Sat Nov 26 19:43:06 2022 +0000
+++ b/devel/py-funcparserlib/PLIST      Sat Nov 26 19:50:46 2022 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2013/10/12 13:38:38 obache Exp $
+@comment $NetBSD: PLIST,v 1.4 2022/11/26 19:50:46 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -8,28 +8,14 @@
 ${PYSITELIB}/funcparserlib/__init__.pyo
 ${PYSITELIB}/funcparserlib/lexer.py
 ${PYSITELIB}/funcparserlib/lexer.pyc
+${PYSITELIB}/funcparserlib/lexer.pyi
 ${PYSITELIB}/funcparserlib/lexer.pyo
 ${PYSITELIB}/funcparserlib/parser.py
 ${PYSITELIB}/funcparserlib/parser.pyc
+${PYSITELIB}/funcparserlib/parser.pyi
 ${PYSITELIB}/funcparserlib/parser.pyo
-${PYSITELIB}/funcparserlib/tests/__init__.py
-${PYSITELIB}/funcparserlib/tests/__init__.pyc
-${PYSITELIB}/funcparserlib/tests/__init__.pyo
-${PYSITELIB}/funcparserlib/tests/dot.py
-${PYSITELIB}/funcparserlib/tests/dot.pyc
-${PYSITELIB}/funcparserlib/tests/dot.pyo
-${PYSITELIB}/funcparserlib/tests/json.py
-${PYSITELIB}/funcparserlib/tests/json.pyc
-${PYSITELIB}/funcparserlib/tests/json.pyo
-${PYSITELIB}/funcparserlib/tests/test_dot.py
-${PYSITELIB}/funcparserlib/tests/test_dot.pyc
-${PYSITELIB}/funcparserlib/tests/test_dot.pyo
-${PYSITELIB}/funcparserlib/tests/test_json.py
-${PYSITELIB}/funcparserlib/tests/test_json.pyc
-${PYSITELIB}/funcparserlib/tests/test_json.pyo
-${PYSITELIB}/funcparserlib/tests/test_parsing.py
-${PYSITELIB}/funcparserlib/tests/test_parsing.pyc
-${PYSITELIB}/funcparserlib/tests/test_parsing.pyo
+${PYSITELIB}/funcparserlib/py.typed
 ${PYSITELIB}/funcparserlib/util.py
 ${PYSITELIB}/funcparserlib/util.pyc
+${PYSITELIB}/funcparserlib/util.pyi
 ${PYSITELIB}/funcparserlib/util.pyo
diff -r 6d64b9d0de3b -r 56af13effc55 devel/py-funcparserlib/distinfo
--- a/devel/py-funcparserlib/distinfo   Sat Nov 26 19:43:06 2022 +0000
+++ b/devel/py-funcparserlib/distinfo   Sat Nov 26 19:50:46 2022 +0000
@@ -1,6 +1,5 @@
-$NetBSD: distinfo,v 1.6 2021/12/16 11:16:14 wiz Exp $
+$NetBSD: distinfo,v 1.7 2022/11/26 19:50:46 adam Exp $
 
-BLAKE2s (funcparserlib-0.3.6.tar.gz) = 72faccec12b02e2e33333df5670de99768b5eecf94d46c13fb7d97aa11105d4b
-SHA512 (funcparserlib-0.3.6.tar.gz) = efa52f788aa902b099660cb8bc60a025085a8c383e52bd0824a0c3ae28a6c13804a0659de0c80b4dcd839ee70491805d4eecda6cea221e35c3750ec569098c24
-Size (funcparserlib-0.3.6.tar.gz) = 30401 bytes
-SHA1 (patch-setup.py) = 60cddcb0ff8e20036f26865f4134bfdb0058f436
+BLAKE2s (funcparserlib-1.0.1.tar.gz) = abf7ceb7431926509a7a5c6688e19aee9f823f26988a27914f9570f6575caff0
+SHA512 (funcparserlib-1.0.1.tar.gz) = 721673b7d79c19cd3cbad8387297644790581057d077139fe6efbaa14bc5ad28dc9074b34728bdd9ea1c00c56c402ce329d9f53728e59030408fd87059339f79
+Size (funcparserlib-1.0.1.tar.gz) = 17238 bytes
diff -r 6d64b9d0de3b -r 56af13effc55 devel/py-funcparserlib/patches/patch-setup.py
--- a/devel/py-funcparserlib/patches/patch-setup.py     Sat Nov 26 19:43:06 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-setup.py,v 1.1 2021/12/16 11:16:14 wiz Exp $
-
-Fix build with latest setuptools.
-
---- setup.py.orig      2013-05-02 15:09:16.000000000 +0000
-+++ setup.py
-@@ -4,8 +4,6 @@ from setuptools import setup
- import sys
- 
- extra = {}
--if sys.version_info >= (3,):
--    extra['use_2to3'] = True
- 
- 
- setup(



Home | Main Index | Thread Index | Old Index