summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2020-03-02 10:41:22 +0000
committeradam <adam@pkgsrc.org>2020-03-02 10:41:22 +0000
commitb6d1275d0ebd6541e110281399d42636a67f8339 (patch)
tree7ad89bd129525d271d69b60a8c2d6838af861be7
parenta211cb8e2f2cc8442a06ac1864d5675156228668 (diff)
downloadpkgsrc-b6d1275d0ebd6541e110281399d42636a67f8339.tar.gz
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).
-rw-r--r--devel/py-importlib-resources/Makefile10
-rw-r--r--devel/py-importlib-resources/PLIST5
-rw-r--r--devel/py-importlib-resources/distinfo10
3 files changed, 16 insertions, 9 deletions
diff --git a/devel/py-importlib-resources/Makefile b/devel/py-importlib-resources/Makefile
index 0e7da09b41f..79e0b60c87d 100644
--- a/devel/py-importlib-resources/Makefile
+++ b/devel/py-importlib-resources/Makefile
@@ -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
-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 @@ BUILD_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
.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 --git a/devel/py-importlib-resources/PLIST b/devel/py-importlib-resources/PLIST
index 55009dc2f4a..df525896ed8 100644
--- a/devel/py-importlib-resources/PLIST
+++ b/devel/py-importlib-resources/PLIST
@@ -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__.py
${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 --git a/devel/py-importlib-resources/distinfo b/devel/py-importlib-resources/distinfo
index 09e7a183526..77427423796 100644
--- a/devel/py-importlib-resources/distinfo
+++ b/devel/py-importlib-resources/distinfo
@@ -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