commit:     4909e091bf283b113e54588aa568110ba8048ad7
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 29 00:56:16 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Mar 29 00:56:22 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4909e091

dev-embedded/platformio: loosen starlette, uvicorn deps

Tests pass.

Closes: https://bugs.gentoo.org/888427
Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...tformio-6.1.6.ebuild => platformio-6.1.6-r1.ebuild} | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/dev-embedded/platformio/platformio-6.1.6.ebuild 
b/dev-embedded/platformio/platformio-6.1.6-r1.ebuild
similarity index 89%
rename from dev-embedded/platformio/platformio-6.1.6.ebuild
rename to dev-embedded/platformio/platformio-6.1.6-r1.ebuild
index 6c0dd8fa4f4b..27e962933b2c 100644
--- a/dev-embedded/platformio/platformio-6.1.6.ebuild
+++ b/dev-embedded/platformio/platformio-6.1.6-r1.ebuild
@@ -36,8 +36,8 @@ RDEPEND="
                >=dev-python/pyelftools-0.27[${PYTHON_USEDEP}]
                <dev-python/pyelftools-1[${PYTHON_USEDEP}]
                =dev-python/marshmallow-3*[${PYTHON_USEDEP}]
-               =dev-python/starlette-0.21*[${PYTHON_USEDEP}]
-               =dev-python/uvicorn-0.19*[${PYTHON_USEDEP}]
+               >=dev-python/starlette-0.21[${PYTHON_USEDEP}]
+               >=dev-python/uvicorn-0.19[${PYTHON_USEDEP}]
                dev-python/wsproto[${PYTHON_USEDEP}]
        ')
        virtual/udev"
@@ -82,17 +82,21 @@ EPYTEST_DESELECT=(
 
 distutils_enable_tests pytest
 
-src_prepare() {
-       # Allow newer versions of zeroconf, Bug #831181.
-       # Also wsproto.
-       # ... and semantic_version, bug #853247.
+python_prepare_all() {
+       # Allow newer versions of:
+       # - zeroconf, bug #831181.
+       # - wsproto
+       # - semantic_version, bug #853247
+       # - starlette & uvicorn, bug #888427
        sed \
                -e '/zeroconf/s/<[0-9.*]*//' \
                -e '/wsproto/s/==.*/"/' \
                -e '/semantic_version/s/==[0-9.*]*//' \
+               -e '/starlette/s/==.*/"/' \
+               -e '/uvicorn/s/==.*/"/' \
                -i setup.py || die
 
-       default
+       distutils-r1_python_prepare_all
 }
 
 python_test() {

Reply via email to