Marcel Telka
2024-02-12 e7470ef537f143a847050f2cd13efcfc77dc63e2
Add pytest-home Python project

7 files added
1 files modified
194 ■■■■■ changed files
components/python/pytest-home/Makefile 43 ●●●●● patch | view | raw | blame | history
components/python/pytest-home/manifests/sample-manifest.p5m 39 ●●●●● patch | view | raw | blame | history
components/python/pytest-home/patches/01-no-ruff.patch 13 ●●●●● patch | view | raw | blame | history
components/python/pytest-home/pkg5 14 ●●●●● patch | view | raw | blame | history
components/python/pytest-home/pytest-home-PYVER.p5m 39 ●●●●● patch | view | raw | blame | history
components/python/pytest-home/python-integrate-project.conf 16 ●●●●● patch | view | raw | blame | history
components/python/pytest-home/test/results-all.master 29 ●●●●● patch | view | raw | blame | history
make-rules/setup.py.mk 1 ●●●● patch | view | raw | blame | history
components/python/pytest-home/Makefile
New file
@@ -0,0 +1,43 @@
#
# 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-home
#
BUILD_STYLE = pyproject
include ../../../make-rules/shared-macros.mk
COMPONENT_NAME =        pytest-home
HUMAN_VERSION =            0.5.1
COMPONENT_SUMMARY =        pytest-home - Home directory fixtures
COMPONENT_PROJECT_URL =        https://github.com/jaraco/pytest-home
COMPONENT_ARCHIVE_HASH =    \
    sha256:8e940e31e5f7682c31543df06b3b0044ccc5dbf82de6141c2147da3857c72719
COMPONENT_LICENSE =        MIT
COMPONENT_LICENSE_FILE =    LICENSE
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-scm
PYTHON_REQUIRED_PACKAGES += library/python/wheel
PYTHON_REQUIRED_PACKAGES += runtime/python
TEST_REQUIRED_PACKAGES.python += library/python/pytest
TEST_REQUIRED_PACKAGES.python += library/python/pytest-black
TEST_REQUIRED_PACKAGES.python += library/python/pytest-checkdocs
TEST_REQUIRED_PACKAGES.python += library/python/pytest-cov
TEST_REQUIRED_PACKAGES.python += library/python/pytest-enabler
TEST_REQUIRED_PACKAGES.python += library/python/pytest-mypy
components/python/pytest-home/manifests/sample-manifest.p5m
New file
@@ -0,0 +1,39 @@
#
# 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 <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_home-$(HUMAN_VERSION).dist-info/LICENSE
file path=usr/lib/python$(PYVER)/vendor-packages/pytest_home-$(HUMAN_VERSION).dist-info/METADATA
file path=usr/lib/python$(PYVER)/vendor-packages/pytest_home-$(HUMAN_VERSION).dist-info/WHEEL
file path=usr/lib/python$(PYVER)/vendor-packages/pytest_home-$(HUMAN_VERSION).dist-info/entry_points.txt
file path=usr/lib/python$(PYVER)/vendor-packages/pytest_home-$(HUMAN_VERSION).dist-info/top_level.txt
file path=usr/lib/python$(PYVER)/vendor-packages/pytest_home/__init__.py
file path=usr/lib/python$(PYVER)/vendor-packages/pytest_home/fixtures.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-home/patches/01-no-ruff.patch
New file
@@ -0,0 +1,13 @@
We have no pytest-ruff support yet.
see https://github.com/tikv/jemallocator/issues/58
--- pytest-home-0.5.1/setup.cfg.orig
+++ pytest-home-0.5.1/setup.cfg
@@ -36,7 +36,6 @@
     pytest-mypy >= 0.9.1; \
     python_implementation != "PyPy"
     pytest-enabler >= 2.2
-    pytest-ruff
 docs =
     sphinx >= 3.5
     sphinx < 7.2.5
components/python/pytest-home/pkg5
New file
@@ -0,0 +1,14 @@
{
    "dependencies": [
        "library/python/pytest-39",
        "library/python/setuptools-39",
        "library/python/setuptools-scm-39",
        "library/python/wheel-39",
        "runtime/python-39"
    ],
    "fmris": [
        "library/python/pytest-home",
        "library/python/pytest-home-39"
    ],
    "name": "pytest-home"
}
components/python/pytest-home/pytest-home-PYVER.p5m
New file
@@ -0,0 +1,39 @@
#
# 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_home-$(HUMAN_VERSION).dist-info/LICENSE
file path=usr/lib/python$(PYVER)/vendor-packages/pytest_home-$(HUMAN_VERSION).dist-info/METADATA
file path=usr/lib/python$(PYVER)/vendor-packages/pytest_home-$(HUMAN_VERSION).dist-info/WHEEL
file path=usr/lib/python$(PYVER)/vendor-packages/pytest_home-$(HUMAN_VERSION).dist-info/entry_points.txt
file path=usr/lib/python$(PYVER)/vendor-packages/pytest_home-$(HUMAN_VERSION).dist-info/top_level.txt
file path=usr/lib/python$(PYVER)/vendor-packages/pytest_home/__init__.py
file path=usr/lib/python$(PYVER)/vendor-packages/pytest_home/fixtures.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-home/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 2024 Marcel Telka
#
%patch% 01-no-ruff.patch
components/python/pytest-home/test/results-all.master
New file
@@ -0,0 +1,29 @@
py$(PYV): remove tox env folder $(@D)/.tox/py$(PYV)
py$(PYV): commands[0]> python -m pytest
============================= test session starts ==============================
platform sunos5 -- Python $(PYTHON_VERSION).X -- $(@D)/.tox/py$(PYV)/bin/python
cachedir: .tox/py$(PYV)/.pytest_cache
rootdir: $(@D)
configfile: pytest.ini
collecting ... collected 13 items
.::project PASSED
.::project PASSED
docs/conf.py::black PASSED
docs/conf.py::mypy PASSED
docs/conf.py::mypy-status PASSED
pytest_home/__init__.py::black PASSED
pytest_home/__init__.py::mypy PASSED
pytest_home/fixtures.py::black PASSED
pytest_home/fixtures.py::mypy PASSED
pytest_home/fixtures.py::pytest_home.fixtures.tmp_home_dir PASSED
tests/test_fixtures.py::black PASSED
tests/test_fixtures.py::mypy PASSED
tests/test_fixtures.py::test_git_no_config PASSED
===================================== mypy =====================================
Success: no issues found in 4 source files
======== 13 passed ========
  py$(PYV): OK
  congratulations :)
make-rules/setup.py.mk
@@ -439,6 +439,7 @@
$(eval $(call disable-pytest-plugin,metadata,pytest-metadata))        # adds line to test report header
$(eval $(call disable-pytest-plugin,mypy,pytest-mypy))            # runs extra test(s)
$(eval $(call disable-pytest-plugin,perf,pytest-perf))            # https://github.com/jaraco/pytest-perf/issues/9
$(eval $(call disable-pytest-plugin,pytest home,pytest-home))
$(eval $(call disable-pytest-plugin,pytest-datadir,pytest-datadir))
$(eval $(call disable-pytest-plugin,pytest-mypy-plugins,pytest-mypy-plugins))    # could cause tests to fail
$(eval $(call disable-pytest-plugin,pytest-teamcity,teamcity-messages))