diff options
Diffstat (limited to 'dev-python/webassets')
| -rw-r--r-- | dev-python/webassets/files/webassets-2.0-python39.patch | 23 | ||||
| -rw-r--r-- | dev-python/webassets/webassets-2.0.ebuild | 9 |
2 files changed, 30 insertions, 2 deletions
diff --git a/dev-python/webassets/files/webassets-2.0-python39.patch b/dev-python/webassets/files/webassets-2.0-python39.patch new file mode 100644 index 000000000000..006c020469f4 --- /dev/null +++ b/dev-python/webassets/files/webassets-2.0-python39.patch @@ -0,0 +1,23 @@ +https://github.com/miracle2k/webassets/commit/a563935df6702ff5e38e5b84a262c295e4cdf455.patch +From a563935df6702ff5e38e5b84a262c295e4cdf455 Mon Sep 17 00:00:00 2001 +From: Karthikeyan Singaravelan <tir.karthi@gmail.com> +Date: Wed, 22 Jan 2020 00:49:31 +0530 +Subject: [PATCH] Use is_alive instead of isAlive for Python 3.9 compatibility. + +--- + tests/test_script.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/test_script.py b/tests/test_script.py +index a83bc07f..d17a83bb 100644 +--- a/tests/test_script.py ++++ b/tests/test_script.py +@@ -192,7 +192,7 @@ def start_watching(self): + + def stop_watching(self): + """Stop the watch command thread.""" +- assert self.t.isAlive() # If it has already ended, something is wrong ++ assert self.t.is_alive() # If it has already ended, something is wrong + self.stopped = True + self.t.join(1) + diff --git a/dev-python/webassets/webassets-2.0.ebuild b/dev-python/webassets/webassets-2.0.ebuild index 064a1386884d..bd550f88d1fc 100644 --- a/dev-python/webassets/webassets-2.0.ebuild +++ b/dev-python/webassets/webassets-2.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -24,7 +24,12 @@ BDEPEND=" dev-python/nose[${PYTHON_USEDEP}] dev-python/mock[${PYTHON_USEDEP}] !!dev-ruby/sass - )" + ) +" + +PATCHES=( + "${FILESDIR}/${PN}-2.0-python39.patch" +) distutils_enable_tests pytest |
