mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 23:23:00 -04:00
dev-python/pytest-isort: add 3.1.0-r1
Add patch for stray files Credits to Anton (anton.stay.connected@gmail.com) for providing the patch on b.g.o Closes: https://bugs.gentoo.org/901215 Signed-off-by: Julien Roy <julien@jroy.ca>
This commit is contained in:
15
dev-python/pytest-isort/files/stray-files.patch
Normal file
15
dev-python/pytest-isort/files/stray-files.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
diff --git a/pyproject.toml b/pyproject.toml
|
||||
index 64d36bc..a6420fd 100644
|
||||
--- a/pyproject.toml
|
||||
+++ b/pyproject.toml
|
||||
@@ -25,7 +25,9 @@ classifiers = [
|
||||
"Framework :: Pytest",
|
||||
]
|
||||
packages = [{ include = "pytest_isort" }]
|
||||
-include = ["LICENSE.rst"]
|
||||
+include = [
|
||||
+ { path = "LICENSE.rst", format = "sdist" },
|
||||
+]
|
||||
|
||||
[tool.poetry.plugins.pytest11]
|
||||
isort = "pytest_isort"
|
||||
29
dev-python/pytest-isort/pytest-isort-3.1.0-r1.ebuild
Normal file
29
dev-python/pytest-isort/pytest-isort-3.1.0-r1.ebuild
Normal file
@@ -0,0 +1,29 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=poetry
|
||||
PYTHON_COMPAT=( python3_{9..11} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Plugin to check import ordering using isort"
|
||||
HOMEPAGE="https://github.com/stephrdev/pytest-isort"
|
||||
SRC_URI="https://github.com/stephrdev/pytest-isort/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SLOT="0"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
RDEPEND="
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
dev-python/isort[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/stray-files.patch"
|
||||
)
|
||||
@@ -23,3 +23,7 @@ RDEPEND="
|
||||
dev-python/isort[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/stray-files.patch"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user