diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-10-24 22:03:31 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-10-24 23:11:25 +0200 |
commit | d718f7d7283d087492bb70f0c2d1c735e90e8e9d (patch) | |
tree | cc991dcc005dc2fdb0dbc5870929d091f3564bd6 /dev-python/openpyxl | |
parent | dev-python/blosc: Enable py3.12 (diff) | |
download | gentoo-d718f7d7283d087492bb70f0c2d1c735e90e8e9d.tar.gz gentoo-d718f7d7283d087492bb70f0c2d1c735e90e8e9d.tar.bz2 gentoo-d718f7d7283d087492bb70f0c2d1c735e90e8e9d.zip |
dev-python/openpyxl: Enable py3.12
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/openpyxl')
-rw-r--r-- | dev-python/openpyxl/openpyxl-3.1.2.ebuild | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/dev-python/openpyxl/openpyxl-3.1.2.ebuild b/dev-python/openpyxl/openpyxl-3.1.2.ebuild index 87683a115e1b..a0eef91dc8da 100644 --- a/dev-python/openpyxl/openpyxl-3.1.2.ebuild +++ b/dev-python/openpyxl/openpyxl-3.1.2.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9..11} ) +PYTHON_COMPAT=( python3_{10..12} ) inherit distutils-r1 @@ -34,3 +34,21 @@ BDEPEND=" distutils_enable_sphinx doc \ dev-python/sphinx-rtd-theme distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=() + + case ${EPYTHON} in + python3.12) + EPYTEST_DESELECT+=( + # deprecation warnings + openpyxl/reader/tests/test_workbook.py::TestWorkbookParser::test_broken_sheet_ref + openpyxl/reader/tests/test_workbook.py::TestWorkbookParser::test_defined_names_print_area + openpyxl/reader/tests/test_workbook.py::TestWorkbookParser::test_name_invalid_index + openpyxl/styles/tests/test_stylesheet.py::test_no_styles + ) + ;; + esac + + epytest +} |