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@jroy.ca>
This commit is contained in:
Julien Roy
2023-04-23 15:17:28 -04:00
parent c263d16d8b
commit 72a312b6ff
2 changed files with 61 additions and 0 deletions

View File

@@ -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"

View File

@@ -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