dev-python/pyfakefs: Bump to 6.0.0

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny 2025-12-22 05:41:03 +01:00
parent 24ca0363ee
commit 59c7b3ea00
No known key found for this signature in database
GPG Key ID: 8E32347AF4055AE8
2 changed files with 61 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST pyfakefs-5.10.2.gh.tar.gz 257936 BLAKE2B bc6adfadd0d2adcb0f56d0e9c53db5003f0a128c2f877004cf629cc70e26865c424187a737423924178f8d189ff02aebef541df6302c171c7bceaf4be6af2fc7 SHA512 57a46f01ad2985884fe8b448c3625007bbf29689e42eb956788f5f213e9557e6d0964c0e9702e784a2dfe1bd73af90d5a9dad52dd3d0ac1c1f395ea90cef47f1
DIST pyfakefs-6.0.0.gh.tar.gz 255364 BLAKE2B 953b367fa95cbb2dccf3367de4ba6f768387d87bce2f6849b9cba4b269d52ad15f1facc12137be16095944fec9d863f6bb32aa0eeead27c97a4059e7b7d6b60e SHA512 49112c5f89843eace74ab2011b4ee1db1e5e100d3358950f4664ef3fb7f309fcef720e571e66e4b88d0997cb81f02b30c1063ac55a1877651e8aa9c3e7fa3ee4

View File

@ -0,0 +1,60 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..14} pypy3_11 )
inherit distutils-r1
DESCRIPTION="A fake file system that mocks the Python file system modules"
HOMEPAGE="
https://github.com/pytest-dev/pyfakefs/
https://pypi.org/project/pyfakefs/
"
SRC_URI="
https://github.com/pytest-dev/pyfakefs/archive/v${PV}.tar.gz
-> ${P}.gh.tar.gz
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
EPYTEST_PLUGINS=( "${PN}" )
distutils_enable_tests pytest
python_test() {
local EPYTEST_DESELECT=(
# requires *.dist-info/RECORD file that we're stripping
pyfakefs/tests/fake_filesystem_test.py::RealFileSystemAccessTest::test_add_package_metadata
# wants dev-python/openpyxl
pyfakefs/tests/patched_packages_test.py::TestPatchedPackages::test_read_excel
)
local EPYTEST_IGNORE=(
# test for regression with opentimelineio package
pyfakefs/pytest_tests/segfault_test.py
# test for regression with undefined package
pyfakefs/pytest_tests/pytest_fixture_test.py
)
if ! has_version "dev-python/pandas[${PYTHON_USEDEP}]"; then
EPYTEST_IGNORE+=(
pyfakefs/pytest_tests/pytest_reload_pandas_test.py
)
fi
case ${EPYTHON} in
pypy3.11)
EPYTEST_DESELECT+=(
# TODO: this test messes up everything
pyfakefs/tests/fake_filesystem_unittest_test.py::TestDeprecationSuppression::test_no_deprecation_warning
# TODO
pyfakefs/tests/fake_pathlib_test.py::SkipPathlibTest::test_exists
)
;;
esac
epytest
}