commit:     cd0b35531f498f28a87452581f08d8cf073b0033
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 27 13:44:18 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Sep 27 13:45:05 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd0b3553

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

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/tuf/Manifest         |  1 +
 dev-python/tuf/metadata.xml     | 12 ++++++++++++
 dev-python/tuf/tuf-5.0.0.ebuild | 32 ++++++++++++++++++++++++++++++++
 3 files changed, 45 insertions(+)

diff --git a/dev-python/tuf/Manifest b/dev-python/tuf/Manifest
new file mode 100644
index 000000000000..bd1e3b173e1f
--- /dev/null
+++ b/dev-python/tuf/Manifest
@@ -0,0 +1 @@
+DIST tuf-5.0.0.tar.gz 266998 BLAKE2B 
6fcf909955f7c2515ede1922c9534ca439cc68d07af81ba53d8811f74fd4510655cc17395f1e0e5df0e3ea752e74862e8d1397b9b3a272565e793c70af9de352
 SHA512 
c8ae86480320fb33e6d92292da0e687a3d7c90c2bcc234518d934671a954a0970e158cc48ab95be51e6eb21eb63a769c47be9a7880b446d5b0eba9f34570c07d

diff --git a/dev-python/tuf/metadata.xml b/dev-python/tuf/metadata.xml
new file mode 100644
index 000000000000..016baed53722
--- /dev/null
+++ b/dev-python/tuf/metadata.xml
@@ -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>pyt...@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>

diff --git a/dev-python/tuf/tuf-5.0.0.ebuild b/dev-python/tuf/tuf-5.0.0.ebuild
new file mode 100644
index 000000000000..8ab675ef5cc3
--- /dev/null
+++ b/dev-python/tuf/tuf-5.0.0.ebuild
@@ -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
+}

Reply via email to