commit: 72a312b6ffc923d4704d9f098624c7a6e29f6567 Author: Julien Roy <julien <AT> jroy <DOT> ca> AuthorDate: Sun Apr 23 19:17:28 2023 +0000 Commit: Julien Roy <julien <AT> jroy <DOT> ca> CommitDate: Sun Apr 23 19:17:28 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=72a312b6
dev-python/sphinxcontrib-zopeext: add 0.4.2-r1 Fix pytest in pyproject.toml Replace sed operation by patch Closes: https://bugs.gentoo.org/904309 Signed-off-by: Julien Roy <julien <AT> jroy.ca> .../sphinxcontrib-zopeext/files/pyproject.patch | 28 ++++++++++++++++++ .../sphinxcontrib-zopeext-0.4.2-r1.ebuild | 33 ++++++++++++++++++++++ 2 files changed, 61 insertions(+) diff --git a/dev-python/sphinxcontrib-zopeext/files/pyproject.patch b/dev-python/sphinxcontrib-zopeext/files/pyproject.patch new file mode 100644 index 000000000..04ef8a904 --- /dev/null +++ b/dev-python/sphinxcontrib-zopeext/files/pyproject.patch @@ -0,0 +1,28 @@ +diff --git a/pyproject.toml b/pyproject.toml +index b204a4d..5633f69 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -16,14 +16,6 @@ dev = [ + testpaths = [ + "tests", + ] +-addopts = [ +- "--doctest-modules", +- "--cov=sphinxcontrib.zopeext", +- "--cov-report=html", +- "--cov-fail-under=85", +- "--no-cov-on-fail", +- "--pdb", +-] + doctest_optionflags = [ + "ELLIPSIS", + "NORMALIZE_WHITESPACE", +@@ -87,6 +79,6 @@ doc = [ + + [build-system] + requires = [ +- "pdm-backend", ++ "pdm-pep517", + ] +-build-backend = "pdm.backend" ++build-backend = "pdm.pep517.api" diff --git a/dev-python/sphinxcontrib-zopeext/sphinxcontrib-zopeext-0.4.2-r1.ebuild b/dev-python/sphinxcontrib-zopeext/sphinxcontrib-zopeext-0.4.2-r1.ebuild new file mode 100644 index 000000000..847ce86f8 --- /dev/null +++ b/dev-python/sphinxcontrib-zopeext/sphinxcontrib-zopeext-0.4.2-r1.ebuild @@ -0,0 +1,33 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=pdm +PYTHON_COMPAT=( python3_{9..10} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Sphinx extension for using Zope interfaces" +HOMEPAGE="https://github.com/sphinx-contrib/zopeext" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/importlib-metadata[${PYTHON_USEDEP}] + dev-python/zope-interface[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/pytest-cov[${PYTHON_USEDEP}] + dev-python/sphinx-testing[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + "${FILESDIR}/pyproject.patch" +) + +distutils_enable_tests pytest
