Marcel Telka
2024-03-22 2971f951ad806357ffd490132717895cce7774ee
python/pytest-cov: add test results; obsolete package for Python 3.7

5 files added
4 files modified
224 ■■■■■ changed files
components/python/pytest-cov/Makefile 12 ●●●● patch | view | raw | blame | history
components/python/pytest-cov/history 1 ●●●● patch | view | raw | blame | history
components/python/pytest-cov/manifests/sample-manifest.p5m 3 ●●●● patch | view | raw | blame | history
components/python/pytest-cov/patches/01-no-hunter.patch 12 ●●●●● patch | view | raw | blame | history
components/python/pytest-cov/patches/02-test-PYTHONPATH.patch 10 ●●●●● patch | view | raw | blame | history
components/python/pytest-cov/pkg5 11 ●●●●● patch | view | raw | blame | history
components/python/pytest-cov/pytest-cov-PYVER.p5m 1 ●●●● patch | view | raw | blame | history
components/python/pytest-cov/python-integrate-project.conf 25 ●●●●● patch | view | raw | blame | history
components/python/pytest-cov/test/results-all.master 149 ●●●●● patch | view | raw | blame | history
components/python/pytest-cov/Makefile
@@ -20,10 +20,9 @@
COMPONENT_NAME =        pytest-cov
HUMAN_VERSION =            4.1.0
COMPONENT_REVISION =        1
COMPONENT_SUMMARY =        pytest-cov - Pytest plugin for measuring coverage.
COMPONENT_PROJECT_URL =        https://github.com/pytest-dev/pytest-cov
COMPONENT_ARCHIVE_URL =        \
    https://files.pythonhosted.org/packages/7a/15/da3df99fd551507694a9b01f512a2f6cf1254f33601605843c3775f39460/pytest-cov-4.1.0.tar.gz
COMPONENT_ARCHIVE_HASH =    \
    sha256:3904b13dfbfec47f003b8e77fd5b589cd11904a21ddf1ab38a64f204d6a10ef6
