pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/py-importlib-resources py-importlib-resources: u...
details: https://anonhg.NetBSD.org/pkgsrc/rev/2cc497e79eb9
branches: trunk
changeset: 423990:2cc497e79eb9
user: adam <adam%pkgsrc.org@localhost>
date: Mon Mar 02 10:41:22 2020 +0000
description:
py-importlib-resources: updated to 1.1.0
v1.1.0
Add support for retrieving resources from subdirectories of packages through the new files() function, which returns a Traversable object with joinpath and read_* interfaces matching those of
pathlib.Path objects. This new function supersedes all of the previous functionality as it provides a more general-purpose access to a package?s resources.
With this function, subdirectories are supported.
The documentation has been updated to reflect that this function is now the preferred interface for loading package resources. It does not, however, support resources from arbitrary loaders. It
currently only supports resources from file system path and zipfile packages (a consequence of the ResourceReader interface only operating on Python packages).
diffstat:
devel/py-importlib-resources/Makefile | 10 +++++++---
devel/py-importlib-resources/PLIST | 5 ++++-
devel/py-importlib-resources/distinfo | 10 +++++-----
3 files changed, 16 insertions(+), 9 deletions(-)
diffs (64 lines):
diff -r 254afb960dba -r 2cc497e79eb9 devel/py-importlib-resources/Makefile
--- a/devel/py-importlib-resources/Makefile Mon Mar 02 10:34:12 2020 +0000
+++ b/devel/py-importlib-resources/Makefile Mon Mar 02 10:41:22 2020 +0000
@@ -1,12 +1,12 @@
-# $NetBSD: Makefile,v 1.1 2020/02/10 18:28:25 adam Exp $
+# $NetBSD: Makefile,v 1.2 2020/03/02 10:41:22 adam Exp $
-DISTNAME= importlib_resources-1.0.2
+DISTNAME= importlib_resources-1.1.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/_/-/}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=i/importlib_resources/}
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE= http://importlib-resources.readthedocs.io/
+HOMEPAGE= https://importlib-resources.readthedocs.io/
COMMENT= Read resources from Python packages
LICENSE= apache-2.0
@@ -15,8 +15,12 @@
.include "../../lang/python/pyversion.mk"
.if ${_PYTHON_VERSION} == 27
DEPENDS+= ${PYPKGPREFIX}-pathlib2-[0-9]*:../../devel/py-pathlib2
+DEPENDS+= ${PYPKGPREFIX}-singledispatch-[0-9]*:../../devel/py-singledispatch
DEPENDS+= ${PYPKGPREFIX}-typing-[0-9]*:../../devel/py-typing
.endif
+.if ${_PYTHON_VERSION} < 38
+DEPENDS+= ${PYPKGPREFIX}-zipp>=0.4:../../archivers/py-zipp
+.endif
USE_LANGUAGES= # none
diff -r 254afb960dba -r 2cc497e79eb9 devel/py-importlib-resources/PLIST
--- a/devel/py-importlib-resources/PLIST Mon Mar 02 10:34:12 2020 +0000
+++ b/devel/py-importlib-resources/PLIST Mon Mar 02 10:41:22 2020 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2020/02/10 18:28:25 adam Exp $
+@comment $NetBSD: PLIST,v 1.2 2020/03/02 10:41:22 adam Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -77,4 +77,7 @@
${PYSITELIB}/importlib_resources/tests/zipdata02/__init__.pyc
${PYSITELIB}/importlib_resources/tests/zipdata02/__init__.pyo
${PYSITELIB}/importlib_resources/tests/zipdata02/ziptestdata.zip
+${PYSITELIB}/importlib_resources/trees.py
+${PYSITELIB}/importlib_resources/trees.pyc
+${PYSITELIB}/importlib_resources/trees.pyo
${PYSITELIB}/importlib_resources/version.txt
diff -r 254afb960dba -r 2cc497e79eb9 devel/py-importlib-resources/distinfo
--- a/devel/py-importlib-resources/distinfo Mon Mar 02 10:34:12 2020 +0000
+++ b/devel/py-importlib-resources/distinfo Mon Mar 02 10:41:22 2020 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.1 2020/02/10 18:28:25 adam Exp $
+$NetBSD: distinfo,v 1.2 2020/03/02 10:41:22 adam Exp $
-SHA1 (importlib_resources-1.0.2.tar.gz) = 10be54cfde761c5cb6762739c8347ec59d2302ac
-RMD160 (importlib_resources-1.0.2.tar.gz) = ccbed771125ab62eda228842bc87339dd9aa21a8
-SHA512 (importlib_resources-1.0.2.tar.gz) = 50bfc5130a2c9c9354efef1cd7132e805ed0f13467ba67172f83e11d907212bef3957aeef51fd904b73996c8280008d99c918637956a470448dfd67ef4807f82
-Size (importlib_resources-1.0.2.tar.gz) = 23602 bytes
+SHA1 (importlib_resources-1.1.0.tar.gz) = 47be2ce535205720aebae1be67129b9dbfc45eea
+RMD160 (importlib_resources-1.1.0.tar.gz) = 289d2ed661922a17f28107399506c1c83c08cd32
+SHA512 (importlib_resources-1.1.0.tar.gz) = c602086c8ab19ebb65fcf713ea5e9e07f651332a76218a059c03089524656ba77ab02e70ed83ce0f8c3ab4ad38307e2b35c22f1689cff5426065424aede5af97
+Size (importlib_resources-1.1.0.tar.gz) = 21823 bytes
Home |
Main Index |
Thread Index |
Old Index