Import devel/py-test-isort 3.0.0.

The pytest-isort plugin extends py.test to check import ordering using
isort.

backport a commit from upstream to switch to poetry-core, pointed out by
sthen@.

ok sthen@ semarie@
This commit is contained in:
landry 2022-10-13 15:34:16 +00:00
parent fd48cd026f
commit 7c154c629c
5 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,26 @@
COMMENT = py.test isort plugin to check import ordering using isort
DISTNAME = pytest-isort-${MODPY_EGG_VERSION}
PKGNAME = py-test-isort-${MODPY_EGG_VERSION}
MODPY_EGG_VERSION = 3.0.0
CATEGORIES = devel
HOMEPAGE = https://github.com/stephrdev/pytest-isort
# MIT
PERMIT_PACKAGE = Yes
FLAVORS = python3
FLAVOR = python3
MODULES = lang/python
MODPY_PI = Yes
MODPY_PYBUILD = poetry-core
MODPY_PYTEST = Yes
NO_TESTS = Yes
RUN_DEPENDS = devel/py-isort${MODPY_FLAVOR} \
devel/py-test${MODPY_FLAVOR}
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (pytest-isort-3.0.0.tar.gz) = T+Sybq0q93ZzDsI/WHDXQh81qs4ipBxOk4WG702Hh8s=
SIZE (pytest-isort-3.0.0.tar.gz) = 6197

View File

@ -0,0 +1,18 @@
switch to poetry-core
from https://github.com/stephrdev/pytest-isort/commit/a36c16ecbf454cc25f8564aa39fe652808f56d3f
Index: pyproject.toml
--- pyproject.toml.orig
+++ pyproject.toml
@@ -44,8 +44,8 @@ pytest-flake8 = ">=1.0"
pytest-black = ">=0.3"
[build-system]
-requires = ["poetry>=1.1"]
-build-backend = "poetry.masonry.api"
+requires = ["poetry-core>=1.0.0"]
+build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 96

View File

@ -0,0 +1,2 @@
The pytest-isort plugin extends py.test to check import ordering using
isort.

View File

@ -0,0 +1,12 @@
@comment lib/python${MODPY_VERSION}/site-packages/LICENSE.rst
lib/python${MODPY_VERSION}/site-packages/pytest_isort/
lib/python${MODPY_VERSION}/site-packages/pytest_isort-${MODPY_EGG_VERSION}.dist-info/
lib/python${MODPY_VERSION}/site-packages/pytest_isort-${MODPY_EGG_VERSION}.dist-info/LICENSE.rst
lib/python${MODPY_VERSION}/site-packages/pytest_isort-${MODPY_EGG_VERSION}.dist-info/METADATA
lib/python${MODPY_VERSION}/site-packages/pytest_isort-${MODPY_EGG_VERSION}.dist-info/RECORD
lib/python${MODPY_VERSION}/site-packages/pytest_isort-${MODPY_EGG_VERSION}.dist-info/WHEEL
lib/python${MODPY_VERSION}/site-packages/pytest_isort-${MODPY_EGG_VERSION}.dist-info/entry_points.txt
lib/python${MODPY_VERSION}/site-packages/pytest_isort/__init__.py
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/pytest_isort/${MODPY_PYCACHE}/
lib/python${MODPY_VERSION}/site-packages/pytest_isort/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/pytest_isort/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc