[gentoo-commits] repo/proj/guru:dev commit in: dev-python/grpc-stubs/
commit: bae80fb4637f56f7710ae6e2bbb423c997902f0c Author: Julien Roy jroy ca> AuthorDate: Sat Apr 13 21:49:52 2024 + Commit: Julien Roy jroy ca> CommitDate: Sat Apr 13 22:15:22 2024 + URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bae80fb4 dev-python/grpc-stubs: enable py3.12 Signed-off-by: Julien Roy jroy.ca> dev-python/grpc-stubs/grpc-stubs-1.53.0.3.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev-python/grpc-stubs/grpc-stubs-1.53.0.3.ebuild b/dev-python/grpc-stubs/grpc-stubs-1.53.0.3.ebuild index 373d990529..510b7365ce 100644 --- a/dev-python/grpc-stubs/grpc-stubs-1.53.0.3.ebuild +++ b/dev-python/grpc-stubs/grpc-stubs-1.53.0.3.ebuild @@ -1,10 +1,10 @@ -# Copyright 2023 Gentoo Authors +# Copyright 2023-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_11 ) +PYTHON_COMPAT=( python3_{11..12} ) inherit distutils-r1 DESCRIPTION="gRPC typing stubs for Python"
[gentoo-commits] repo/proj/guru:dev commit in: dev-python/grpc-stubs/, dev-python/grpc-stubs/files/
commit: 36ee81ca0600fa60b7d013af68b348ed39a62616 Author: Lucio Sauer posteo net> AuthorDate: Mon Oct 2 23:44:14 2023 + Commit: Lucio Sauer posteo net> CommitDate: Mon Oct 2 23:54:25 2023 + URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=36ee81ca dev-python/grpc-stubs: add 1.53.0.3 Signed-off-by: Lucio Sauer posteo.net> dev-python/grpc-stubs/Manifest | 1 + ...grpc-stubs-1.53.0.3-die-on-missing-import.patch | 12 +++ dev-python/grpc-stubs/grpc-stubs-1.53.0.3.ebuild | 40 ++ 3 files changed, 53 insertions(+) diff --git a/dev-python/grpc-stubs/Manifest b/dev-python/grpc-stubs/Manifest index 1e5e0b65ab..2ff0d2045c 100644 --- a/dev-python/grpc-stubs/Manifest +++ b/dev-python/grpc-stubs/Manifest @@ -1 +1,2 @@ DIST grpc-stubs-1.53.0.2.gh.tar.gz 14607 BLAKE2B a18f17d1fe31133f7bafb4728b1748537db11b5d11f7da9364fb595c86afcfb47199d069e7eb3e05b89b92757b1080dfd443d0ee2006e85e49c75e5ad188e41a SHA512 ea8343231d12a34927bab56ddfdad69233c4e09502cd072db9ed21ec79726a600e9dc31a0b3ecbae47ea5f4357ddb0840e022fb385f6e1296665406254c59fba +DIST grpc-stubs-1.53.0.3.gh.tar.gz 14667 BLAKE2B 58f1ff46f6e4ad96fafa7583158e8a3be1ac5fc991f50dde34899fad919fbfb46afe5da8846aa7ef98cdc4de34609ee93a06d137630d505460d34ecaa3a47837 SHA512 dbcf9882b4ad986bcf17ed613c233cfd889d46340b91534d9ef33a11e1ce25db5e81a747c57b55a1e174012c81da94d29769706a1b3932ca13b020506235ccbd diff --git a/dev-python/grpc-stubs/files/grpc-stubs-1.53.0.3-die-on-missing-import.patch b/dev-python/grpc-stubs/files/grpc-stubs-1.53.0.3-die-on-missing-import.patch new file mode 100644 index 00..7b7a8e9f0b --- /dev/null +++ b/dev-python/grpc-stubs/files/grpc-stubs-1.53.0.3-die-on-missing-import.patch @@ -0,0 +1,12 @@ +Tests should fail if mypy fails to find the stubs that are to be tested. +--- a/setup.cfg b/setup.cfg +@@ -1,7 +1,7 @@ + [mypy] + check_untyped_defs = True + ignore_errors = False +-ignore_missing_imports = True ++ignore_missing_imports = False + strict_optional = True + no_error_summary = True + no_color_output = True diff --git a/dev-python/grpc-stubs/grpc-stubs-1.53.0.3.ebuild b/dev-python/grpc-stubs/grpc-stubs-1.53.0.3.ebuild new file mode 100644 index 00..373d990529 --- /dev/null +++ b/dev-python/grpc-stubs/grpc-stubs-1.53.0.3.ebuild @@ -0,0 +1,40 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_11 ) +inherit distutils-r1 + +DESCRIPTION="gRPC typing stubs for Python" +HOMEPAGE=" + https://pypi.org/project/grpc-stubs/ + https://github.com/shabbyrobe/grpc-stubs/ +" + +SRC_URI="https://github.com/shabbyrobe/grpc-stubs/archive/refs/tags/${PV}.tar.gz + -> ${P}.gh.tar.gz" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +RDEPEND="dev-python/types-protobuf[${PYTHON_USEDEP}]" +BDEPEND="test? ( + dev-python/pytest-mypy-plugins[${PYTHON_USEDEP}] + ${RDEPEND} + )" + +distutils_enable_tests pytest + +PATCHES="${FILESDIR}/"${P}-die-on-missing-import.patch + +python_test() { + # Gentoo's PEP 517 mode runs tests in a venv-like environment. + # Pytest-mypy-plugins checks the PATH for mypy, we provide a venv-aware + # variant. + printf "#!/bin/bash\n $(which python) -m mypy \$@" > \ +"${BUILD_DIR}"/install/usr/bin/mypy || die + chmod +x "${BUILD_DIR}"/install/usr/bin/mypy || die + epytest --mypy-ini-file=setup.cfg + rm "${BUILD_DIR}"/install/usr/bin/mypy || die +}
[gentoo-commits] repo/proj/guru:dev commit in: dev-python/grpc-stubs/
commit: 2c4be3a5c967a55e9d84e55d53db340d1d522e33 Author: Lucio Sauer posteo net> AuthorDate: Mon Oct 2 23:44:45 2023 + Commit: Lucio Sauer posteo net> CommitDate: Mon Oct 2 23:54:29 2023 + URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2c4be3a5 dev-python/grpc-stubs: drop 1.53.0.2 Signed-off-by: Lucio Sauer posteo.net> dev-python/grpc-stubs/Manifest | 1 - dev-python/grpc-stubs/grpc-stubs-1.53.0.2.ebuild | 37 2 files changed, 38 deletions(-) diff --git a/dev-python/grpc-stubs/Manifest b/dev-python/grpc-stubs/Manifest index 2ff0d2045c..563d498fc0 100644 --- a/dev-python/grpc-stubs/Manifest +++ b/dev-python/grpc-stubs/Manifest @@ -1,2 +1 @@ -DIST grpc-stubs-1.53.0.2.gh.tar.gz 14607 BLAKE2B a18f17d1fe31133f7bafb4728b1748537db11b5d11f7da9364fb595c86afcfb47199d069e7eb3e05b89b92757b1080dfd443d0ee2006e85e49c75e5ad188e41a SHA512 ea8343231d12a34927bab56ddfdad69233c4e09502cd072db9ed21ec79726a600e9dc31a0b3ecbae47ea5f4357ddb0840e022fb385f6e1296665406254c59fba DIST grpc-stubs-1.53.0.3.gh.tar.gz 14667 BLAKE2B 58f1ff46f6e4ad96fafa7583158e8a3be1ac5fc991f50dde34899fad919fbfb46afe5da8846aa7ef98cdc4de34609ee93a06d137630d505460d34ecaa3a47837 SHA512 dbcf9882b4ad986bcf17ed613c233cfd889d46340b91534d9ef33a11e1ce25db5e81a747c57b55a1e174012c81da94d29769706a1b3932ca13b020506235ccbd diff --git a/dev-python/grpc-stubs/grpc-stubs-1.53.0.2.ebuild b/dev-python/grpc-stubs/grpc-stubs-1.53.0.2.ebuild deleted file mode 100644 index 1b9fbdd659..00 --- a/dev-python/grpc-stubs/grpc-stubs-1.53.0.2.ebuild +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright 2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_11 ) -inherit distutils-r1 - -DESCRIPTION="gRPC typing stubs for Python" -HOMEPAGE=" - https://pypi.org/project/grpc-stubs/ - https://github.com/shabbyrobe/grpc-stubs/ -" - -SRC_URI="https://github.com/shabbyrobe/grpc-stubs/archive/refs/tags/${PV}.tar.gz - -> ${P}.gh.tar.gz" -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64" - -RDEPEND=" - dev-python/grpcio[${PYTHON_USEDEP}] - dev-python/protobuf-python[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - dev-python/mypy[${PYTHON_USEDEP}] - dev-python/pytest-mypy-plugins[${PYTHON_USEDEP}] - dev-python/types-protobuf[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest - -python_test() { - epytest --mypy-ini-file=setup.cfg -}
[gentoo-commits] repo/proj/guru:dev commit in: dev-python/grpc-stubs/, dev-python/types-protobuf/, ...
commit: 1957eacaed28073cb91b5456edfdb18eadf53069 Author: Lucio Sauer posteo net> AuthorDate: Mon May 22 04:26:32 2023 + Commit: Lucio Sauer posteo net> CommitDate: Mon May 22 04:26:32 2023 + URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1957eaca dev-python/*: remove proxy-maint from metadata.xml Signed-off-by: Lucio Sauer posteo.net> dev-python/grpc-stubs/metadata.xml | 4 dev-python/pytest-mypy-plugins/metadata.xml | 4 dev-python/types-protobuf/metadata.xml | 4 3 files changed, 12 deletions(-) diff --git a/dev-python/grpc-stubs/metadata.xml b/dev-python/grpc-stubs/metadata.xml index 668cc18f5..9a74fffcc 100644 --- a/dev-python/grpc-stubs/metadata.xml +++ b/dev-python/grpc-stubs/metadata.xml @@ -5,10 +5,6 @@ watermanpa...@posteo.net Lucio Sauer - -proxy-ma...@gentoo.org -Proxy Maintainers - shabbyrobe/grpc-stubs grpc-stubs diff --git a/dev-python/pytest-mypy-plugins/metadata.xml b/dev-python/pytest-mypy-plugins/metadata.xml index e6717ac2f..3da79fbbd 100644 --- a/dev-python/pytest-mypy-plugins/metadata.xml +++ b/dev-python/pytest-mypy-plugins/metadata.xml @@ -5,10 +5,6 @@ watermanpa...@posteo.net Lucio Sauer - -proxy-ma...@gentoo.org -Proxy Maintainers - https://github.com/typeddjango/pytest-mypy-plugins/blob/master/CHANGELOG.md diff --git a/dev-python/types-protobuf/metadata.xml b/dev-python/types-protobuf/metadata.xml index 9babd5615..99f1d590c 100644 --- a/dev-python/types-protobuf/metadata.xml +++ b/dev-python/types-protobuf/metadata.xml @@ -5,10 +5,6 @@ watermanpa...@posteo.net Lucio Sauer - -proxy-ma...@gentoo.org -Proxy Maintainers - python/typeshed types-protobuf
[gentoo-commits] repo/proj/guru:dev commit in: dev-python/grpc-stubs/
commit: 978ae5c140ea5185be9cfe0e78fd6cee4f837d9e Author: Lucio Sauer posteo net> AuthorDate: Mon May 22 00:44:06 2023 + Commit: Lucio Sauer posteo net> CommitDate: Mon May 22 00:44:42 2023 + URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=978ae5c1 dev-python/grpc-stubs: new package, add 1.53.0.2 Signed-off-by: Lucio Sauer posteo.net> dev-python/grpc-stubs/Manifest | 1 + dev-python/grpc-stubs/grpc-stubs-1.53.0.2.ebuild | 37 dev-python/grpc-stubs/metadata.xml | 16 ++ 3 files changed, 54 insertions(+) diff --git a/dev-python/grpc-stubs/Manifest b/dev-python/grpc-stubs/Manifest new file mode 100644 index 0..1e5e0b65a --- /dev/null +++ b/dev-python/grpc-stubs/Manifest @@ -0,0 +1 @@ +DIST grpc-stubs-1.53.0.2.gh.tar.gz 14607 BLAKE2B a18f17d1fe31133f7bafb4728b1748537db11b5d11f7da9364fb595c86afcfb47199d069e7eb3e05b89b92757b1080dfd443d0ee2006e85e49c75e5ad188e41a SHA512 ea8343231d12a34927bab56ddfdad69233c4e09502cd072db9ed21ec79726a600e9dc31a0b3ecbae47ea5f4357ddb0840e022fb385f6e1296665406254c59fba diff --git a/dev-python/grpc-stubs/grpc-stubs-1.53.0.2.ebuild b/dev-python/grpc-stubs/grpc-stubs-1.53.0.2.ebuild new file mode 100644 index 0..1b9fbdd65 --- /dev/null +++ b/dev-python/grpc-stubs/grpc-stubs-1.53.0.2.ebuild @@ -0,0 +1,37 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_11 ) +inherit distutils-r1 + +DESCRIPTION="gRPC typing stubs for Python" +HOMEPAGE=" + https://pypi.org/project/grpc-stubs/ + https://github.com/shabbyrobe/grpc-stubs/ +" + +SRC_URI="https://github.com/shabbyrobe/grpc-stubs/archive/refs/tags/${PV}.tar.gz + -> ${P}.gh.tar.gz" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/grpcio[${PYTHON_USEDEP}] + dev-python/protobuf-python[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/mypy[${PYTHON_USEDEP}] + dev-python/pytest-mypy-plugins[${PYTHON_USEDEP}] + dev-python/types-protobuf[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + epytest --mypy-ini-file=setup.cfg +} diff --git a/dev-python/grpc-stubs/metadata.xml b/dev-python/grpc-stubs/metadata.xml new file mode 100644 index 0..668cc18f5 --- /dev/null +++ b/dev-python/grpc-stubs/metadata.xml @@ -0,0 +1,16 @@ + +https://www.gentoo.org/dtd/metadata.dtd;> + + +watermanpa...@posteo.net +Lucio Sauer + + +proxy-ma...@gentoo.org +Proxy Maintainers + + +shabbyrobe/grpc-stubs +grpc-stubs + +