pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-pooch devel/py-pooch: import py-pooch-1.5.2



details:   https://anonhg.NetBSD.org/pkgsrc/rev/52a083a01668
branches:  trunk
changeset: 371706:52a083a01668
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed Jan 12 21:35:39 2022 +0000

description:
devel/py-pooch: import py-pooch-1.5.2

Does your Python package include sample datasets? Are you shipping
them with the code? Are they getting too big?

Pooch is here to help! It will manage a data registry by downloading
your data files from a server only when needed and storing them
locally in a data cache (a folder on your computer).

Here are Pooch's main features:

* Pure Python and minimal dependencies.
* Download a file only if necessary (it's not in the data cache
  or needs to be updated).
* Verify download integrity through SHA256 hashes (also used to
  check if a file needs to be updated).
* Designed to be extended: plug in custom download (FTP, scp,
  etc) and post-processing (unzip, decompress, rename) functions.
* Includes utilities to unzip/decompress the data upon download
  to save loading time.
* Can handle basic HTTP authentication (for servers that require
  a login) and printing download progress bars.
* Easily set up an environment variable to overwrite the data
  cache location.

diffstat:

 devel/py-pooch/DESCR    |  22 +++++++++++++++
 devel/py-pooch/Makefile |  25 +++++++++++++++++
 devel/py-pooch/PLIST    |  69 +++++++++++++++++++++++++++++++++++++++++++++++++
 devel/py-pooch/distinfo |   5 +++
 4 files changed, 121 insertions(+), 0 deletions(-)

diffs (137 lines):

