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:
Julien Roy
2023-04-04 22:35:50 -04:00
parent e2c9b5c018
commit d4603df909
3 changed files with 48 additions and 0 deletions

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

View 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"
)

View File

@@ -23,3 +23,7 @@ RDEPEND="
dev-python/isort[${PYTHON_USEDEP}]
"
DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}/stray-files.patch"
)