Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F159787268
D39035.id118702.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
D39035.id118702.diff
View Options
Index: devel/py-pytest-cov/Makefile
===================================================================
--- devel/py-pytest-cov/Makefile
+++ devel/py-pytest-cov/Makefile
@@ -1,5 +1,5 @@
PORTNAME= pytest-cov
-PORTVERSION= 2.9.0
+PORTVERSION= 4.0.0
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -11,14 +11,22 @@
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:3.6+
-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>
Index: devel/py-pytest-cov/distinfo
===================================================================
--- devel/py-pytest-cov/distinfo
+++ devel/py-pytest-cov/distinfo
@@ -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 = 1678653801
+SHA256 (pytest-cov-4.0.0.tar.gz) = 996b79efde6433cdbd0088872dbc5fb3ed7fe1578b68cdbba634f14bb8dd0470
+SIZE (pytest-cov-4.0.0.tar.gz) = 62013
Index: devel/py-pytest-cov/files/patch-setup.py
===================================================================
--- /dev/null
+++ devel/py-pytest-cov/files/patch-setup.py
@@ -0,0 +1,24 @@
+--- setup.py.orig 2022-09-28 15:20:20 UTC
++++ setup.py
+@@ -111,11 +111,11 @@ setup(
+ 'Programming Language :: Python',
+ 'Programming Language :: Python :: 3',
+ 'Programming Language :: Python :: 3 :: Only',
+- 'Programming Language :: Python :: 3.6',
+ 'Programming Language :: Python :: 3.7',
+ 'Programming Language :: Python :: 3.8',
+ 'Programming Language :: Python :: 3.9',
+ 'Programming Language :: Python :: 3.10',
++ 'Programming Language :: Python :: 3.11',
+ 'Programming Language :: Python :: Implementation :: CPython',
+ 'Programming Language :: Python :: Implementation :: PyPy',
+ 'Topic :: Software Development :: Testing',
+@@ -133,7 +133,7 @@ setup(
+ 'pytest>=4.6',
+ 'coverage[toml]>=5.2.1'
+ ],
+- python_requires='>=3.6',
++ python_requires='>=3.7',
+ extras_require={
+ 'testing': [
+ 'fields',
Index: devel/py-pytest-cov/files/patch-tests_test__pytest__cov.py
===================================================================
--- /dev/null
+++ devel/py-pytest-cov/files/patch-tests_test__pytest__cov.py
@@ -0,0 +1,19 @@
+--- tests/test_pytest_cov.py.orig 2022-09-28 15:03:24 UTC
++++ tests/test_pytest_cov.py
+@@ -1556,6 +1556,8 @@ def test_foo():
+ SCRIPT_SIMPLE_RESULT = '4 * 100%'
+
+
++@pytest.mark.skipif('tuple(int(x) for x in xdist.__version__.split(".")) >= (2, 5, 0)',
++ reason="--boxed option was removed in version 2.5.0")
+ @pytest.mark.skipif('sys.platform == "win32"')
+ def test_dist_boxed(testdir):
+ script = testdir.makepyfile(SCRIPT_SIMPLE)
+@@ -1916,6 +1918,7 @@ EXPECTED_CONTEXTS = {
+
+
+ @pytest.mark.skipif("coverage.version_info < (5, 0)")
++@pytest.mark.skipif("coverage.version_info > (6, 4)")
+ @xdist_params
+ def test_contexts(pytester, testdir, opts):
+ with open(os.path.join(os.path.dirname(__file__), "contextful.py")) as f:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jun 19, 6:33 AM (10 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34067874
Default Alt Text
D39035.id118702.diff (3 KB)
Attached To
Mode
D39035: Upgrade py-pytest-cov from 2.9.0 to 4.1.0
Attached
Detach File
Event Timeline
Log In to Comment