mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
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:
28
dev-python/sphinxcontrib-zopeext/files/pyproject.patch
Normal file
28
dev-python/sphinxcontrib-zopeext/files/pyproject.patch
Normal 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"
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user