COMPONENT_LICENSE =        MIT
@@ -31,13 +30,20 @@
include $(WS_MAKE_RULES)/common.mk
# https://github.com/pytest-dev/pluggy/issues/457
TEST_CONFLICTING_PACKAGES.python += library/python/flaky
TEST_CONFLICTING_PACKAGES.python += library/python/pytest-enabler
TEST_CONFLICTING_PACKAGES.python += library/python/pytest-relaxed
TEST_CONFLICTING_PACKAGES.python += library/python/pytest-subtests
TEST_CONFLICTING_PACKAGES.python += library/python/teamcity-messages
# Auto-generated dependencies
PYTHON_REQUIRED_PACKAGES += library/python/coverage
PYTHON_REQUIRED_PACKAGES += library/python/pytest
PYTHON_REQUIRED_PACKAGES += library/python/tomli
PYTHON_REQUIRED_PACKAGES += runtime/python
TEST_REQUIRED_PACKAGES.python += library/python/coverage
TEST_REQUIRED_PACKAGES.python += library/python/fields
TEST_REQUIRED_PACKAGES.python += library/python/hunter
TEST_REQUIRED_PACKAGES.python += library/python/process-tests
TEST_REQUIRED_PACKAGES.python += library/python/pytest
TEST_REQUIRED_PACKAGES.python += library/python/pytest-xdist
components/python/pytest-cov/history
New file
@@ -0,0 +1 @@
library/python/pytest-cov-37@4.1.0,5.11-2023.0.0.1
components/python/pytest-cov/manifests/sample-manifest.p5m
@@ -10,7 +10,7 @@
#
#
# Copyright 2023 <contributor>
# Copyright 2024 <contributor>
#
set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)-$(PYV)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
@@ -44,3 +44,4 @@
# Automatically generated dependencies based on distribution metadata
depend type=require fmri=pkg:/library/python/coverage-$(PYV)
depend type=require fmri=pkg:/library/python/pytest-$(PYV)
depend type=require fmri=pkg:/library/python/tomli-$(PYV)
components/python/pytest-cov/patches/01-no-hunter.patch
New file
@@ -0,0 +1,12 @@
hunter is not needed to run tests
--- pytest-cov-4.1.0/setup.py.orig
+++ pytest-cov-4.1.0/setup.py
@@ -136,7 +136,6 @@
     extras_require={
         'testing': [
             'fields',
-            'hunter',
             'process-tests',
             'six',
             'pytest-xdist',
components/python/pytest-cov/patches/02-test-PYTHONPATH.patch
New file
@@ -0,0 +1,10 @@
--- pytest-cov-4.1.0/tests/test_pytest_cov.py.orig
+++ pytest-cov-4.1.0/tests/test_pytest_cov.py
@@ -912,6 +912,7 @@
     assert result.ret == 0
+@pytest.mark.skip(reason="mangles PYTHONPATH and so it is not able to find pytest-cov in proto area")
 def test_central_subprocess_change_cwd_with_pythonpath(pytester, testdir, monkeypatch):
     stuff = testdir.mkdir('stuff')
     parent_script = stuff.join('parent_script.py')
components/python/pytest-cov/pkg5
@@ -1,16 +1,13 @@
{
    "dependencies": [
        "library/python/coverage-37",
        "library/python/coverage-39",
        "library/python/pytest-37",
        "library/python/pytest-39",
        "runtime/python-37",
        "library/python/tomli-39",
        "runtime/python-39"
    ],
    "fmris": [
        "library/python/pytest-cov-37",
        "library/python/pytest-cov-39",
        "library/python/pytest-cov"
        "library/python/pytest-cov",
        "library/python/pytest-cov-39"
    ],
    "name": "pytest-cov"
}
}
components/python/pytest-cov/pytest-cov-PYVER.p5m
@@ -44,3 +44,4 @@
# Automatically generated dependencies based on distribution metadata
depend type=require fmri=pkg:/library/python/coverage-$(PYV)
depend type=require fmri=pkg:/library/python/pytest-$(PYV)
depend type=require fmri=pkg:/library/python/tomli-$(PYV)
components/python/pytest-cov/python-integrate-project.conf
New file
@@ -0,0 +1,25 @@
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
#
# Copyright 2024 Marcel Telka
#
%patch% 01-no-hunter.patch
%patch% 02-test-PYTHONPATH.patch
%include-3%
# https://github.com/pytest-dev/pluggy/issues/457
TEST_CONFLICTING_PACKAGES.python += library/python/flaky
TEST_CONFLICTING_PACKAGES.python += library/python/pytest-enabler
TEST_CONFLICTING_PACKAGES.python += library/python/pytest-relaxed
TEST_CONFLICTING_PACKAGES.python += library/python/pytest-subtests
TEST_CONFLICTING_PACKAGES.python += library/python/teamcity-messages
components/python/pytest-cov/test/results-all.master
New file
@@ -0,0 +1,149 @@
py$(PYV): remove tox env folder $(@D)/.tox/py$(PYV)
py$(PYV): commands[0]> pytest -vv
============================= test session starts ==============================
platform sunos5 -- Python $(PYTHON_VERSION).X -- $(PYTHON)
cachedir: .tox/py$(PYV)/.pytest_cache
rootdir: $(@D)
configfile: setup.cfg
testpaths: tests
collecting ... collected 129 items
coverage.version_info > (6, 4))
coverage.version_info > (6, 4))
coverage.version_info >= (6, 3))
removed in version 3.0.2)
tests/test_pytest_cov.py::test_annotate PASSED
tests/test_pytest_cov.py::test_annotate_output_dir PASSED
tests/test_pytest_cov.py::test_append_coverage[branch1a-nodist] PASSED
tests/test_pytest_cov.py::test_append_coverage[branch1a-xdist] PASSED
tests/test_pytest_cov.py::test_append_coverage[branch1c-nodist] PASSED
tests/test_pytest_cov.py::test_append_coverage[branch1c-xdist] PASSED
tests/test_pytest_cov.py::test_append_coverage[branch2x-nodist] PASSED
tests/test_pytest_cov.py::test_append_coverage[branch2x-xdist] PASSED
tests/test_pytest_cov.py::test_append_coverage[nobranch-nodist] PASSED
tests/test_pytest_cov.py::test_append_coverage[nobranch-xdist] PASSED
tests/test_pytest_cov.py::test_append_coverage_subprocess PASSED
tests/test_pytest_cov.py::test_borken_cwd[nodist] PASSED
tests/test_pytest_cov.py::test_borken_cwd[xdist] PASSED
tests/test_pytest_cov.py::test_central[branch1a] PASSED
tests/test_pytest_cov.py::test_central[branch1c] PASSED
tests/test_pytest_cov.py::test_central[branch2x] PASSED
tests/test_pytest_cov.py::test_central[nobranch] PASSED
tests/test_pytest_cov.py::test_central_coveragerc[branch1a] PASSED
tests/test_pytest_cov.py::test_central_coveragerc[branch1c] PASSED
tests/test_pytest_cov.py::test_central_coveragerc[branch2x] PASSED
tests/test_pytest_cov.py::test_central_coveragerc[nobranch] PASSED
tests/test_pytest_cov.py::test_central_nonspecific[branch1a] PASSED
tests/test_pytest_cov.py::test_central_nonspecific[branch1c] PASSED
tests/test_pytest_cov.py::test_central_nonspecific[branch2x] PASSED
tests/test_pytest_cov.py::test_central_nonspecific[nobranch] PASSED
tests/test_pytest_cov.py::test_central_subprocess PASSED
tests/test_pytest_cov.py::test_central_subprocess_change_cwd PASSED
tests/test_pytest_cov.py::test_central_subprocess_change_cwd_with_pythonpath SKIPPEDarea)
tests/test_pytest_cov.py::test_central_subprocess_no_subscript PASSED
tests/test_pytest_cov.py::test_central_with_path_aliasing[branch1a-nodist] PASSED
tests/test_pytest_cov.py::test_central_with_path_aliasing[branch1a-xdist] PASSED
tests/test_pytest_cov.py::test_central_with_path_aliasing[branch1c-nodist] PASSED
tests/test_pytest_cov.py::test_central_with_path_aliasing[branch1c-xdist] PASSED
tests/test_pytest_cov.py::test_central_with_path_aliasing[branch2x-nodist] PASSED
tests/test_pytest_cov.py::test_central_with_path_aliasing[branch2x-xdist] PASSED
tests/test_pytest_cov.py::test_central_with_path_aliasing[nobranch-nodist] PASSED
tests/test_pytest_cov.py::test_central_with_path_aliasing[nobranch-xdist] PASSED
tests/test_pytest_cov.py::test_cleanup_on_sigterm PASSED
tests/test_pytest_cov.py::test_cleanup_on_sigterm_sig_break[setup0] SKIPPED
tests/test_pytest_cov.py::test_cleanup_on_sigterm_sig_break[setup1] SKIPPED
tests/test_pytest_cov.py::test_cleanup_on_sigterm_sig_break[setup2] SKIPPED
tests/test_pytest_cov.py::test_cleanup_on_sigterm_sig_dfl[setup0] PASSED
tests/test_pytest_cov.py::test_cleanup_on_sigterm_sig_dfl[setup1] PASSED
tests/test_pytest_cov.py::test_cleanup_on_sigterm_sig_dfl[setup2] PASSED
tests/test_pytest_cov.py::test_cleanup_on_sigterm_sig_dfl_sigint PASSED
tests/test_pytest_cov.py::test_cleanup_on_sigterm_sig_ign PASSED
tests/test_pytest_cov.py::test_clear_environ PASSED
tests/test_pytest_cov.py::test_contexts[nodist] SKIPPED (condition:
tests/test_pytest_cov.py::test_contexts[xdist] SKIPPED (condition:
tests/test_pytest_cov.py::test_contexts_not_supported SKIPPED
tests/test_pytest_cov.py::test_cov_and_failure_report_on_fail PASSED
tests/test_pytest_cov.py::test_cov_and_no_cov PASSED
tests/test_pytest_cov.py::test_cov_min_100 PASSED
tests/test_pytest_cov.py::test_cov_min_100_passes_if_collectonly PASSED
tests/test_pytest_cov.py::test_cov_min_50 PASSED
tests/test_pytest_cov.py::test_cov_min_float_value PASSED
tests/test_pytest_cov.py::test_cov_min_float_value_not_reached PASSED
tests/test_pytest_cov.py::test_cov_min_from_coveragerc PASSED
tests/test_pytest_cov.py::test_cov_min_no_report PASSED
tests/test_pytest_cov.py::test_cov_reset PASSED
tests/test_pytest_cov.py::test_cov_reset_then_set PASSED
tests/test_pytest_cov.py::test_cover_conftest PASSED
tests/test_pytest_cov.py::test_cover_conftest_dist PASSED
tests/test_pytest_cov.py::test_cover_looponfail PASSED
tests/test_pytest_cov.py::test_coverage_file PASSED
tests/test_pytest_cov.py::test_coveragerc PASSED
tests/test_pytest_cov.py::test_coveragerc_dist PASSED
tests/test_pytest_cov.py::test_default_output_setting PASSED
tests/test_pytest_cov.py::test_disabled_output PASSED
tests/test_pytest_cov.py::test_dist_bare_cov PASSED
tests/test_pytest_cov.py::test_dist_boxed SKIPPED (--boxed option was
tests/test_pytest_cov.py::test_dist_collocated[branch1a] PASSED
tests/test_pytest_cov.py::test_dist_collocated[branch1c] PASSED
tests/test_pytest_cov.py::test_dist_collocated[branch2x] PASSED
tests/test_pytest_cov.py::test_dist_collocated[nobranch] PASSED
tests/test_pytest_cov.py::test_dist_combine_racecondition PASSED
tests/test_pytest_cov.py::test_dist_missing_data SKIPPED (Since pytest-
tests/test_pytest_cov.py::test_dist_not_collocated[branch1a] PASSED
tests/test_pytest_cov.py::test_dist_not_collocated[branch1c] PASSED
tests/test_pytest_cov.py::test_dist_not_collocated[branch2x] PASSED
tests/test_pytest_cov.py::test_dist_not_collocated[nobranch] PASSED
tests/test_pytest_cov.py::test_dist_not_collocated_coveragerc_source[branch1a] PASSED
tests/test_pytest_cov.py::test_dist_not_collocated_coveragerc_source[branch1c] PASSED
tests/test_pytest_cov.py::test_dist_not_collocated_coveragerc_source[branch2x] PASSED
tests/test_pytest_cov.py::test_dist_not_collocated_coveragerc_source[nobranch] PASSED
tests/test_pytest_cov.py::test_dist_subprocess_collocated PASSED
tests/test_pytest_cov.py::test_dist_subprocess_not_collocated PASSED
tests/test_pytest_cov.py::test_do_not_append_coverage[branch1a-nodist] PASSED
tests/test_pytest_cov.py::test_do_not_append_coverage[branch1a-xdist] PASSED
tests/test_pytest_cov.py::test_do_not_append_coverage[branch1c-nodist] PASSED
tests/test_pytest_cov.py::test_do_not_append_coverage[branch1c-xdist] PASSED
tests/test_pytest_cov.py::test_do_not_append_coverage[branch2x-nodist] PASSED
tests/test_pytest_cov.py::test_do_not_append_coverage[branch2x-xdist] PASSED
tests/test_pytest_cov.py::test_do_not_append_coverage[nobranch-nodist] PASSED
tests/test_pytest_cov.py::test_do_not_append_coverage[nobranch-xdist] PASSED
tests/test_pytest_cov.py::test_double_cov PASSED
tests/test_pytest_cov.py::test_double_cov2 PASSED
tests/test_pytest_cov.py::test_external_data_file PASSED
tests/test_pytest_cov.py::test_external_data_file_negative PASSED
tests/test_pytest_cov.py::test_external_data_file_xdist PASSED
tests/test_pytest_cov.py::test_funcarg PASSED
tests/test_pytest_cov.py::test_funcarg_not_active PASSED
tests/test_pytest_cov.py::test_html PASSED
tests/test_pytest_cov.py::test_html_configured_output_dir PASSED
tests/test_pytest_cov.py::test_html_output_dir PASSED
tests/test_pytest_cov.py::test_invalid_coverage_source PASSED
tests/test_pytest_cov.py::test_issue_417 PASSED
tests/test_pytest_cov.py::test_json_output_dir PASSED
tests/test_pytest_cov.py::test_lcov_not_supported SKIPPED (condition:
tests/test_pytest_cov.py::test_lcov_output_dir PASSED
tests/test_pytest_cov.py::test_no_cov PASSED
tests/test_pytest_cov.py::test_no_cov_on_fail PASSED
tests/test_pytest_cov.py::test_no_cover_fixture PASSED
tests/test_pytest_cov.py::test_no_cover_marker PASSED
tests/test_pytest_cov.py::test_not_started_plugin_does_not_fail PASSED
tests/test_pytest_cov.py::test_pth_failure PASSED
tests/test_pytest_cov.py::test_show_missing_coveragerc[branch1a] PASSED
tests/test_pytest_cov.py::test_show_missing_coveragerc[branch1c] PASSED
tests/test_pytest_cov.py::test_show_missing_coveragerc[branch2x] PASSED
tests/test_pytest_cov.py::test_show_missing_coveragerc[nobranch] PASSED
tests/test_pytest_cov.py::test_skip_covered_cli[term-missing:skip-covered] PASSED
tests/test_pytest_cov.py::test_skip_covered_cli[term:skip-covered] PASSED
tests/test_pytest_cov.py::test_skip_covered_coveragerc_config PASSED
tests/test_pytest_cov.py::test_subprocess_with_path_aliasing PASSED
tests/test_pytest_cov.py::test_term_missing_output_dir PASSED
tests/test_pytest_cov.py::test_term_output_dir PASSED
tests/test_pytest_cov.py::test_term_report_does_not_interact_with_html_output PASSED
tests/test_pytest_cov.py::test_xdist_no_data_collected PASSED
tests/test_pytest_cov.py::test_xml_output_dir PASSED
xdist 2.3.0 the parent sys.path is copied in the child process)
=========================== short test summary info ============================
======== 119 passed, 10 skipped ========
  py$(PYV): OK
  congratulations :)