Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/uvloop/
Date: Thu, 22 Sep 2022 14:05:15
Message-Id: 1663855509.a48bdab2b9a33d8c0ad9b26408b6b8a803282b40.mgorny@gentoo
1 commit: a48bdab2b9a33d8c0ad9b26408b6b8a803282b40
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 22 13:43:40 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 22 14:05:09 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a48bdab2
7
8 dev-python/uvloop: Bump to 0.17.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/uvloop/Manifest | 1 +
13 dev-python/uvloop/uvloop-0.17.0.ebuild | 82 ++++++++++++++++++++++++++++++++++
14 2 files changed, 83 insertions(+)
15
16 diff --git a/dev-python/uvloop/Manifest b/dev-python/uvloop/Manifest
17 index 0a77f108a5fa..a033afc048d9 100644
18 --- a/dev-python/uvloop/Manifest
19 +++ b/dev-python/uvloop/Manifest
20 @@ -1,2 +1,3 @@
21 DIST uvloop-0.15.3.tar.gz 2094066 BLAKE2B 77ae4634ee31211dba13f41aede4480d70271e042a30a1268e9ad18f5de2b296b84931fb6b2022d2351f33521a84264f74cbc30caa5ff84b0f429bc9f1d426a0 SHA512 5687371a13509bdac0ef7a5ca0f7c78b54d0d9225cbf68cebc6d4fdf3807c2e3346579f5440eb0ff6578088780cc5efb09fba114da0bc0e60ad3f607d9df652f
22 DIST uvloop-0.16.0.tar.gz 2129067 BLAKE2B 8a5a5c760b1036428483d2cf1f509784aa61cb69388720775c9555bdb0ce19341cb58fc051ab6f92066a3478acf729513dafafd79f31115b064bf1d3660479de SHA512 dd6dcec38f7f94dc0cf0123302fd6fe404428196b452a80a8258a207654e3f67e210233be3d649668c22b48390232d0347706b1d87fb50016287142c742b806d
23 +DIST uvloop-0.17.0.tar.gz 2279973 BLAKE2B 7ccbf3b8e723e36c1010a70e256de0ad1a9728fe10b3538e05c57157b16ea7e5369347c855cd1460e49f89197ebb05628c4b6fcd7e50c623b1aaa5890ac64b5f SHA512 861d7f28ad879ecbfa40d53b9626e38660f02618fd433edbd5a8ea5100a17ade042a26549def04bc23f928aca3adc83d62503f0548038cd400284f5654003ee4
24
25 diff --git a/dev-python/uvloop/uvloop-0.17.0.ebuild b/dev-python/uvloop/uvloop-0.17.0.ebuild
26 new file mode 100644
27 index 000000000000..0bb5e8c8a40a
28 --- /dev/null
29 +++ b/dev-python/uvloop/uvloop-0.17.0.ebuild
30 @@ -0,0 +1,82 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +DISTUTILS_USE_PEP517=setuptools
37 +PYTHON_COMPAT=( python3_{8..11} )
38 +
39 +inherit distutils-r1
40 +
41 +DESCRIPTION="Ultra-fast implementation of asyncio event loop on top of libuv"
42 +HOMEPAGE="
43 + https://github.com/magicstack/uvloop/
44 + https://pypi.org/project/uvloop/
45 +"
46 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
47 +
48 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 -riscv ~sparc ~x86"
49 +LICENSE="MIT"
50 +SLOT="0"
51 +IUSE="examples"
52 +
53 +DEPEND="
54 + >=dev-libs/libuv-1.11.0:=
55 +"
56 +RDEPEND="
57 + ${DEPEND}
58 +"
59 +BDEPEND="
60 + >=dev-python/cython-0.29.32[${PYTHON_USEDEP}]
61 + test? (
62 + dev-python/aiohttp[${PYTHON_USEDEP}]
63 + >=dev-python/pyopenssl-22.0.0[${PYTHON_USEDEP}]
64 + dev-python/psutil[${PYTHON_USEDEP}]
65 + )
66 +"
67 +
68 +distutils_enable_tests pytest
69 +
70 +python_prepare_all() {
71 + rm -r vendor || die
72 + cat <<-EOF >> setup.cfg || die
73 + [build_ext]
74 + use_system_libuv=True
75 + cython_always=True
76 + EOF
77 +
78 + # flake8 only
79 + #rm tests/test_sourcecode.py || die
80 + # force cythonization
81 + rm uvloop/loop.c || die
82 + # hangs
83 + #sed -i -e 's:test_remote_shutdown_receives_trailing_data:_&:' \
84 + # tests/test_tcp.py || die
85 +
86 + distutils-r1_python_prepare_all
87 +}
88 +
89 +python_test() {
90 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
91 + local EPYTEST_IGNORE=(
92 + # linting
93 + tests/test_sourcecode.py
94 + )
95 + local EPYTEST_DESELECT=(
96 + # TODO: expects some... cython_helper?
97 + tests/test_libuv_api.py::Test_UV_libuv::test_libuv_get_loop_t_ptr
98 + # unhappy about sandbox injecting its envvars
99 + tests/test_process.py::Test_UV_Process::test_process_env_2
100 + tests/test_process.py::Test_AIO_Process::test_process_env_2
101 + # hangs
102 + tests/test_tcp.py::Test_AIO_TCPSSL::test_remote_shutdown_receives_trailing_data
103 + )
104 +
105 + rm -rf uvloop || die
106 + epytest -s
107 +}
108 +
109 +python_install_all() {
110 + use examples && dodoc -r examples
111 + distutils-r1_python_install_all
112 +}