dev-python/tuf: New package, v5.0.0, dep of sigstore

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2024-09-27 15:44:18 +02:00
parent 4b6b642198
commit cd0b35531f
3 changed files with 45 additions and 0 deletions

1
dev-python/tuf/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST tuf-5.0.0.tar.gz 266998 BLAKE2B 6fcf909955f7c2515ede1922c9534ca439cc68d07af81ba53d8811f74fd4510655cc17395f1e0e5df0e3ea752e74862e8d1397b9b3a272565e793c70af9de352 SHA512 c8ae86480320fb33e6d92292da0e687a3d7c90c2bcc234518d934671a954a0970e158cc48ab95be51e6eb21eb63a769c47be9a7880b446d5b0eba9f34570c07d

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>python@gentoo.org</email>
</maintainer>
<stabilize-allarches/>
<upstream>
<remote-id type="github">theupdateframework/python-tuf</remote-id>
<remote-id type="pypi">tuf</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,32 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=hatchling
PYTHON_COMPAT=( python3_{10..13} )
inherit distutils-r1 pypi
DESCRIPTION="A secure updater framework for Python"
HOMEPAGE="
https://github.com/theupdateframework/python-tuf/
https://pypi.org/project/tuf/
"
LICENSE="|| ( Apache-2.0 MIT )"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
>=dev-python/requests-2.19.1[${PYTHON_USEDEP}]
<dev-python/securesystemslib-2[${PYTHON_USEDEP}]
"
distutils_enable_tests unittest
python_test() {
cd tests || die
local -x PYTHONPATH="..:${PYTHONPATH}"
eunittest
}