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/proto-plus/
Date: Tue, 08 Feb 2022 09:42:28
Message-Id: 1644313338.33d6750192f8b720151763060dfdac33d9b0a950.mgorny@gentoo
1 commit: 33d6750192f8b720151763060dfdac33d9b0a950
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 8 08:37:44 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 8 09:42:18 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33d67501
7
8 dev-python/proto-plus: Bump to 1.20.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/proto-plus/Manifest | 1 +
13 dev-python/proto-plus/proto-plus-1.20.0.ebuild | 42 ++++++++++++++++++++++++++
14 2 files changed, 43 insertions(+)
15
16 diff --git a/dev-python/proto-plus/Manifest b/dev-python/proto-plus/Manifest
17 index 01fdad8c9c9c..49d7eb3da03d 100644
18 --- a/dev-python/proto-plus/Manifest
19 +++ b/dev-python/proto-plus/Manifest
20 @@ -2,3 +2,4 @@ DIST proto-plus-1.19.2.gh.tar.gz 61183 BLAKE2B 8c1c0a70ae573fc8c64004e4bd923f403
21 DIST proto-plus-1.19.7.gh.tar.gz 64614 BLAKE2B 918bb04a084cff8a2188a68c31f08aebd25443fd399d69ba9734d002f773df2769904e4aa551cd1d93586ee4710f2b7160e6a8eb4160fe1bb846be18155a7b29 SHA512 118187a852a998deba3b5d7e700cd084eab966b549c7dba6150f318e9602f950a9533e27d775f9f0bca2fedaed6375b592bae42c55cf5aee8b52708fcc4691c8
22 DIST proto-plus-1.19.8.gh.tar.gz 64668 BLAKE2B d90ba4bd2404a0b05325e08e9ec39de0b819af00e9229ca54a7173364a99e0cedb584696093f3df7720d96f8291fad4f26b9963171de8ebd44396550dc932e17 SHA512 e9bd790ec7d2cc7fa54e5c8be374e4a7bc5c92899c5259e6985024fe1c9e25768c1355b808a9a4c38b132026412b2e7d91c5fe0098af661b1dac604b84aaf2ee
23 DIST proto-plus-1.19.9.gh.tar.gz 64845 BLAKE2B 82f6021b912140c49e8625c51050a384f8375a3619a78537f6aadded03ce7524687e8f118cd4081c9a8376b3756c608ed781cac9808fb2c8d0bad9e32d2063ec SHA512 671dad31faf33a81bc90d98ffac599b51930f1f4f17c10c9a1dd5f242b3c55d04b9e59080197cdd42c1c430a72e1e812aadafbcf20cfb5da2fcd17c20e5a69e3
24 +DIST proto-plus-1.20.0.gh.tar.gz 65648 BLAKE2B 19cfcfde913896de83d17c36bacd7799a9f28ea20c4681266b2194c6521aef116f6a594df8be8912bdf55558d84a0ab09d283ec444ba114592ebb7017db257fe SHA512 1e399bc0ac686f33242c1d15c15255ec1815e94eaf87de03e5145cc6ed249048c3b8af081b70964cb7b6baf8286f6be2f461c3638331a2269a5b2d89976ffa6a
25
26 diff --git a/dev-python/proto-plus/proto-plus-1.20.0.ebuild b/dev-python/proto-plus/proto-plus-1.20.0.ebuild
27 new file mode 100644
28 index 000000000000..228d58940454
29 --- /dev/null
30 +++ b/dev-python/proto-plus/proto-plus-1.20.0.ebuild
31 @@ -0,0 +1,42 @@
32 +# Copyright 2021-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +DISTUTILS_USE_PEP517=setuptools
38 +PYTHON_COMPAT=( python3_{8..9} )
39 +
40 +inherit distutils-r1
41 +
42 +DESCRIPTION="Beautiful, Pythonic protocol buffers"
43 +HOMEPAGE="https://pypi.org/project/proto-plus/ https://github.com/googleapis/proto-plus-python"
44 +SRC_URI="
45 + https://github.com/googleapis/proto-plus-python/archive/v${PV}.tar.gz
46 + -> ${P}.gh.tar.gz
47 +"
48 +S="${WORKDIR}/${PN}-python-${PV}"
49 +
50 +LICENSE="Apache-2.0"
51 +SLOT="0"
52 +KEYWORDS="~amd64 ~x86"
53 +
54 +RDEPEND="
55 + dev-python/protobuf-python[${PYTHON_USEDEP}]
56 +"
57 +BDEPEND="
58 + test? (
59 + dev-python/google-api-core[${PYTHON_USEDEP}]
60 + dev-python/grpcio[${PYTHON_USEDEP}]
61 + dev-python/pytz[${PYTHON_USEDEP}]
62 + )
63 +"
64 +
65 +distutils_enable_tests pytest
66 +distutils_enable_sphinx docs \
67 + dev-python/sphinx_rtd_theme
68 +
69 +src_prepare() {
70 + # https://github.com/pytest-dev/pytest/issues/9637#issuecomment-1031997415
71 + sed -i -e '/staticmethod/d' tests/test_datetime_helpers.py || die
72 + distutils-r1_src_prepare
73 +}