diff options
author | Marek Szuba <marecki@gentoo.org> | 2023-05-11 11:01:41 +0100 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2023-05-11 11:56:06 +0100 |
commit | e8ef6beb9d34217a8bf765b6a795b719bc48b4bd (patch) | |
tree | 97a330547bf74276a6370b3e42809956da498872 /dev-python/griffe | |
parent | x11-libs/libdmx: treeclean (diff) | |
download | gentoo-e8ef6beb9d34217a8bf765b6a795b719bc48b4bd.tar.gz gentoo-e8ef6beb9d34217a8bf765b6a795b719bc48b4bd.tar.bz2 gentoo-e8ef6beb9d34217a8bf765b6a795b719bc48b4bd.zip |
dev-python/griffe: new package, add 0.27.4
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'dev-python/griffe')
-rw-r--r-- | dev-python/griffe/Manifest | 1 | ||||
-rw-r--r-- | dev-python/griffe/files/griffe-0.27.4-build_backend.patch | 11 | ||||
-rw-r--r-- | dev-python/griffe/griffe-0.27.4.ebuild | 26 | ||||
-rw-r--r-- | dev-python/griffe/metadata.xml | 13 |
4 files changed, 51 insertions, 0 deletions
diff --git a/dev-python/griffe/Manifest b/dev-python/griffe/Manifest new file mode 100644 index 000000000000..4cf90a5b9317 --- /dev/null +++ b/dev-python/griffe/Manifest @@ -0,0 +1 @@ +DIST griffe-0.27.4.gh.tar.gz 154404 BLAKE2B 40c3a67b47561eeaf846a53ee678e3473a4064ab58c1a07b823b914e2fcfda15e43de9dc6bac074eeb238838d27a9c14f4314a481590c83df1e83dcce320525f SHA512 bb927d956b289048950343d087da5be057fbef8e38feff345ce5f46ca1edfeb87a6fe94b8be18d7c76beef84c69dc97a3972177aac69429a4633f1543906b8e5 diff --git a/dev-python/griffe/files/griffe-0.27.4-build_backend.patch b/dev-python/griffe/files/griffe-0.27.4-build_backend.patch new file mode 100644 index 000000000000..32482faed216 --- /dev/null +++ b/dev-python/griffe/files/griffe-0.27.4-build_backend.patch @@ -0,0 +1,11 @@ +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,6 +1,6 @@ + [build-system] +-requires = ["pdm-backend"] +-build-backend = "pdm.backend" ++requires = ["pdm-pep517"] ++build-backend = "pdm.pep517.api" + + [project] + name = "griffe" diff --git a/dev-python/griffe/griffe-0.27.4.ebuild b/dev-python/griffe/griffe-0.27.4.ebuild new file mode 100644 index 000000000000..7d4993cedf3c --- /dev/null +++ b/dev-python/griffe/griffe-0.27.4.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..11} ) +DISTUTILS_USE_PEP517=pdm + +inherit distutils-r1 + +DESCRIPTION="Signature generator for Python programs" +HOMEPAGE="https://mkdocstrings.github.io/griffe/ https://pypi.org/project/griffe/" +# Tests need files absent from the PyPI tarballs +SRC_URI="https://github.com/mkdocstrings/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="ISC" +SLOT="0" +KEYWORDS="~amd64 ~riscv" + +RDEPEND=">=dev-python/colorama-0.4[${PYTHON_USEDEP}]" + +PATCHES=( + "${FILESDIR}"/${PN}-0.27.4-build_backend.patch +) + +distutils_enable_tests pytest diff --git a/dev-python/griffe/metadata.xml b/dev-python/griffe/metadata.xml new file mode 100644 index 000000000000..494b1dde9407 --- /dev/null +++ b/dev-python/griffe/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>marecki@gentoo.org</email> + <name>Marek Szuba</name> + </maintainer> + <stabilize-allarches/> + <upstream> + <remote-id type="pypi">griffe</remote-id> + <remote-id type="github">mkdocstrings/griffe</remote-id> + </upstream> +</pkgmetadata> |