diff --git a/dev-python/nab-index/Manifest b/dev-python/nab-index/Manifest new file mode 100644 index 0000000000..8a7b3079ae --- /dev/null +++ b/dev-python/nab-index/Manifest @@ -0,0 +1,2 @@ +DIST nab_index-0.0.22.tar.gz 110621 BLAKE2B 0035db4909a8a3492192463b45a98dd95c1d41e30e9d76f3ceb84ad31d003577ab91a86e2bee73ef04e0f71244cf2b9cf154a0c5b37126b3837539214729ddd7 SHA512 0df1c2a9447247eafffc1dd07200099b24a86ffc1d41def6136e38e7b2715e21b466be4d3df70daa8dcfdb568f0c5247be6404b8f659b56d36aa2755b16b56bc +DIST nab_index-0.0.22.tar.gz.provenance 9988 BLAKE2B f458658a014574064ae6d357a57a2035897586266a89ee9ea40259e2215dbf2087db94daee78cf591e87122132cd937a870ea3096eba0444bcbb1ce5a9a87809 SHA512 4a6a04b85cfec89116e8aa265814892329653ca9d9e379f0d8ca9dca179fa07371226d6b5fbf7b98ea69e7ab30a4715b9942a71973dd9eb319cb8145b0f11dca diff --git a/dev-python/nab-index/metadata.xml b/dev-python/nab-index/metadata.xml new file mode 100644 index 0000000000..9f71a9cf8c --- /dev/null +++ b/dev-python/nab-index/metadata.xml @@ -0,0 +1,12 @@ + + + + + bakedsnake@vagrantz.xyz + bakedsnake + + + notatallshaw/nab + nab-index + + diff --git a/dev-python/nab-index/nab-index-0.0.22.ebuild b/dev-python/nab-index/nab-index-0.0.22.ebuild new file mode 100644 index 0000000000..72cc1d733f --- /dev/null +++ b/dev-python/nab-index/nab-index-0.0.22.ebuild @@ -0,0 +1,45 @@ +# 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_{12..15} ) + +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}] +" + +EPYTEST_PLUGINS=( pytest ) + +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 +}