Skip to content

Commit

Permalink
Upgrade devel/py-pytest-cov to 4.1.0
Browse files Browse the repository at this point in the history
Summary:
This is required so py-pytest-cov is functional with newer versions of
py-pytest-xdist [1].

While here, appease portlint by shifting where variables (`CONFLICTS`,
etc) are defined.

1. pytest-dev/pytest-cov#422

PR:	269360
Co-Authored-With:	Yuri Victorovich <yuri@freebsd.org>

Test Plan: `make test` passes with this change.

Reviewers: dbaio

Subscribers: mat, yuri

Differential Revision: https://reviews.freebsd.org/D39035
  • Loading branch information
ngie-eign committed Aug 5, 2023
1 parent 5a1db66 commit e87c920
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
20 changes: 14 additions & 6 deletions devel/py-pytest-cov/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PORTNAME= pytest-cov
PORTVERSION= 2.9.0
PORTVERSION= 4.1.0
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
Expand All @@ -11,14 +11,22 @@ WWW= https://github.com/pytest-dev/pytest-cov
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE

CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}pytest4-cov

RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coverage>=4.4:devel/py-coverage@${PY_FLAVOR} \
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coverage>=5.2.1:devel/py-coverage@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest>=3.6:devel/py-pytest@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}fields>0:devel/py-fields@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}hunter>0:devel/py-hunter@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}process-tests>0:devel/py-process-tests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest-xdist>0:devel/py-pytest-xdist@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}virtualenv>0:devel/py-virtualenv@${PY_FLAVOR}

USES= python
USE_PYTHON= autoplist concurrent distutils
USES= python:3.7+
USE_PYTHON= autoplist concurrent distutils pytest

CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}pytest4-cov

NO_ARCH= yes

TEST_ARGS+= -p pytester

.include <bsd.port.mk>
6 changes: 3 additions & 3 deletions devel/py-pytest-cov/distinfo
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
TIMESTAMP = 1590933452
SHA256 (pytest-cov-2.9.0.tar.gz) = b6a814b8ed6247bd81ff47f038511b57fe1ce7f4cc25b9106f1a4b106f1d9322
SIZE (pytest-cov-2.9.0.tar.gz) = 54269
TIMESTAMP = 1691204295
SHA256 (pytest-cov-4.1.0.tar.gz) = 3904b13dfbfec47f003b8e77fd5b589cd11904a21ddf1ab38a64f204d6a10ef6
SIZE (pytest-cov-4.1.0.tar.gz) = 63245

0 comments on commit e87c920

Please sign in to comment.