blob: 2d1934a8325851a9c55b923e7ce13a1fc2cedbae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Copyright 2022-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYPI_VERIFY_REPO=https://github.com/notatallshaw/nab
DISTUTILS_USE_PEP517=hatchling
PYTHON_COMPAT=( python3_{13..14} )
inherit distutils-r1 pypi
DESCRIPTION="Pypi Simple-API client and on-disk cache for nab"
HOMEPAGE="
https://github.com/notatallshaw/nab/
https://pypi.org/project/nab-index/
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
dev-python/nab-provider[${PYTHON_USEDEP}]
"
BDEPEND="
dev-python/hatch-vcs[${PYTHON_USEDEP}]
test? (
dev-python/nab-markersets[${PYTHON_USEDEP}]
)
"
EPYTEST_PLUGINS=( pytest truststore )
distutils_enable_tests pytest
python_test() {
# skip tests that expect monorepo
local EPYTEST_DESELECT=(
tests/test_index_parsed_cache.py::TestReadPathRebuild::test_over_nested_blob_warns_and_reparses
tests/test_parsed_listing_codec.py::test_over_nested_blob_is_miss
tests/test_parsed_listing_codec.py::test_over_nested_blob_names_its_depth
tests/test_read_fresh_parsed_listing.py::TestReadFreshParsedListing::test_over_nested_policy_returns_none
tests/test_read_fresh_parsed_listing.py::TestReadFreshParsedListing::test_over_nested_blob_returns_none
)
epytest
}
|