pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/py-importlib-resources
Module Name: pkgsrc
Committed By: adam
Date: Mon Mar 2 10:41:22 UTC 2020
Modified Files:
pkgsrc/devel/py-importlib-resources: Makefile PLIST distinfo
Log Message:
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).
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/py-importlib-resources/Makefile \
pkgsrc/devel/py-importlib-resources/PLIST \
pkgsrc/devel/py-importlib-resources/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/py-importlib-resources/Makefile
diff -u pkgsrc/devel/py-importlib-resources/Makefile:1.1 pkgsrc/devel/py-importlib-resources/Makefile:1.2
--- pkgsrc/devel/py-importlib-resources/Makefile:1.1 Mon Feb 10 18:28:25 2020
+++ pkgsrc/devel/py-importlib-resources/Makefile Mon Mar 2 10:41:22 2020
@@ -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 @@ BUILD_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-
.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
Index: pkgsrc/devel/py-importlib-resources/PLIST
diff -u pkgsrc/devel/py-importlib-resources/PLIST:1.1 pkgsrc/devel/py-importlib-resources/PLIST:1.2
--- pkgsrc/devel/py-importlib-resources/PLIST:1.1 Mon Feb 10 18:28:25 2020
+++ pkgsrc/devel/py-importlib-resources/PLIST Mon Mar 2 10:41:22 2020
@@ -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/z
${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
Index: pkgsrc/devel/py-importlib-resources/distinfo
diff -u pkgsrc/devel/py-importlib-resources/distinfo:1.1 pkgsrc/devel/py-importlib-resources/distinfo:1.2
--- pkgsrc/devel/py-importlib-resources/distinfo:1.1 Mon Feb 10 18:28:25 2020
+++ pkgsrc/devel/py-importlib-resources/distinfo Mon Mar 2 10:41:22 2020
@@ -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