components/python/pytest-helpers-namespace/Makefile | ●●●●● patch | view | raw | blame | history | |
components/python/pytest-helpers-namespace/manifests/sample-manifest.p5m | ●●●●● patch | view | raw | blame | history | |
components/python/pytest-helpers-namespace/patches/01-pytest-disable-plugins.patch | ●●●●● patch | view | raw | blame | history | |
components/python/pytest-helpers-namespace/pkg5 | ●●●●● patch | view | raw | blame | history | |
components/python/pytest-helpers-namespace/pytest-helpers-namespace-PYVER.p5m | ●●●●● patch | view | raw | blame | history | |
components/python/pytest-helpers-namespace/python-integrate-project.conf | ●●●●● patch | view | raw | blame | history | |
components/python/pytest-helpers-namespace/test/results-all.master | ●●●●● patch | view | raw | blame | history |
components/python/pytest-helpers-namespace/Makefile
New file @@ -0,0 +1,42 @@ # # 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. # # # This file was automatically generated using the following command: # $WS_TOOLS/python-integrate-project pytest-helpers-namespace # BUILD_STYLE = pyproject include ../../../make-rules/shared-macros.mk COMPONENT_NAME = pytest-helpers-namespace HUMAN_VERSION = 2021.12.29 COMPONENT_SUMMARY = pytest-helpers-namespace - Pytest Helpers Namespace Plugin COMPONENT_PROJECT_URL = https://github.com/saltstack/pytest-helpers-namespace COMPONENT_ARCHIVE_URL = \ https://files.pythonhosted.org/packages/e8/61/7f1a476b375c1238d152c164f7ffb694c662da8247816947be84b5fe2e8a/pytest-helpers-namespace-2021.12.29.tar.gz COMPONENT_ARCHIVE_HASH = \ sha256:792038247e0021beb966a7ea6e3a70ff5fcfba77eb72c6ec8fd6287af871c35b COMPONENT_LICENSE = Apache-2.0 COMPONENT_LICENSE_FILE = LICENSE TEST_STYLE = pytest include $(WS_MAKE_RULES)/common.mk # Auto-generated dependencies PYTHON_REQUIRED_PACKAGES += library/python/pytest PYTHON_REQUIRED_PACKAGES += library/python/setuptools PYTHON_REQUIRED_PACKAGES += library/python/setuptools-declarative-requirements PYTHON_REQUIRED_PACKAGES += library/python/setuptools-scm PYTHON_REQUIRED_PACKAGES += library/python/wheel PYTHON_REQUIRED_PACKAGES += runtime/python components/python/pytest-helpers-namespace/manifests/sample-manifest.p5m
New file @@ -0,0 +1,42 @@ # # 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 2023 <contributor> # set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)-$(PYV)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION) set name=pkg.human-version value=$(HUMAN_VERSION) set name=pkg.summary value="$(COMPONENT_SUMMARY)" set name=info.classification value="$(COMPONENT_CLASSIFICATION)" set name=info.upstream-url value=$(COMPONENT_PROJECT_URL) set name=info.source-url value=$(COMPONENT_ARCHIVE_URL) set name=org.opensolaris.consolidation value=$(CONSOLIDATION) license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)' file path=usr/lib/python$(PYVER)/vendor-packages/pytest_helpers_namespace-$(HUMAN_VERSION).dist-info/AUTHORS.rst file path=usr/lib/python$(PYVER)/vendor-packages/pytest_helpers_namespace-$(HUMAN_VERSION).dist-info/LICENSE file path=usr/lib/python$(PYVER)/vendor-packages/pytest_helpers_namespace-$(HUMAN_VERSION).dist-info/METADATA file path=usr/lib/python$(PYVER)/vendor-packages/pytest_helpers_namespace-$(HUMAN_VERSION).dist-info/WHEEL file path=usr/lib/python$(PYVER)/vendor-packages/pytest_helpers_namespace-$(HUMAN_VERSION).dist-info/entry_points.txt file path=usr/lib/python$(PYVER)/vendor-packages/pytest_helpers_namespace-$(HUMAN_VERSION).dist-info/top_level.txt file path=usr/lib/python$(PYVER)/vendor-packages/pytest_helpers_namespace/__init__.py file path=usr/lib/python$(PYVER)/vendor-packages/pytest_helpers_namespace/plugin.py file path=usr/lib/python$(PYVER)/vendor-packages/pytest_helpers_namespace/py.typed file path=usr/lib/python$(PYVER)/vendor-packages/pytest_helpers_namespace/version.py # python modules are unusable without python runtime binary depend type=require fmri=__TBD pkg.debug.depend.file=python$(PYVER) \ pkg.debug.depend.path=usr/bin # Automatically generated dependencies based on distribution metadata depend type=require fmri=pkg:/library/python/pytest-$(PYV) components/python/pytest-helpers-namespace/patches/01-pytest-disable-plugins.patch
New file @@ -0,0 +1,56 @@ --- pytest-helpers-namespace-2021.12.29/tests/test_helpers_namespace.py.orig +++ pytest-helpers-namespace-2021.12.29/tests/test_helpers_namespace.py @@ -34,7 +34,7 @@ """ ) - result = pytester.runpytest("-s") + result = pytester.runpytest("-s", "-p", "no:black", "-p", "no:mypy") # fnmatch_lines does an assertion internally result.stdout.fnmatch_lines( @@ -68,7 +68,7 @@ """ ) - result = pytester.runpytest("-s") + result = pytester.runpytest("-s", "-p", "no:black", "-p", "no:mypy") # fnmatch_lines does an assertion internally result.stdout.fnmatch_lines( @@ -95,7 +95,7 @@ """ ) - result = pytester.runpytest("-s") + result = pytester.runpytest("-s", "-p", "no:black", "-p", "no:cov", "-p", "no:mypy") # fnmatch_lines does an assertion internally result.stdout.fnmatch_lines( @@ -197,7 +197,7 @@ """ ) - result = pytester.runpytest("-svv", "--log-cli-level=debug") + result = pytester.runpytest("-svv", "--log-cli-level=debug", "-p", "no:black", "-p", "no:mypy", "-p", "no:relaxed") # fnmatch_lines does an assertion internally result.stdout.fnmatch_lines(["test_helper_as_regular_function.py::test_helpers PASSED"]) @@ -222,7 +222,7 @@ """ ) - result = pytester.runpytest("-s") + result = pytester.runpytest("-s", "-p", "no:black", "-p", "no:mypy") # fnmatch_lines does an assertion internally result.stdout.fnmatch_lines( @@ -257,7 +257,7 @@ """ ) - result = pytester.runpytest("-vv") + result = pytester.runpytest("-vv", "-p", "no:black", "-p", "no:mypy") result.assert_outcomes(passed=1) components/python/pytest-helpers-namespace/pkg5
New file @@ -0,0 +1,15 @@ { "dependencies": [ "library/python/pytest-39", "library/python/setuptools-39", "library/python/setuptools-declarative-requirements-39", "library/python/setuptools-scm-39", "library/python/wheel-39", "runtime/python-39" ], "fmris": [ "library/python/pytest-helpers-namespace-39", "library/python/pytest-helpers-namespace" ], "name": "pytest-helpers-namespace" } components/python/pytest-helpers-namespace/pytest-helpers-namespace-PYVER.p5m
New file @@ -0,0 +1,42 @@ # # 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. # # # This file was automatically generated using python-integrate-project # set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)-$(PYV)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION) set name=pkg.human-version value=$(HUMAN_VERSION) set name=pkg.summary value="$(COMPONENT_SUMMARY)" set name=info.classification value="$(COMPONENT_CLASSIFICATION)" set name=info.upstream-url value=$(COMPONENT_PROJECT_URL) set name=info.source-url value=$(COMPONENT_ARCHIVE_URL) set name=org.opensolaris.consolidation value=$(CONSOLIDATION) license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)' file path=usr/lib/python$(PYVER)/vendor-packages/pytest_helpers_namespace-$(HUMAN_VERSION).dist-info/AUTHORS.rst file path=usr/lib/python$(PYVER)/vendor-packages/pytest_helpers_namespace-$(HUMAN_VERSION).dist-info/LICENSE file path=usr/lib/python$(PYVER)/vendor-packages/pytest_helpers_namespace-$(HUMAN_VERSION).dist-info/METADATA file path=usr/lib/python$(PYVER)/vendor-packages/pytest_helpers_namespace-$(HUMAN_VERSION).dist-info/WHEEL file path=usr/lib/python$(PYVER)/vendor-packages/pytest_helpers_namespace-$(HUMAN_VERSION).dist-info/entry_points.txt file path=usr/lib/python$(PYVER)/vendor-packages/pytest_helpers_namespace-$(HUMAN_VERSION).dist-info/top_level.txt file path=usr/lib/python$(PYVER)/vendor-packages/pytest_helpers_namespace/__init__.py file path=usr/lib/python$(PYVER)/vendor-packages/pytest_helpers_namespace/plugin.py file path=usr/lib/python$(PYVER)/vendor-packages/pytest_helpers_namespace/py.typed file path=usr/lib/python$(PYVER)/vendor-packages/pytest_helpers_namespace/version.py # python modules are unusable without python runtime binary depend type=require fmri=__TBD pkg.debug.depend.file=python$(PYVER) \ pkg.debug.depend.path=usr/bin # Automatically generated dependencies based on distribution metadata depend type=require fmri=pkg:/library/python/pytest-$(PYV) components/python/pytest-helpers-namespace/python-integrate-project.conf
New file @@ -0,0 +1,16 @@ # # 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 2023 Marcel Telka # %patch% 01-pytest-disable-plugins.patch components/python/pytest-helpers-namespace/test/results-all.master
New file @@ -0,0 +1,140 @@ ============================= test session starts ============================== platform sunos5 -- Python $(PYTHON_VERSION).X -- $(PYTHON) cachedir: .pytest_cache hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$(@D)/.hypothesis/examples') rootdir: $(@D) asyncio: mode=strict collecting ... collected 9 items tests/test_helpers_namespace.py::test_call_register_on_helper_function PASSED tests/test_helpers_namespace.py::test_helper_as_regular_function PASSED tests/test_helpers_namespace.py::test_helper_contains_method PASSED tests/test_helpers_namespace.py::test_helper_override PASSED tests/test_helpers_namespace.py::test_helper_with_custom_name PASSED tests/test_helpers_namespace.py::test_namespace PASSED tests/test_helpers_namespace.py::test_namespace_override PASSED tests/test_helpers_namespace.py::test_nested_namespace PASSED tests/test_helpers_namespace.py::test_unregistered_namespace PASSED =============================== warnings summary =============================== tests/test_helpers_namespace.py::test_namespace tests/test_helpers_namespace.py::test_nested_namespace tests/test_helpers_namespace.py::test_unregistered_namespace tests/test_helpers_namespace.py::test_namespace_override tests/test_helpers_namespace.py::test_helper_override tests/test_helpers_namespace.py::test_helper_with_custom_name tests/test_helpers_namespace.py::test_helper_contains_method tests/test_helpers_namespace.py::test_call_register_on_helper_function $(PYTHON_DIR)/vendor-packages/pytest_relaxed/plugin.py:40: PytestDeprecationWarning: The hookimpl pytest_configure uses old-style configuration options (marks or attributes). Please use the pytest.hookimpl(trylast=True) decorator instead to configure the hooks. See https://docs.pytest.org/en/latest/deprecations.html#configuring-hook-specs-impls-using-markers @pytest.mark.trylast # So we can be sure builtin terminalreporter exists tests/test_helpers_namespace.py::test_namespace tests/test_helpers_namespace.py::test_nested_namespace tests/test_helpers_namespace.py::test_unregistered_namespace tests/test_helpers_namespace.py::test_namespace_override tests/test_helpers_namespace.py::test_helper_override tests/test_helpers_namespace.py::test_helper_as_regular_function tests/test_helpers_namespace.py::test_helper_with_custom_name tests/test_helpers_namespace.py::test_helper_contains_method tests/test_helpers_namespace.py::test_call_register_on_helper_function $(PYTHON_DIR)/vendor-packages/pytest_reporter/__init__.py:1: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html from pkg_resources import get_distribution, DistributionNotFound tests/test_helpers_namespace.py: 18 warnings $(PYTHON_DIR)/vendor-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('paste')`. Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages declare_namespace(pkg) tests/test_helpers_namespace.py::test_namespace tests/test_helpers_namespace.py::test_nested_namespace tests/test_helpers_namespace.py::test_unregistered_namespace tests/test_helpers_namespace.py::test_namespace_override tests/test_helpers_namespace.py::test_helper_override tests/test_helpers_namespace.py::test_helper_as_regular_function tests/test_helpers_namespace.py::test_helper_with_custom_name tests/test_helpers_namespace.py::test_helper_contains_method tests/test_helpers_namespace.py::test_call_register_on_helper_function $(PYTHON_DIR)/vendor-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('flufl')`. Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages declare_namespace(pkg) tests/test_helpers_namespace.py: 18 warnings $(PYTHON_DIR)/vendor-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('repoze')`. Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages declare_namespace(pkg) tests/test_helpers_namespace.py::test_namespace tests/test_helpers_namespace.py::test_nested_namespace tests/test_helpers_namespace.py::test_unregistered_namespace tests/test_helpers_namespace.py::test_namespace_override tests/test_helpers_namespace.py::test_helper_override tests/test_helpers_namespace.py::test_helper_as_regular_function tests/test_helpers_namespace.py::test_helper_with_custom_name tests/test_helpers_namespace.py::test_helper_contains_method tests/test_helpers_namespace.py::test_call_register_on_helper_function $(PYTHON_DIR)/vendor-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('repoze.sphinx')`. Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages declare_namespace(pkg) tests/test_helpers_namespace.py::test_namespace tests/test_helpers_namespace.py::test_nested_namespace tests/test_helpers_namespace.py::test_unregistered_namespace tests/test_helpers_namespace.py::test_namespace_override tests/test_helpers_namespace.py::test_helper_override tests/test_helpers_namespace.py::test_helper_as_regular_function tests/test_helpers_namespace.py::test_helper_with_custom_name tests/test_helpers_namespace.py::test_helper_contains_method tests/test_helpers_namespace.py::test_call_register_on_helper_function $(PYTHON_DIR)/vendor-packages/pkg_resources/__init__.py:2350: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('repoze')`. Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages declare_namespace(parent) tests/test_helpers_namespace.py::test_namespace tests/test_helpers_namespace.py::test_nested_namespace tests/test_helpers_namespace.py::test_unregistered_namespace tests/test_helpers_namespace.py::test_namespace_override tests/test_helpers_namespace.py::test_helper_override tests/test_helpers_namespace.py::test_helper_as_regular_function tests/test_helpers_namespace.py::test_helper_with_custom_name tests/test_helpers_namespace.py::test_helper_contains_method tests/test_helpers_namespace.py::test_call_register_on_helper_function $(PYTHON_DIR)/vendor-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('sphinxcontrib')`. Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages declare_namespace(pkg) tests/test_helpers_namespace.py::test_namespace tests/test_helpers_namespace.py::test_nested_namespace tests/test_helpers_namespace.py::test_unregistered_namespace tests/test_helpers_namespace.py::test_namespace_override tests/test_helpers_namespace.py::test_helper_override tests/test_helpers_namespace.py::test_helper_as_regular_function tests/test_helpers_namespace.py::test_helper_with_custom_name tests/test_helpers_namespace.py::test_helper_contains_method tests/test_helpers_namespace.py::test_call_register_on_helper_function $(PYTHON_DIR)/vendor-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('zc')`. Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages declare_namespace(pkg) tests/test_helpers_namespace.py::test_namespace tests/test_helpers_namespace.py::test_nested_namespace tests/test_helpers_namespace.py::test_unregistered_namespace tests/test_helpers_namespace.py::test_namespace_override tests/test_helpers_namespace.py::test_helper_override tests/test_helpers_namespace.py::test_helper_as_regular_function tests/test_helpers_namespace.py::test_helper_with_custom_name tests/test_helpers_namespace.py::test_helper_contains_method tests/test_helpers_namespace.py::test_call_register_on_helper_function $(PYTHON_DIR)/vendor-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('zest')`. Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages declare_namespace(pkg) tests/test_helpers_namespace.py: 135 warnings $(PYTHON_DIR)/vendor-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('zope')`. Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages declare_namespace(pkg) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ======== 9 passed, 242 warnings ========