commit:     d718f7d7283d087492bb70f0c2d1c735e90e8e9d
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 24 20:03:31 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Oct 24 21:11:25 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d718f7d7

dev-python/openpyxl: Enable py3.12

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/openpyxl/openpyxl-3.1.2.ebuild | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

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
+}

Reply via email to