diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-08-03 19:43:40 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-08-03 19:43:40 +0000 |
| commit | 3c50ecca3971845886abd4204eb7384ceac1bd44 (patch) | |
| tree | 27d9d33b6071fa15daacb94b2dd660b8dfd9a576 /dev-python/dominate | |
| parent | 5291339a03139b0ddf6172abfcff58af76d115c1 (diff) | |
| download | baldeagleos-repo-3c50ecca3971845886abd4204eb7384ceac1bd44.tar.gz baldeagleos-repo-3c50ecca3971845886abd4204eb7384ceac1bd44.tar.xz baldeagleos-repo-3c50ecca3971845886abd4204eb7384ceac1bd44.zip | |
Adding metadata
Diffstat (limited to 'dev-python/dominate')
| -rw-r--r-- | dev-python/dominate/dominate-2.9.1.ebuild | 6 | ||||
| -rw-r--r-- | dev-python/dominate/files/dominate-2.9.1-py313.patch | 37 |
2 files changed, 42 insertions, 1 deletions
diff --git a/dev-python/dominate/dominate-2.9.1.ebuild b/dev-python/dominate/dominate-2.9.1.ebuild index 66472363bda9..ec445763fa9d 100644 --- a/dev-python/dominate/dominate-2.9.1.ebuild +++ b/dev-python/dominate/dominate-2.9.1.ebuild @@ -4,7 +4,6 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -# py3.13: https://github.com/Knio/dominate/issues/199 PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) inherit distutils-r1 pypi @@ -20,3 +19,8 @@ SLOT="0" KEYWORDS="amd64 arm64 x86" distutils_enable_tests pytest + +PATCHES=( + # https://github.com/Knio/dominate/pull/202 + "${FILESDIR}/${P}-py313.patch" +) diff --git a/dev-python/dominate/files/dominate-2.9.1-py313.patch b/dev-python/dominate/files/dominate-2.9.1-py313.patch new file mode 100644 index 000000000000..944ad8596336 --- /dev/null +++ b/dev-python/dominate/files/dominate-2.9.1-py313.patch @@ -0,0 +1,37 @@ +From 58f7d7fdb171f80ed6ce97e6ca4409723975c47f Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Sat, 3 Aug 2024 16:07:38 +0200 +Subject: [PATCH] Update tests for docstring dedenting in Python 3.13 + +Update the `get_expected()` function to account for the fact that +Python 3.13 automatically dedents all the docstrings, and therefore +does not require explicitly removing the indent (which effectively +removes too much indent). + +Fixes #199 +--- + tests/test_svg.py | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) + +diff --git a/tests/test_svg.py b/tests/test_svg.py +index e5bbec3..ea7d98f 100644 +--- a/tests/test_svg.py ++++ b/tests/test_svg.py +@@ -1,3 +1,5 @@ ++import sys ++ + import dominate.svg + from dominate.tags import * + from dominate.svg import * +@@ -14,7 +16,10 @@ def base(): + + + def get_expected(func): +- return func.__doc__.replace('\n ', '\n').strip() ++ doc = func.__doc__ ++ if sys.version_info < (3, 13): ++ doc = doc.replace('\n ', '\n') ++ return doc.strip() + + + def output_test(func): |
