Marcel Telka
2023-12-24 3380cb9c13ec2c61e4a919eec3e147dcfc013eac
python/pytest-enabler: update to 3.0.0

1 files deleted
1 files added
6 files modified
82 ■■■■■ changed files
components/python/pytest-enabler/Makefile 19 ●●●● patch | view | raw | blame | history
components/python/pytest-enabler/history 2 ●●● patch | view | raw | blame | history
components/python/pytest-enabler/patches/01-no-ruff.patch 10 ●●●● patch | view | raw | blame | history
components/python/pytest-enabler/patches/02-no-pytest-enabler.patch 12 ●●●●● patch | view | raw | blame | history
components/python/pytest-enabler/patches/02-no-xdist.patch 13 ●●●●● patch | view | raw | blame | history
components/python/pytest-enabler/python-integrate-project.conf 14 ●●●●● patch | view | raw | blame | history
components/python/pytest-enabler/test/results-all.master 10 ●●●● patch | view | raw | blame | history
make-rules/setup.py.mk 2 ●●● patch | view | raw | blame | history
components/python/pytest-enabler/Makefile
@@ -19,26 +19,15 @@
include ../../../make-rules/shared-macros.mk
COMPONENT_NAME =        pytest-enabler
HUMAN_VERSION =            2.3.1
HUMAN_VERSION =            3.0.0
COMPONENT_SUMMARY =        pytest-enabler - Enable installed pytest plugins
COMPONENT_PROJECT_URL =        https://github.com/jaraco/pytest-enabler
COMPONENT_ARCHIVE_URL =        \
    https://files.pythonhosted.org/packages/bd/08/3a9516eeb3f8c8bd393347ad82688150d2a1e753edf1bc1565101ed0cd38/pytest-enabler-2.3.1.tar.gz
    https://files.pythonhosted.org/packages/93/d8/f0032af0f705b9141c2baceb09275262a2b145de8be969a5374ffa15bcdc/pytest-enabler-3.0.0.tar.gz
COMPONENT_ARCHIVE_HASH =    \
    sha256:0b1afe2adcbc89f2425049ded0e6cb38c2952a88b14fed5d2cb1afd8a397b6f9
    sha256:62376d2fdae65ee967849fa3586f8ce68506988e94c64030c8ff2b038d6422c5
COMPONENT_LICENSE =        MIT
COMPONENT_LICENSE_FILE =    LICENSE
#
# Following dependency loops were detected (where 'A --> B' means 'A needs B to
# run tests', and 'A ==> B' means 'A needs B for build and/or run'):
#
# pytest-enabler --> pytest-enabler
#
# To break loops we need to allow this project to integrate without testing in
# a case the required projects are not available yet (bootstrap).
#
PYTHON_TEST_BOOTSTRAP = yes
include $(WS_MAKE_RULES)/common.mk
@@ -52,9 +41,7 @@
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
TEST_REQUIRED_PACKAGES.python += library/python/types-toml
components/python/pytest-enabler/history
@@ -1 +1 @@
library/python/pytest-enabler-37@2.2.0,5.11-2023.0.0.1 noincorporate
library/python/pytest-enabler-37@2.2.0,5.11-2023.0.0.2
components/python/pytest-enabler/patches/01-no-ruff.patch
@@ -1,13 +1,13 @@
We have no pytest-ruff support yet.
see https://github.com/tikv/jemallocator/issues/58
--- pytest-enabler-2.3.1/setup.cfg.orig
+++ pytest-enabler-2.3.1/setup.cfg
@@ -40,7 +40,6 @@
     pytest-mypy >= 0.9.1; \
--- pytest-enabler-3.0.0/setup.cfg.orig
+++ pytest-enabler-3.0.0/setup.cfg
@@ -38,7 +38,6 @@
     pytest-mypy; \
     python_implementation != "PyPy"
     pytest-enabler >= 2.2
-    pytest-ruff
-    pytest-ruff >= 0.2.1
     
     types-toml
 docs = 
components/python/pytest-enabler/patches/02-no-pytest-enabler.patch
New file
@@ -0,0 +1,12 @@
https://github.com/jaraco/pytest-enabler/issues/14
--- pytest-enabler-3.0.0/setup.cfg.orig
+++ pytest-enabler-3.0.0/setup.cfg
@@ -37,7 +37,6 @@
     pytest-cov
     pytest-mypy; \
     python_implementation != "PyPy"
-    pytest-enabler >= 2.2
     types-toml
 docs =
components/python/pytest-enabler/patches/02-no-xdist.patch
File was deleted
components/python/pytest-enabler/python-integrate-project.conf
@@ -14,16 +14,4 @@
#
%patch% 01-no-ruff.patch
%patch% 02-no-xdist.patch
%include-2%
#
# Following dependency loops were detected (where 'A --> B' means 'A needs B to
# run tests', and 'A ==> B' means 'A needs B for build and/or run'):
#
# pytest-enabler --> pytest-enabler
#
# To break loops we need to allow this project to integrate without testing in
# a case the required projects are not available yet (bootstrap).
#
PYTHON_TEST_BOOTSTRAP = yes
%patch% 02-no-pytest-enabler.patch
components/python/pytest-enabler/test/results-all.master
@@ -1,23 +1,17 @@
ROOT: tox-gh-actions won't override envlist because tox is not running in GitHub Actions
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
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$(@D)/.hypothesis/examples')
rootdir: $(@D)
configfile: pytest.ini
asyncio: mode=strict
collecting ... collected 15 items
collecting ... collected 12 items
::project PASSED
docs/conf.py::BLACK PASSED
docs/conf.py::mypy PASSED
docs/conf.py::mypy-status PASSED
pytest_enabler/__init__.py::BLACK PASSED
pytest_enabler/__init__.py::mypy PASSED
pytest_enabler/__init__.py::pytest_enabler.none_as_empty PASSED
tests/test_enabler.py::BLACK PASSED
tests/test_enabler.py::mypy PASSED
tests/test_enabler.py::test_coverage_explicit PASSED
tests/test_enabler.py::test_pytest_addoption_default PASSED
@@ -28,6 +22,6 @@
===================================== mypy =====================================
Success: no issues found in 3 source files
======== 14 passed ========
======== 11 passed ========
  py$(PYV): OK
  congratulations :)
make-rules/setup.py.mk
@@ -425,6 +425,7 @@
$(eval $(call disable-pytest-plugin,console-scripts,pytest-console-scripts))
$(eval $(call disable-pytest-plugin,cov,pytest-cov))
$(eval $(call disable-pytest-plugin,custom_exit_code,pytest-custom-exit-code))
$(eval $(call disable-pytest-plugin,enabler,pytest-enabler))
$(eval $(call disable-pytest-plugin,env,pytest-env))
$(eval $(call disable-pytest-plugin,faker,faker))
$(eval $(call disable-pytest-plugin,flake8,pytest-flake8))
@@ -439,7 +440,6 @@
$(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,plugin-enabled options,pytest-enabler))
$(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))