pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc/py-tomli py-tomli: updated to 2.0.0
details: https://anonhg.NetBSD.org/pkgsrc/rev/2920ddcaed46
branches: trunk
changeset: 371235:2920ddcaed46
user: adam <adam%pkgsrc.org@localhost>
date: Fri Jan 07 16:33:21 2022 +0000
description:
py-tomli: updated to 2.0.0
2.0.0
Removed
Python 3.6 support
Support for text file objects as load input. Use binary file objects instead.
First argument of load and loads can no longer be passed by keyword.
Fixed
Allow lower case "t" and "z" in datetimes
Improved
Raise an error when dotted keys define values outside the "current table". Technically speaking TOML v1.0.0 does allow such assignments but that isn't intended by specification writers, and will
change in a future specification version (see the pull request).
diffstat:
textproc/py-tomli/Makefile | 18 +++++-------------
textproc/py-tomli/distinfo | 8 ++++----
textproc/py-tomli/files/setup.py | 2 --
3 files changed, 9 insertions(+), 19 deletions(-)
diffs (57 lines):
diff -r 958dfe238712 -r 2920ddcaed46 textproc/py-tomli/Makefile
--- a/textproc/py-tomli/Makefile Fri Jan 07 16:25:10 2022 +0000
+++ b/textproc/py-tomli/Makefile Fri Jan 07 16:33:21 2022 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2022/01/04 20:55:08 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2022/01/07 16:33:21 adam Exp $
-DISTNAME= tomli-1.2.2
+DISTNAME= tomli-2.0.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION= 1
CATEGORIES= textproc python
MASTER_SITES= ${MASTER_SITE_PYPI:=t/tomli/}
@@ -11,20 +10,13 @@
COMMENT= Lil' TOML parser
LICENSE= mit
-# it is possible to install this using flit_core, see
+# It is possible to install this using flit_core, see
# https://github.com/takluyver/flit/pull/441/files
# for details. For now we keep using setuptools.
-SUBST_CLASSES+= version
-SUBST_FILES.version+= setup.py
-SUBST_VARS.version+= PKGVERSION_NOREV
-SUBST_STAGE.version= pre-configure
-SUBST_MESSAGE.version= Setting version.
+PYTHON_VERSIONS_INCOMPATIBLE= 27
-post-extract:
- ${CP} ${FILESDIR}/setup.py ${WRKSRC}
-
-PYTHON_VERSIONS_INCOMPATIBLE= 27
+PYSETUP= -c 'from setuptools import setup; setup(name="tomli", version="${PKGVERSION_NOREV}", packages=["tomli"], package_data={"": ["*"]})'
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 958dfe238712 -r 2920ddcaed46 textproc/py-tomli/distinfo
--- a/textproc/py-tomli/distinfo Fri Jan 07 16:25:10 2022 +0000
+++ b/textproc/py-tomli/distinfo Fri Jan 07 16:33:21 2022 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.1 2021/11/25 21:24:09 wiz Exp $
+$NetBSD: distinfo,v 1.2 2022/01/07 16:33:21 adam Exp $
-BLAKE2s (tomli-1.2.2.tar.gz) = eb4dab01e76aa84dc45cbe58c99f6a0316266f1f71f606cf10f606bb25b27d42
-SHA512 (tomli-1.2.2.tar.gz) = 54de8835aaf35d66e99ddad2a05e784b6b6113ee8acde9d3090f38e01b6b2c8960289460038060230c0fdff5dbfbf4aa0f2462040db60e4d19af9cbb1e3feccd
-Size (tomli-1.2.2.tar.gz) = 15091 bytes
+BLAKE2s (tomli-2.0.0.tar.gz) = b8105f0a62cc43314e07a07e04e64dea5ef1f6e6066a3ec902415b1e922ee8ae
+SHA512 (tomli-2.0.0.tar.gz) = f10596ac3daa6dbffe1592eec7d6f85cf2e21b9eb4c570cb398b2729a767fc54eb42a8ed0f5dd75b0bf4d35b91da6df7080f90930b1bba44506240d39a5e5c1d
+Size (tomli-2.0.0.tar.gz) = 15037 bytes
diff -r 958dfe238712 -r 2920ddcaed46 textproc/py-tomli/files/setup.py
--- a/textproc/py-tomli/files/setup.py Fri Jan 07 16:25:10 2022 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-from setuptools import setup
-setup(name="tomli", version="@PKGVERSION_NOREV@", packages=["tomli"], package_data={"": ["*"]})
Home |
Main Index |
Thread Index |
Old Index