Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pooch/
Date: Tue, 28 Feb 2023 05:06:53
Message-Id: 1677560803.5b54d5167a805660b505c95084b85eda453fd0c8.mgorny@gentoo
1 commit: 5b54d5167a805660b505c95084b85eda453fd0c8
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 28 04:55:33 2023 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 28 05:06:43 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b54d516
7
8 dev-python/pooch: Bump to 1.7.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pooch/Manifest | 1 +
13 dev-python/pooch/pooch-1.7.0.ebuild | 55 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 56 insertions(+)
15
16 diff --git a/dev-python/pooch/Manifest b/dev-python/pooch/Manifest
17 index ee30b77b2b53..8f1544872239 100644
18 --- a/dev-python/pooch/Manifest
19 +++ b/dev-python/pooch/Manifest
20 @@ -1 +1,2 @@
21 DIST pooch-1.6.0.tar.gz 52318 BLAKE2B c5cdf04a27a5754accee5a4522d5e6a51c4e71b7034cd570c6a2f30bc580ba9c15e0717be792e7cdd020ca745e6813a63681ce966ad61c0ed4aaa8b84829b920 SHA512 e1b6253b8879ef172bd6370139a7807355c7e1c03a1626ac46cb083b1f7d8beb5a8adb08c0828eb34e96a7164211d2dc7da214fd0176eb0606fe4ff47911257c
22 +DIST pooch-1.7.0.tar.gz 57457 BLAKE2B d85fc3cc707bfa639f46bf75b89dd31714f7a4f64a90ff7a6c92b792a8209e66a5fffb62912a336cd481330c37c0037df116d27ea06808bf02f1039e2aac930b SHA512 60126b893a9a1422aad12349143fbe72e485004f79b06da752f51ae374f375efae693304210c8d62b211433d7ce75fab53a50a6f267b1952df83fdccc2de13a7
23
24 diff --git a/dev-python/pooch/pooch-1.7.0.ebuild b/dev-python/pooch/pooch-1.7.0.ebuild
25 new file mode 100644
26 index 000000000000..2cc8a7f0a32f
27 --- /dev/null
28 +++ b/dev-python/pooch/pooch-1.7.0.ebuild
29 @@ -0,0 +1,55 @@
30 +# Copyright 1999-2023 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +PYTHON_COMPAT=( python3_{9..11} )
36 +DISTUTILS_USE_PEP517=setuptools
37 +
38 +inherit distutils-r1 pypi
39 +
40 +DESCRIPTION="Manage your Python library's sample data files"
41 +HOMEPAGE="
42 + https://github.com/fatiando/pooch/
43 + https://pypi.org/project/pooch/
44 +"
45 +
46 +LICENSE="BSD"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
49 +
50 +RDEPEND="
51 + dev-python/appdirs[${PYTHON_USEDEP}]
52 + dev-python/packaging[${PYTHON_USEDEP}]
53 + >=dev-python/platformdirs-2.5.0[${PYTHON_USEDEP}]
54 + dev-python/requests[${PYTHON_USEDEP}]
55 +"
56 +
57 +BDEPEND="
58 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
59 + test? (
60 + dev-python/paramiko[${PYTHON_USEDEP}]
61 + dev-python/pytest-localftpserver[${PYTHON_USEDEP}]
62 + dev-python/tqdm[${PYTHON_USEDEP}]
63 + )
64 +"
65 +
66 +EPYTEST_DESELECT=(
67 + # Needs network
68 + pooch/tests/test_core.py::test_check_availability_invalid_downloader
69 + pooch/tests/test_core.py::test_load_registry_from_doi
70 + pooch/tests/test_core.py::test_load_registry_from_doi_zenodo_with_slash
71 + pooch/tests/test_downloaders.py::test_invalid_doi_repository
72 + pooch/tests/test_downloaders.py::test_doi_url_not_found
73 + pooch/tests/test_downloaders.py::test_figshare_url_file_not_found
74 + pooch/tests/test_downloaders.py::test_doi_downloader
75 +)
76 +
77 +### docs no included in pypi tarball
78 +# distutils_enable_sphinx doc \
79 +# dev-python/sphinx-rtd-theme
80 +distutils_enable_tests pytest
81 +
82 +python_test() {
83 + epytest -k "not network"
84 +}