>>> py3-google-auth: Building community/py3-google-auth 1.19.2-r2 (using abuild 3.10.0_rc1-r2) started Fri, 28 Oct 2022 13:17:13 +0000 >>> py3-google-auth: Checking sanity of /home/buildozer/aports/community/py3-google-auth/APKBUILD... >>> py3-google-auth: Analyzing dependencies... >>> py3-google-auth: Installing for build: build-base python3 py3-cachetools<5.0 py3-asn1-modules py3-rsa py3-setuptools py3-six py3-flask py3-freezegun py3-mock py3-oauth2client py3-openssl py3-pytest py3-pytest-cov py3-pytest-localserver py3-requests py3-responses py3-urllib3 py3-cryptography py3-certifi py3-grpcio (1/51) Installing libbz2 (1.0.8-r3) (2/51) Installing libffi (3.4.4-r0) (3/51) Installing gdbm (1.23-r0) (4/51) Installing xz-libs (5.2.7-r0) (5/51) Installing mpdecimal (2.5.1-r1) (6/51) Installing readline (8.2.0-r0) (7/51) Installing sqlite-libs (3.39.4-r0) (8/51) Installing python3 (3.10.8-r3) (9/51) Installing py3-cachetools (4.1.1-r2) (10/51) Installing py3-asn1 (0.4.8-r2) (11/51) Installing py3-asn1-modules (0.2.8-r2) (12/51) Installing py3-rsa (4.9-r0) (13/51) Installing py3-parsing (3.0.9-r0) (14/51) Installing py3-packaging (21.3-r2) (15/51) Installing py3-setuptools (65.5.0-r0) (16/51) Installing py3-six (1.16.0-r3) (17/51) Installing py3-click (8.1.3-r0) (18/51) Installing py3-itsdangerous (2.1.2-r0) (19/51) Installing py3-markupsafe (2.1.1-r1) (20/51) Installing py3-jinja2 (3.1.2-r0) (21/51) Installing py3-werkzeug (2.2.2-r1) (22/51) Installing py3-flask (2.1.3-r0) (23/51) Installing py3-dateutil (2.8.2-r1) (24/51) Installing py3-freezegun (1.2.2-r0) (25/51) Installing py3-pbr (5.11.0-r0) (26/51) Installing py3-mock (4.0.3-r3) (27/51) Installing py3-httplib2 (0.20.4-r0) (28/51) Installing py3-oauth2client (4.1.3-r5) (29/51) Installing py3-cparser (2.21-r0) (30/51) Installing py3-cffi (1.15.1-r0) (31/51) Installing py3-cryptography (38.0.2-r0) (32/51) Installing py3-openssl (22.1.0-r1) (33/51) Installing py3-attrs (22.1.0-r0) (34/51) Installing py3-iniconfig (1.1.1-r3) (35/51) Installing py3-pluggy (1.0.0-r1) (36/51) Installing py3-py (1.11.0-r0) (37/51) Installing py3-tomli (2.0.1-r1) (38/51) Installing py3-pytest (7.1.3-r1) (39/51) Installing py3-coverage (5.5-r2) (40/51) Installing py3-pytest-cov (2.12.1-r1) (41/51) Installing py3-pytest-localserver (0.7.0-r0) (42/51) Installing py3-certifi (2022.9.24-r0) (43/51) Installing py3-charset-normalizer (2.1.1-r0) (44/51) Installing py3-idna (3.4-r2) (45/51) Installing py3-urllib3 (1.26.12-r0) (46/51) Installing py3-requests (2.28.1-r0) (47/51) Installing py3-responses (0.14.0-r1) (48/51) Installing abseil-cpp (20220623.1-r1) (49/51) Installing re2 (2022.06.01-r1) (50/51) Installing py3-grpcio (1.50.0-r0) (51/51) Installing .makedepends-py3-google-auth (20221028.131729) Executing busybox-1.35.0-r27.trigger OK: 358 MiB in 144 packages >>> py3-google-auth: Cleaning up srcdir >>> py3-google-auth: Cleaning up pkgdir >>> py3-google-auth: Fetching https://distfiles.alpinelinux.org/distfiles/v3.17/google-auth-1.19.2.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 146 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (22) The requested URL returned error: 404 >>> py3-google-auth: Fetching https://files.pythonhosted.org/packages/source/g/google-auth/google-auth-1.19.2.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 104k 100 104k 0 0 194k 0 --:--:-- --:--:-- --:--:-- 194k >>> py3-google-auth: Fetching https://distfiles.alpinelinux.org/distfiles/v3.17/google-auth-1.19.2.tar.gz >>> py3-google-auth: Checking sha512sums... google-auth-1.19.2.tar.gz: OK remove-unnecessary-dependencies.patch: OK >>> py3-google-auth: Unpacking /var/cache/distfiles/v3.17/google-auth-1.19.2.tar.gz... >>> py3-google-auth: remove-unnecessary-dependencies.patch patching file tests/compute_engine/test__metadata.py patching file tests/compute_engine/test_credentials.py patching file tests/conftest.py patching file tests/crypt/test__python_rsa.py patching file tests/oauth2/test__client.py patching file tests/oauth2/test_credentials.py patching file tests/oauth2/test_id_token.py patching file tests/oauth2/test_service_account.py patching file tests/test__cloud_sdk.py patching file tests/test__default.py patching file tests/test__oauth2client.py patching file tests/test_app_engine.py patching file tests/test_iam.py patching file tests/test_impersonated_credentials.py patching file tests/test_jwt.py patching file tests/transport/test__mtls_helper.py patching file tests/transport/test_grpc.py patching file tests/transport/test_mtls.py patching file tests/transport/test_requests.py patching file tests/transport/test_urllib3.py /usr/lib/python3.10/site-packages/setuptools/dist.py:286: SetuptoolsDeprecationWarning: The namespace_packages parameter is deprecated, consider using implicit namespaces instead (PEP 420). warnings.warn(msg, SetuptoolsDeprecationWarning) running build running build_py creating build creating build/lib creating build/lib/google copying google/__init__.py -> build/lib/google creating build/lib/google/auth copying google/auth/_default.py -> build/lib/google/auth copying google/auth/impersonated_credentials.py -> build/lib/google/auth copying google/auth/exceptions.py -> build/lib/google/auth copying google/auth/_service_account_info.py -> build/lib/google/auth copying google/auth/__init__.py -> build/lib/google/auth copying google/auth/_cloud_sdk.py -> build/lib/google/auth copying google/auth/jwt.py -> build/lib/google/auth copying google/auth/_helpers.py -> build/lib/google/auth copying google/auth/app_engine.py -> build/lib/google/auth copying google/auth/credentials.py -> build/lib/google/auth copying google/auth/_oauth2client.py -> build/lib/google/auth copying google/auth/environment_vars.py -> build/lib/google/auth copying google/auth/iam.py -> build/lib/google/auth creating build/lib/google/oauth2 copying google/oauth2/_client.py -> build/lib/google/oauth2 copying google/oauth2/__init__.py -> build/lib/google/oauth2 copying google/oauth2/id_token.py -> build/lib/google/oauth2 copying google/oauth2/credentials.py -> build/lib/google/oauth2 copying google/oauth2/service_account.py -> build/lib/google/oauth2 creating build/lib/google/auth/compute_engine copying google/auth/compute_engine/_metadata.py -> build/lib/google/auth/compute_engine copying google/auth/compute_engine/__init__.py -> build/lib/google/auth/compute_engine copying google/auth/compute_engine/credentials.py -> build/lib/google/auth/compute_engine creating build/lib/google/auth/crypt copying google/auth/crypt/base.py -> build/lib/google/auth/crypt copying google/auth/crypt/_cryptography_rsa.py -> build/lib/google/auth/crypt copying google/auth/crypt/es256.py -> build/lib/google/auth/crypt copying google/auth/crypt/_python_rsa.py -> build/lib/google/auth/crypt copying google/auth/crypt/__init__.py -> build/lib/google/auth/crypt copying google/auth/crypt/_helpers.py -> build/lib/google/auth/crypt copying google/auth/crypt/rsa.py -> build/lib/google/auth/crypt creating build/lib/google/auth/transport copying google/auth/transport/mtls.py -> build/lib/google/auth/transport copying google/auth/transport/_mtls_helper.py -> build/lib/google/auth/transport copying google/auth/transport/__init__.py -> build/lib/google/auth/transport copying google/auth/transport/_http_client.py -> build/lib/google/auth/transport copying google/auth/transport/grpc.py -> build/lib/google/auth/transport copying google/auth/transport/urllib3.py -> build/lib/google/auth/transport copying google/auth/transport/requests.py -> build/lib/google/auth/transport ============================= test session starts ============================== platform linux -- Python 3.10.8, pytest-7.1.3, pluggy-1.0.0 rootdir: /home/buildozer/aports/community/py3-google-auth/src/google-auth-1.19.2 plugins: cov-2.12.1, localserver-0.7.0 collected 438 items tests/test__cloud_sdk.py ............. [ 2%] tests/test__default.py .................................... [ 11%] tests/test__helpers.py ................... [ 15%] tests/test__oauth2client.py ......... [ 17%] tests/test__service_account_info.py .... [ 18%] tests/test_app_engine.py .............. [ 21%] tests/test_credentials.py ............. [ 24%] tests/test_iam.py .... [ 25%] tests/test_impersonated_credentials.py ..................... [ 30%] tests/test_jwt.py ....F............................................. [ 41%] tests/compute_engine/test__metadata.py ................ [ 45%] tests/compute_engine/test_credentials.py ........................ [ 50%] tests/crypt/test__cryptography_rsa.py ................ [ 54%] tests/crypt/test__python_rsa.py .................. [ 58%] tests/crypt/test_crypt.py .. [ 59%] tests/crypt/test_es256.py FF.F.......... [ 62%] tests/oauth2/test__client.py .............. [ 65%] tests/oauth2/test_credentials.py ................... [ 69%] tests/oauth2/test_id_token.py ........... [ 72%] tests/oauth2/test_service_account.py ........................... [ 78%] tests/transport/test__http_client.py ....... [ 80%] tests/transport/test__mtls_helper.py ........................ [ 85%] tests/transport/test_grpc.py .......... [ 87%] tests/transport/test_mtls.py ... [ 88%] tests/transport/test_requests.py .............................. [ 95%] tests/transport/test_urllib3.py .................... [100%] =================================== FAILURES =================================== ___________________________ test_decode_valid_es256 ____________________________ token_factory = .factory at 0x7f7ea2a711b0> def test_decode_valid_es256(token_factory): > payload = jwt.decode( token_factory(use_es256_signer=True), certs=EC_PUBLIC_CERT_BYTES ) tests/test_jwt.py:124: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ google/auth/jwt.py:270: in decode if not crypt.verify_signature( google/auth/crypt/__init__.py:98: in verify_signature if verifier.verify(message, signature): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = message = b'eyJ0eXAiOiAiSldUIiwgImFsZyI6ICJFUzI1NiIsICJraWQiOiAiMSJ9.eyJhdWQiOiAiYXVkaWVuY2VAZXhhbXBsZS5jb20iLCAiaWF0IjogMTY2Njk2MzA1NSwgImV4cCI6IDE2NjY5NjMzNTUsICJ1c2VyIjogImJpbGx5IGJvYiIsICJtZXRhZGF0YSI6IHsibWV0YSI6ICJkYXRhIn19' signature = b'\xc0vq\xcd\x10s\xb6\x91nb\x03\x92b\x1ar\x0f\xec\xc8\xff\xf5\x97\xdf(aC\x865\xa8`\xc7G\xe8\xfa\xe2^?\xaf}Y\x03\x95\x81\xf5\xc2\xc7O\xdfw|(g\x19\xa1\xf1\xd6@\x1dE\xf5D\xb3\x92\xa8\x86' @_helpers.copy_docstring(base.Verifier) def verify(self, message, signature): # First convert (r||s) raw signature to ASN1 encoded signature. sig_bytes = _helpers.to_bytes(signature) if len(sig_bytes) != 64: return False > r = utils.int_from_bytes(sig_bytes[:32], byteorder="big") E AttributeError: module 'cryptography.utils' has no attribute 'int_from_bytes' google/auth/crypt/es256.py:68: AttributeError ____________________ TestES256Verifier.test_verify_success _____________________ self = def test_verify_success(self): to_sign = b"foo" signer = es256.ES256Signer.from_string(PRIVATE_KEY_BYTES) actual_signature = signer.sign(to_sign) verifier = es256.ES256Verifier.from_string(PUBLIC_KEY_BYTES) > assert verifier.verify(to_sign, actual_signature) tests/crypt/test_es256.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = message = b'foo' signature = b'\xbaI\xfa\x11\r\xdaf\xab{1\xb6\x94\x8c\xd3\xf4a\x9e\x8f\xe0m\x82\\\xdf\x06R\xd5\xe3\xdf\x1d\xc6\xb8`j\xa8 r = utils.int_from_bytes(sig_bytes[:32], byteorder="big") E AttributeError: module 'cryptography.utils' has no attribute 'int_from_bytes' google/auth/crypt/es256.py:68: AttributeError ________________ TestES256Verifier.test_verify_unicode_success _________________ self = def test_verify_unicode_success(self): to_sign = u"foo" signer = es256.ES256Signer.from_string(PRIVATE_KEY_BYTES) actual_signature = signer.sign(to_sign) verifier = es256.ES256Verifier.from_string(PUBLIC_KEY_BYTES) > assert verifier.verify(to_sign, actual_signature) tests/crypt/test_es256.py:67: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = message = 'foo' signature = b'\xf5J\x8f+n\x94\x97\x83H\x8fc<\xa79\x8f\xb5\xb2f\xb0/\xf2n\x15U\xedF\x84\xd0z\xebb~\xba\x93\xa8l\xa0nJ\xe5y\xad\xd2x\x7f\x97\xb4\x90\xa5\xa9\xbc\xfb\x12u7\x05\xb4\x8b\xfa\x89\xe1\x9fz\x0b' @_helpers.copy_docstring(base.Verifier) def verify(self, message, signature): # First convert (r||s) raw signature to ASN1 encoded signature. sig_bytes = _helpers.to_bytes(signature) if len(sig_bytes) != 64: return False > r = utils.int_from_bytes(sig_bytes[:32], byteorder="big") E AttributeError: module 'cryptography.utils' has no attribute 'int_from_bytes' google/auth/crypt/es256.py:68: AttributeError ________ TestES256Verifier.test_verify_failure_with_wrong_raw_signature ________ self = def test_verify_failure_with_wrong_raw_signature(self): to_sign = b"foo" # This signature has a wrong "r" value in the "(r,s)" raw signature. wrong_signature = base64.urlsafe_b64decode( b"m7oaRxUDeYqjZ8qiMwo0PZLTMZWKJLFQREpqce1StMIa_yXQQ-C5WgeIRHW7OqlYSDL0XbUrj_uAw9i-QhfOJQ==" ) verifier = es256.ES256Verifier.from_string(PUBLIC_KEY_BYTES) > assert not verifier.verify(to_sign, wrong_signature) tests/crypt/test_es256.py:85: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = message = b'foo' signature = b'\x9b\xba\x1aG\x15\x03y\x8a\xa3g\xca\xa23\n4=\x92\xd31\x95\x8a$\xb1PDJjq\xedR\xb4\xc2\x1a\xff%\xd0C\xe0\xb9Z\x07\x88Du\xbb:\xa9XH2\xf4]\xb5+\x8f\xfb\x80\xc3\xd8\xbeB\x17\xce%' @_helpers.copy_docstring(base.Verifier) def verify(self, message, signature): # First convert (r||s) raw signature to ASN1 encoded signature. sig_bytes = _helpers.to_bytes(signature) if len(sig_bytes) != 64: return False > r = utils.int_from_bytes(sig_bytes[:32], byteorder="big") E AttributeError: module 'cryptography.utils' has no attribute 'int_from_bytes' google/auth/crypt/es256.py:68: AttributeError =============================== warnings summary =============================== tests/transport/test_requests.py::TestMutualTlsAdapter::test_success /home/buildozer/aports/community/py3-google-auth/src/google-auth-1.19.2/google/auth/transport/requests.py:205: DeprecationWarning: 'urllib3.contrib.pyopenssl' module is deprecated and will be removed in a future release of urllib3 2.x. Read more in this issue: https://github.com/urllib3/urllib3/issues/2680 import urllib3.contrib.pyopenssl -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/test_jwt.py::test_decode_valid_es256 - AttributeError: module 'c... FAILED tests/crypt/test_es256.py::TestES256Verifier::test_verify_success - At... FAILED tests/crypt/test_es256.py::TestES256Verifier::test_verify_unicode_success FAILED tests/crypt/test_es256.py::TestES256Verifier::test_verify_failure_with_wrong_raw_signature ================== 4 failed, 434 passed, 1 warning in 34.62s =================== >>> ERROR: py3-google-auth: check failed >>> py3-google-auth: Uninstalling dependencies... (1/51) Purging .makedepends-py3-google-auth (20221028.131729) (2/51) Purging py3-cachetools (4.1.1-r2) (3/51) Purging py3-setuptools (65.5.0-r0) (4/51) Purging py3-flask (2.1.3-r0) (5/51) Purging py3-click (8.1.3-r0) (6/51) Purging py3-itsdangerous (2.1.2-r0) (7/51) Purging py3-jinja2 (3.1.2-r0) (8/51) Purging py3-werkzeug (2.2.2-r1) (9/51) Purging py3-markupsafe (2.1.1-r1) (10/51) Purging py3-freezegun (1.2.2-r0) (11/51) Purging py3-dateutil (2.8.2-r1) (12/51) Purging py3-mock (4.0.3-r3) (13/51) Purging py3-pbr (5.11.0-r0) (14/51) Purging py3-oauth2client (4.1.3-r5) (15/51) Purging py3-httplib2 (0.20.4-r0) (16/51) Purging py3-asn1-modules (0.2.8-r2) (17/51) Purging py3-rsa (4.9-r0) (18/51) Purging py3-asn1 (0.4.8-r2) (19/51) Purging py3-openssl (22.1.0-r1) (20/51) Purging py3-pytest-cov (2.12.1-r1) (21/51) Purging py3-pytest (7.1.3-r1) (22/51) Purging py3-attrs (22.1.0-r0) (23/51) Purging py3-iniconfig (1.1.1-r3) (24/51) Purging py3-packaging (21.3-r2) (25/51) Purging py3-parsing (3.0.9-r0) (26/51) Purging py3-pluggy (1.0.0-r1) (27/51) Purging py3-py (1.11.0-r0) (28/51) Purging py3-tomli (2.0.1-r1) (29/51) Purging py3-coverage (5.5-r2) (30/51) Purging py3-pytest-localserver (0.7.0-r0) (31/51) Purging py3-responses (0.14.0-r1) (32/51) Purging py3-requests (2.28.1-r0) (33/51) Purging py3-charset-normalizer (2.1.1-r0) (34/51) Purging py3-idna (3.4-r2) (35/51) Purging py3-urllib3 (1.26.12-r0) (36/51) Purging py3-cryptography (38.0.2-r0) (37/51) Purging py3-cffi (1.15.1-r0) (38/51) Purging py3-cparser (2.21-r0) (39/51) Purging py3-certifi (2022.9.24-r0) (40/51) Purging py3-grpcio (1.50.0-r0) (41/51) Purging py3-six (1.16.0-r3) (42/51) Purging python3 (3.10.8-r3) (43/51) Purging libbz2 (1.0.8-r3) (44/51) Purging libffi (3.4.4-r0) (45/51) Purging gdbm (1.23-r0) (46/51) Purging xz-libs (5.2.7-r0) (47/51) Purging mpdecimal (2.5.1-r1) (48/51) Purging readline (8.2.0-r0) (49/51) Purging sqlite-libs (3.39.4-r0) (50/51) Purging abseil-cpp (20220623.1-r1) (51/51) Purging re2 (2022.06.01-r1) Executing busybox-1.35.0-r27.trigger OK: 267 MiB in 93 packages