From a3e97dc05f13b264e7c2142a50d2cdd24abdc174 Mon Sep 17 00:00:00 2001 From: icp Date: Sat, 26 Nov 2022 12:34:43 +0530 Subject: [PATCH 1/6] New package: python3-pytest-localserver-0.7.0 --- srcpkgs/python3-pytest-localserver/template | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 srcpkgs/python3-pytest-localserver/template diff --git a/srcpkgs/python3-pytest-localserver/template b/srcpkgs/python3-pytest-localserver/template new file mode 100644 index 000000000000..f25715c3ed17 --- /dev/null +++ b/srcpkgs/python3-pytest-localserver/template @@ -0,0 +1,19 @@ +# Template file for 'python3-pytest-localserver' +pkgname=python3-pytest-localserver +version=0.7.0 +revision=1 +build_style=python3-module +hostmakedepends="python3-setuptools_scm" +depends="python3-Werkzeug" +checkdepends="${depends} python3-requests python3-pytest-xdist" +short_desc="Pytest plugin to test server connections locally" +maintainer="icp " +license="MIT" +homepage="https://pypi.org/project/pytest-localserver/" +changelog="https://raw.githubusercontent.com/pytest-dev/pytest-localserver/master/CHANGES" +distfiles="${PYPI_SITE}/p/pytest-localserver/pytest-localserver-${version}.tar.gz" +checksum=f19b490c7ca1ed05bfe4bc6b490811805a61e7271f0424d3c0fa4d43893a5dcd + +post_install() { + vlicense LICENSE +} From 87b1695eea9dffae1082e03421ea46dcfe6a164b Mon Sep 17 00:00:00 2001 From: icp Date: Sat, 26 Nov 2022 12:34:51 +0530 Subject: [PATCH 2/6] python3-google-auth: update to 2.15.0. --- srcpkgs/python3-google-auth/template | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/srcpkgs/python3-google-auth/template b/srcpkgs/python3-google-auth/template index 3997ef4501b8..825f594e836e 100644 --- a/srcpkgs/python3-google-auth/template +++ b/srcpkgs/python3-google-auth/template @@ -1,15 +1,18 @@ # Template file for 'python3-google-auth' pkgname=python3-google-auth -version=1.28.0 -revision=3 +version=2.15.0 +revision=1 build_style=python3-module +make_check_args="--ignore=tests/oauth2/test_challenges.py" hostmakedepends="python3-setuptools" depends="python3-pyasn1-modules python3-rsa python3-six python3-cachetools" +checkdepends="${depends} python3-Flask python3-freezegun python3-mock python3-oauth2client + python3-openssl python3-pytest-localserver python3-requests python3-urllib3 python3-cryptography + python3-responses python3-grpcio python3-certifi python3-pytest-xdist" short_desc="Google Authentication Library (Python3)" maintainer="Orphaned " license="Apache-2.0" -homepage="https://github.com/GoogleCloudPlatform/google-auth-library-python" +homepage="https://googleapis.dev/python/google-auth/latest/index.html" +changelog="https://raw.githubusercontent.com/googleapis/google-auth-library-python/main/CHANGELOG.md" distfiles="${PYPI_SITE}/g/google-auth/google-auth-${version}.tar.gz" -checksum=9bd436d19ab047001a1340720d2b629eb96dd503258c524921ec2af3ee88a80e -# all tests require many optional dependencies -make_check=no +checksum=72f12a6cfc968d754d7bdab369c5c5c16032106e52d32c6dfd8484e4c01a6d1f From 0e56d4fc41e71d6ad79e7ba78c4223dce628a2a0 Mon Sep 17 00:00:00 2001 From: icp Date: Tue, 25 Oct 2022 01:29:34 +0530 Subject: [PATCH 3/6] python3-google-auth-oauthlib: update to 0.8.0. --- srcpkgs/python3-google-auth-oauthlib/template | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/srcpkgs/python3-google-auth-oauthlib/template b/srcpkgs/python3-google-auth-oauthlib/template index 366133b6ba86..7ac019f65a58 100644 --- a/srcpkgs/python3-google-auth-oauthlib/template +++ b/srcpkgs/python3-google-auth-oauthlib/template @@ -1,7 +1,7 @@ # Template file for 'python3-google-auth-oauthlib' pkgname=python3-google-auth-oauthlib -version=0.5.3 -revision=2 +version=0.8.0 +revision=1 build_style=python3-module make_check_args="--deselect tests/unit/test_flow.py::TestInstalledAppFlow::test_run_local_server_bind_addr" hostmakedepends="python3-setuptools" @@ -10,7 +10,7 @@ checkdepends="${depends} python3-click python3-mock python3-pytest-xdist" short_desc="Oauthlib integration for Google Auth" maintainer="icp " license="Apache-2.0" -homepage="https://github.com/googleapis/google-auth-library-python-oauthlib" +homepage="https://googleapis.dev/python/google-auth-oauthlib/latest/index.html" changelog="https://raw.githubusercontent.com/googleapis/google-auth-library-python-oauthlib/main/CHANGELOG.md" -distfiles="https://github.com/googleapis/google-auth-library-python-oauthlib/archive/refs/tags/v${version}.tar.gz" -checksum=7fe8591eac00bfc0eecc8407e210741576566c7771927a4ee08b48fb84205473 +distfiles="${PYPI_SITE}/g/google-auth-oauthlib/google-auth-oauthlib-${version}.tar.gz" +checksum=81056a310fb1c4a3e5a7e1a443e1eb96593c6bbc55b26c0261e4d3295d3e6593 From 0a2ce2a8b366826d3aedb9ae908d939a3fb0668d Mon Sep 17 00:00:00 2001 From: icp Date: Sat, 26 Nov 2022 13:31:14 +0530 Subject: [PATCH 4/6] python3-googleapis-common-protos: update to 1.57.0. --- srcpkgs/python3-googleapis-common-protos/template | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/srcpkgs/python3-googleapis-common-protos/template b/srcpkgs/python3-googleapis-common-protos/template index 787b5bc0b6aa..914c43f14a3f 100644 --- a/srcpkgs/python3-googleapis-common-protos/template +++ b/srcpkgs/python3-googleapis-common-protos/template @@ -1,19 +1,18 @@ # Template file for 'python3-googleapis-common-protos' pkgname=python3-googleapis-common-protos -version=1.53.0 -revision=3 +version=1.57.0 +revision=1 build_style=python3-module hostmakedepends="python3-setuptools" depends="python3-protobuf" -checkdepends="python3-protobuf python3-six" +checkdepends="${depends} python3-grpcio python3-mock python3-pytest-xdist" short_desc="Common protobufs used in Google APIs (Python3)" maintainer="Orphaned " license="Apache-2.0" -homepage="https://github.com/googleapis/googleapis" +homepage="https://pypi.org/project/googleapis-common-protos/" +changelog="https://raw.githubusercontent.com/googleapis/python-api-common-protos/v1.57.0/CHANGELOG.md" distfiles="${PYPI_SITE}/g/googleapis-common-protos/googleapis-common-protos-${version}.tar.gz" -checksum=a88ee8903aa0a81f6c3cec2d5cf62d3c8aa67c06439b0496b49048fb1854ebf4 -# testing requires many optional dependencies -make_check=no +checksum=27a849d6205838fb6cc3c1c21cb9800707a661bb21c6ce7fb13e99eb1f8a0c46 post_install() { chmod -R +r "${DESTDIR}/${py3_sitelib}" From a1fde9868837c44a9c38f48a0bab4e547884cb9d Mon Sep 17 00:00:00 2001 From: icp Date: Sat, 26 Nov 2022 21:22:18 +0530 Subject: [PATCH 5/6] python3-google-api-core: update to 2.11.0. --- srcpkgs/python3-google-api-core/template | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/srcpkgs/python3-google-api-core/template b/srcpkgs/python3-google-api-core/template index dfc366881661..4f4a42b98efd 100644 --- a/srcpkgs/python3-google-api-core/template +++ b/srcpkgs/python3-google-api-core/template @@ -1,17 +1,17 @@ # Template file for 'python3-google-api-core' pkgname=python3-google-api-core -version=1.26.2 -revision=3 +version=2.11.0 +revision=1 build_style=python3-module hostmakedepends="python3-setuptools" depends="python3-googleapis-common-protos python3-protobuf python3-google-auth - python3-requests python3-six python3-pytz" -checkdepends="$depends python3-mock python3-pytest" + python3-requests" short_desc="Google API client core library for Python3" maintainer="Orphaned " license="Apache-2.0" -homepage="https://github.com/googleapis/python-api-core" +homepage="https://googleapis.dev/python/google-api-core/latest/index.html" +changelog="https://raw.githubusercontent.com/googleapis/python-api-core/main/CHANGELOG.md" distfiles="${PYPI_SITE}/g/google-api-core/google-api-core-${version}.tar.gz" -checksum=418a131cd349e8bda036741d93e7fb9caefa691daa7296851193edc60b3c946c -# all tests require grpc, which is optional dependencies. +checksum=4b9bb5d5a380a0befa0573b302651b8a9a89262c1730e37bf423cec511804c22 +# tests require unpackaged dependencies: asyncmock, proto-plus make_check=no From 9084261a9891733c1f765131146c4c76ca0794ad Mon Sep 17 00:00:00 2001 From: icp Date: Sat, 26 Nov 2022 13:05:56 +0530 Subject: [PATCH 6/6] python3-google-api-python-client: update to 2.70.0. --- .../python3-google-api-python-client/template | 23 ++++++++----------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/srcpkgs/python3-google-api-python-client/template b/srcpkgs/python3-google-api-python-client/template index 640c50c77360..91aff1eba87d 100644 --- a/srcpkgs/python3-google-api-python-client/template +++ b/srcpkgs/python3-google-api-python-client/template @@ -1,22 +1,19 @@ # Template file for 'python3-google-api-python-client' pkgname=python3-google-api-python-client -version=2.0.2 -revision=3 +version=2.70.0 +revision=1 build_style=python3-module +make_check_args="--deselect=tests/test__helpers.py::PositionalTests::test_usage + --deselect=tests/test_discovery.py::DiscoveryErrors::test_tests_should_be_run_with_strict_positional_enforcement" hostmakedepends="python3-setuptools" depends="python3-httplib2 python3-google-auth python3-google-auth-httplib2 - python3-google-api-core python3-uritemplate python3-six" -# FIXME: 6 unittests are failing, cannot use py test to override -checkdepends="python3-mock $depends python3-oauth2client" + python3-google-api-core python3-uritemplate" +checkdepends="${depends} python3-Django python3-parameterized python3-openssl + python3-oauth2client python3-pytest-xdist" short_desc="Google API client library for Python3" maintainer="Orphaned " license="Apache-2.0" -homepage="https://github.com/googleapis/google-api-python-client" +homepage="https://googleapis.github.io/google-api-python-client/" +changelog="https://raw.githubusercontent.com/googleapis/google-api-python-client/main/CHANGELOG.md" distfiles="${PYPI_SITE}/g/google-api-python-client/google-api-python-client-${version}.tar.gz" -checksum=48686cceb0dc8cb8b9ee1920ad7c0d9b499ef4fca0ca51c1c69f1e462a628011 - -post_patch() { - # unittest2 is python2 thing. - vsed -i -e '/^import unittest2 as unittest/s/.*/import unittest/' \ - tests/test_*.py -} +checksum=262de094d5a30d337f59e66581019fed45b698c078397ac48dd323c0968236e7