Marcel Telka
2024-01-20 02f2ed7dcf245ca2f47223c57decacd69ed89934
python/pyfakefs: update to 5.3.4

1 files added
5 files modified
6969 ■■■■■ changed files
components/python/pyfakefs/Makefile 15 ●●●●● patch | view | raw | blame | history
components/python/pyfakefs/manifests/sample-manifest.p5m 2 ●●● patch | view | raw | blame | history
components/python/pyfakefs/patches/01-test-requirements.patch 18 ●●●●● patch | view | raw | blame | history
components/python/pyfakefs/pkg5 6 ●●●● patch | view | raw | blame | history
components/python/pyfakefs/python-integrate-project.conf 11 ●●●● patch | view | raw | blame | history
components/python/pyfakefs/test/results-all.master 6917 ●●●●● patch | view | raw | blame | history
components/python/pyfakefs/Makefile
@@ -19,26 +19,21 @@
include ../../../make-rules/shared-macros.mk
COMPONENT_NAME =        pyfakefs
HUMAN_VERSION =            5.3.2
HUMAN_VERSION =            5.3.4
COMPONENT_SUMMARY =        pyfakefs - pyfakefs implements a fake file system that mocks the Python file system modules.
COMPONENT_PROJECT_URL =        https://github.com/pytest-dev/pyfakefs
COMPONENT_ARCHIVE_URL =        \
    https://files.pythonhosted.org/packages/80/cb/af1d1c9075a3b1b8b663a9acb026c07ea6c0b6203b6c9d59836afb933b35/pyfakefs-5.3.2.tar.gz
    https://github.com/pytest-dev/pyfakefs/archive/refs/tags/v$(HUMAN_VERSION).tar.gz
COMPONENT_ARCHIVE_HASH =    \
    sha256:a83776a3c1046d4d103f2f530029aa6cdff5f0386dffd59c15ee16926135493c
    sha256:2c7103307fee0c29a80bbb1b4e4d7db370311f13f504b847a4acb9b79c2ac1d8
COMPONENT_LICENSE =        Apache-2.0
COMPONENT_LICENSE_FILE =    COPYING
TEST_STYLE = pytest
include $(WS_MAKE_RULES)/common.mk
# The following test file requires OpenTimelineIO.
# We have no OpenTimelineIO packaged yet.
COMPONENT_POST_UNPACK_ACTION += \
    $(RM) $(SOURCE_DIR)/pyfakefs/pytest_tests/segfault_test.py ;
# Auto-generated dependencies
PYTHON_REQUIRED_PACKAGES += library/python/setuptools
PYTHON_REQUIRED_PACKAGES += library/python/wheel
PYTHON_REQUIRED_PACKAGES += runtime/python
TEST_REQUIRED_PACKAGES.python += library/python/pathlib2
TEST_REQUIRED_PACKAGES.python += library/python/pytest
components/python/pyfakefs/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)
components/python/pyfakefs/patches/01-test-requirements.patch
New file
@@ -0,0 +1,18 @@
Remove optional test dependencies we do not have packaged yet.
--- pyfakefs-5.3.4/extra_requirements.txt.orig
+++ pyfakefs-5.3.4/extra_requirements.txt
@@ -8,13 +8,3 @@
 # Older versions might work ok, the versions chosen here are just the latest
 # available at the time of writing.
 pathlib2>=2.3.2
-scandir>=1.8
-
-# pandas + xlrd are used to test pandas-specific patches to allow
-# pyfakefs to work with pandas
-# we use the latest version to see any problems with new versions
-pandas==1.3.5; python_version == '3.7' # pyup: ignore
-pandas==2.0.3; python_version == '3.8' # pyup: ignore
-pandas==2.1.4; python_version > '3.8'
-xlrd==2.0.1
-openpyxl==3.1.2
components/python/pyfakefs/pkg5
@@ -5,8 +5,8 @@
        "runtime/python-39"
    ],
    "fmris": [
        "library/python/pyfakefs-39",
        "library/python/pyfakefs"
        "library/python/pyfakefs",
        "library/python/pyfakefs-39"
    ],
    "name": "pyfakefs"
}
}
components/python/pyfakefs/python-integrate-project.conf
@@ -13,8 +13,9 @@
# Copyright 2023 Marcel Telka
#
%include-3%
# The following test file requires OpenTimelineIO.
# We have no OpenTimelineIO packaged yet.
COMPONENT_POST_UNPACK_ACTION += \
    $(RM) $(SOURCE_DIR)/pyfakefs/pytest_tests/segfault_test.py ;
%patch% 01-test-requirements.patch
%hook-begin%
# https://github.com/pytest-dev/pyfakefs/issues/937
DOWNLOAD_URL='https://github.com/pytest-dev/pyfakefs/archive/refs/tags/v$(HUMAN_VERSION).tar.gz'
LICENSE_FILE='COPYING'
components/python/pyfakefs/test/results-all.master
Diff too large