diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-05-24 06:27:39 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-05-24 08:15:32 +0200 |
commit | 015a196366fed7ce6167b71731dc051b467f17f5 (patch) | |
tree | 04262cb949179abe6ca6e8e8fb56e346b5383885 /dev-python/pyfakefs | |
parent | dev-python/openapi-schema-validator: New package, v0.2.3 (diff) | |
download | gentoo-015a196366fed7ce6167b71731dc051b467f17f5.tar.gz gentoo-015a196366fed7ce6167b71731dc051b467f17f5.tar.bz2 gentoo-015a196366fed7ce6167b71731dc051b467f17f5.zip |
dev-python/pyfakefs: Enable py3.11
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pyfakefs')
-rw-r--r-- | dev-python/pyfakefs/pyfakefs-4.5.6.ebuild | 29 |
1 files changed, 24 insertions, 5 deletions
diff --git a/dev-python/pyfakefs/pyfakefs-4.5.6.ebuild b/dev-python/pyfakefs/pyfakefs-4.5.6.ebuild index debf9ea93859..4e1d2e411cce 100644 --- a/dev-python/pyfakefs/pyfakefs-4.5.6.ebuild +++ b/dev-python/pyfakefs/pyfakefs-4.5.6.ebuild @@ -4,13 +4,19 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..10} pypy3 ) +PYTHON_COMPAT=( python3_{8..11} pypy3 ) inherit distutils-r1 DESCRIPTION="a fake file system that mocks the Python file system modules" -HOMEPAGE="https://github.com/jmcgeheeiv/pyfakefs/ https://pypi.org/project/pyfakefs/" -SRC_URI="https://github.com/jmcgeheeiv/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +HOMEPAGE=" + https://github.com/jmcgeheeiv/pyfakefs/ + https://pypi.org/project/pyfakefs/ +" +SRC_URI=" + https://github.com/jmcgeheeiv/${PN}/archive/v${PV}.tar.gz + -> ${P}.tar.gz +" LICENSE="Apache-2.0" SLOT="0" @@ -19,6 +25,19 @@ KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv distutils_enable_tests pytest python_test() { - "${EPYTHON}" -m pyfakefs.tests.all_tests -v || - die "tests failed under ${EPYTHON}" + local EPYTEST_DESELECT=() + + [[ ${EPYTHON} == python3.11 ]] && EPYTEST_DESELECT+=( + # known problem with the test suite + pyfakefs/tests/fake_filesystem_unittest_test.py::AdditionalSkipNamesModuleTest::test_fake_path_does_not_exist3 + pyfakefs/tests/fake_filesystem_unittest_test.py::AdditionalSkipNamesModuleTest::test_fake_path_does_not_exist7 + pyfakefs/tests/fake_filesystem_unittest_test.py::AdditionalSkipNamesTest::test_fake_path_does_not_exist3 + pyfakefs/tests/fake_filesystem_unittest_test.py::AdditionalSkipNamesTest::test_fake_path_does_not_exist7 + pyfakefs/tests/fake_pathlib_test.py::FakePathlibFileObjectPropertyTest + pyfakefs/tests/fake_pathlib_test.py::FakePathlibPathFileOperationTest + pyfakefs/tests/fake_pathlib_test.py::FakePathlibUsageInOsFunctionsTest::test_stat + pyfakefs/tests/fake_pathlib_test.py::FakePathlibUsageInOsFunctionsTest::test_stat_follow_symlinks + ) + + epytest } |