diff -r ce51c94a45fb -r 52a083a01668 devel/py-pooch/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-pooch/DESCR      Wed Jan 12 21:35:39 2022 +0000
@@ -0,0 +1,22 @@
+Does your Python package include sample datasets? Are you shipping
+them with the code? Are they getting too big?
+
+Pooch is here to help! It will manage a data registry by downloading
+your data files from a server only when needed and storing them
+locally in a data cache (a folder on your computer).
+
+Here are Pooch's main features:
+
+* Pure Python and minimal dependencies.
+* Download a file only if necessary (it's not in the data cache
+  or needs to be updated).
+* Verify download integrity through SHA256 hashes (also used to
+  check if a file needs to be updated).
+* Designed to be extended: plug in custom download (FTP, scp,
+  etc) and post-processing (unzip, decompress, rename) functions.
+* Includes utilities to unzip/decompress the data upon download
+  to save loading time.
+* Can handle basic HTTP authentication (for servers that require
+  a login) and printing download progress bars.
+* Easily set up an environment variable to overwrite the data
+  cache location.
diff -r ce51c94a45fb -r 52a083a01668 devel/py-pooch/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-pooch/Makefile   Wed Jan 12 21:35:39 2022 +0000
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1 2022/01/12 21:35:39 wiz Exp $
+
+DISTNAME=      pooch-1.5.2
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=    devel python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pooch/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/fatiando/pooch
+COMMENT=       Manages Python library's sample data files
+LICENSE=       modified-bsd
+
+DEPENDS+=      ${PYPKGPREFIX}-appdirs-[0-9]*:../../devel/py-appdirs
+DEPENDS+=      ${PYPKGPREFIX}-packaging-[0-9]*:../../devel/py-packaging
+DEPENDS+=      ${PYPKGPREFIX}-requests-[0-9]*:../../devel/py-requests
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+
+PYTHON_VERSIONS_INCOMPATIBLE=  27
+
+do-test:
+       cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r ce51c94a45fb -r 52a083a01668 devel/py-pooch/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-pooch/PLIST      Wed Jan 12 21:35:39 2022 +0000
@@ -0,0 +1,69 @@
+@comment $NetBSD: PLIST,v 1.1 2022/01/12 21:35:39 wiz Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/pooch/__init__.py
+${PYSITELIB}/pooch/__init__.pyc
+${PYSITELIB}/pooch/__init__.pyo
+${PYSITELIB}/pooch/_version.py
+${PYSITELIB}/pooch/_version.pyc
+${PYSITELIB}/pooch/_version.pyo
+${PYSITELIB}/pooch/core.py
+${PYSITELIB}/pooch/core.pyc
+${PYSITELIB}/pooch/core.pyo
+${PYSITELIB}/pooch/downloaders.py
+${PYSITELIB}/pooch/downloaders.pyc
+${PYSITELIB}/pooch/downloaders.pyo
+${PYSITELIB}/pooch/hashes.py
+${PYSITELIB}/pooch/hashes.pyc
+${PYSITELIB}/pooch/hashes.pyo
+${PYSITELIB}/pooch/processors.py
+${PYSITELIB}/pooch/processors.pyc
+${PYSITELIB}/pooch/processors.pyo
+${PYSITELIB}/pooch/tests/__init__.py
+${PYSITELIB}/pooch/tests/__init__.pyc
+${PYSITELIB}/pooch/tests/__init__.pyo
+${PYSITELIB}/pooch/tests/data/large-data.txt
+${PYSITELIB}/pooch/tests/data/registry-custom-url.txt
+${PYSITELIB}/pooch/tests/data/registry-invalid.txt
+${PYSITELIB}/pooch/tests/data/registry.txt
+${PYSITELIB}/pooch/tests/data/registry_comments.txt
+${PYSITELIB}/pooch/tests/data/store.tar.gz
+${PYSITELIB}/pooch/tests/data/store.zip
+${PYSITELIB}/pooch/tests/data/store/subdir/tiny-data.txt
+${PYSITELIB}/pooch/tests/data/store/tiny-data.txt
+${PYSITELIB}/pooch/tests/data/tiny-data.tar.gz
+${PYSITELIB}/pooch/tests/data/tiny-data.txt
+${PYSITELIB}/pooch/tests/data/tiny-data.txt.bz2
+${PYSITELIB}/pooch/tests/data/tiny-data.txt.gz
+${PYSITELIB}/pooch/tests/data/tiny-data.txt.xz
+${PYSITELIB}/pooch/tests/data/tiny-data.zip
+${PYSITELIB}/pooch/tests/test_core.py
+${PYSITELIB}/pooch/tests/test_core.pyc
+${PYSITELIB}/pooch/tests/test_core.pyo
+${PYSITELIB}/pooch/tests/test_downloaders.py
+${PYSITELIB}/pooch/tests/test_downloaders.pyc
+${PYSITELIB}/pooch/tests/test_downloaders.pyo
+${PYSITELIB}/pooch/tests/test_hashes.py
+${PYSITELIB}/pooch/tests/test_hashes.pyc
+${PYSITELIB}/pooch/tests/test_hashes.pyo
+${PYSITELIB}/pooch/tests/test_integration.py
+${PYSITELIB}/pooch/tests/test_integration.pyc
+${PYSITELIB}/pooch/tests/test_integration.pyo
+${PYSITELIB}/pooch/tests/test_processors.py
+${PYSITELIB}/pooch/tests/test_processors.pyc
+${PYSITELIB}/pooch/tests/test_processors.pyo
+${PYSITELIB}/pooch/tests/test_utils.py
+${PYSITELIB}/pooch/tests/test_utils.pyc
+${PYSITELIB}/pooch/tests/test_utils.pyo
+${PYSITELIB}/pooch/tests/test_version.py
+${PYSITELIB}/pooch/tests/test_version.pyc
+${PYSITELIB}/pooch/tests/test_version.pyo
+${PYSITELIB}/pooch/tests/utils.py
+${PYSITELIB}/pooch/tests/utils.pyc
+${PYSITELIB}/pooch/tests/utils.pyo
+${PYSITELIB}/pooch/utils.py
+${PYSITELIB}/pooch/utils.pyc
+${PYSITELIB}/pooch/utils.pyo
diff -r ce51c94a45fb -r 52a083a01668 devel/py-pooch/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-pooch/distinfo   Wed Jan 12 21:35:39 2022 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2022/01/12 21:35:39 wiz Exp $
+
+BLAKE2s (pooch-1.5.2.tar.gz) = 1a22ef2970a681e73c8b6f775e7f534a6166ec1a1ff8624dd05272bc73a72657
+SHA512 (pooch-1.5.2.tar.gz) = acb1a48e94a97f79503125f0cf1312d715719ec32817771d2e19d2bd89b2cfd34b50221d67d1854cd93818140d8536f6f5b3db1ae0bbb185fffa2cf9886f98da
+Size (pooch-1.5.2.tar.gz) = 61167 bytes



Home | Main Index | Thread Index | Old Index