==> Building on scovillain ==> Checking for remote environment... ==> Syncing package to remote host... sending incremental file list created directory packages/python-jose ./ .SRCINFO 886 100% 0.00kB/s 0:00:00 886 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=2/4) PKGBUILD 1,182 100% 1.13MB/s 0:00:00 1,182 100% 1.13MB/s 0:00:00 (xfr#2, to-chk=1/4) python-jose-3.3.0-7.log 368 100% 359.38kB/s 0:00:00 368 100% 359.38kB/s 0:00:00 (xfr#3, to-chk=0/4) sent 1,471 bytes received 119 bytes 3,180.00 bytes/sec total size is 2,265 speedup is 1.42 ==> Running extra-riscv64-build -- -d /home/felix/packages/riscv64-pkg-cache:/var/cache/pacman/pkg -l felix45 on remote host... ==> Locking clean chroot...done ]2;🔵 Container arch-nspawn-2781914 on scovillain.felixc.at[?25l:: Synchronizing package databases... core downloading... extra downloading... :: Starting full system upgrade... there is nothing to do [?25h==> Building in chroot for [extra] (riscv64)... ==> Synchronizing chroot copy [/var/lib/archbuild/extra-riscv64/root] -> [felix45]...done ==> Making package: python-jose 3.3.0-7 (Fri Sep 13 20:42:56 2024) ==> Retrieving sources...  -> Downloading python-jose-3.3.0.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 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 100 34130 0 34130 0 0 12714 0 --:--:-- 0:00:02 --:--:-- 35113 100 123k 0 123k 0 0 40258 0 --:--:-- 0:00:03 --:--:-- 88454 ==> Validating source files with sha512sums... python-jose-3.3.0.tar.gz ... Passed ]2;🔵 Container arch-nspawn-2786376 on scovillain.felixc.at==> Making package: python-jose 3.3.0-7 (Fri Sep 13 20:43:25 2024) ==> Checking runtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (8) New Version Net Change Download Size core/expat 2.6.3-2 0.40 MiB extra/mpdecimal 4.0.0-2 0.29 MiB core/python 3.12.6-1 106.60 MiB extra/python-pyasn1 0.6.0-1 1.23 MiB extra/python-six 1.16.0-9 0.11 MiB extra/python-ecdsa 0.19.0-1 1.88 MiB 0.27 MiB extra/python-future 1.0.0-1 4.73 MiB extra/python-rsa 4.9-4 0.28 MiB 0.06 MiB Total Download Size: 0.33 MiB Total Installed Size: 115.51 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... python-ecdsa-0.19.0-1-any downloading... python-rsa-4.9-4-any downloading... checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing expat... installing mpdecimal... installing python... Optional dependencies for python python-setuptools: for building Python packages using tooling that is usually bundled with Python python-pip: for installing Python packages using tooling that is usually bundled with Python python-pipx: for installing Python software not packaged on Arch Linux sqlite: for a default database integration [installed] xz: for lzma [installed] tk: for tkinter installing python-pyasn1... installing python-rsa... installing python-six... installing python-ecdsa... installing python-future... Optional dependencies for python-future python-setuptools: futurize and pasteurize scripts [?25h==> Checking buildtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (26) New Version Net Change extra/python-autocommand 2.2.2-6 0.08 MiB extra/python-cffi 1.16.0-2 1.32 MiB extra/python-coverage 7.6.0-1 1.88 MiB extra/python-fastjsonschema 2.20.0-1 0.27 MiB extra/python-iniconfig 2.0.0-5 0.04 MiB extra/python-jaraco.context 5.3.0-1 0.04 MiB extra/python-jaraco.functools 4.0.2-1 0.07 MiB extra/python-jaraco.text 4.0.0-1 0.08 MiB extra/python-more-itertools 10.3.0-1 0.63 MiB extra/python-ordered-set 4.1.0-5 0.06 MiB extra/python-packaging 24.1-1 0.49 MiB extra/python-platformdirs 4.2.2-1 0.24 MiB extra/python-pluggy 1.5.0-1 0.20 MiB extra/python-pycparser 2.22-2 1.71 MiB extra/python-pyproject-hooks 1.1.0-1 0.10 MiB extra/python-tomli 2.0.1-4 0.10 MiB extra/python-trove-classifiers 2024.7.2-1 0.12 MiB extra/python-validate-pyproject 0.19-1 0.33 MiB extra/python-build 1.2.1-3 0.19 MiB extra/python-cryptography 42.0.7-1 4.66 MiB extra/python-installer 0.7.0-8 0.18 MiB extra/python-pycryptodome 3.20.0-2 4.02 MiB extra/python-pytest 1:8.3.2-1 3.90 MiB extra/python-pytest-cov 5.0.0-1 0.15 MiB extra/python-setuptools 1:69.5.1-1 4.41 MiB extra/python-wheel 0.44.0-1 0.26 MiB Total Installed Size: 25.54 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing python-more-itertools... installing python-jaraco.functools... installing python-jaraco.context... installing python-autocommand... installing python-jaraco.text... Optional dependencies for python-jaraco.text python-inflect: for show-newlines script installing python-ordered-set... installing python-packaging... installing python-platformdirs... installing python-tomli... installing python-fastjsonschema... installing python-trove-classifiers... installing python-validate-pyproject... installing python-setuptools... installing python-pyproject-hooks... installing python-build... Optional dependencies for python-build python-pip: to use as the Python package installer (default) python-uv: to use as the Python package installer python-virtualenv: to use virtualenv for build isolation installing python-installer... installing python-wheel... Optional dependencies for python-wheel python-keyring: for wheel.signatures python-xdg: for wheel.signatures installing python-pycparser... installing python-cffi... Optional dependencies for python-cffi python-setuptools: "limited api" version checking in cffi.setuptools_ext [installed] installing python-cryptography... installing python-pycryptodome... installing python-coverage... installing python-iniconfig... installing python-pluggy... installing python-pytest... installing python-pytest-cov... [?25h==> Retrieving sources...  -> Found python-jose-3.3.0.tar.gz ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources...  -> Extracting python-jose-3.3.0.tar.gz with bsdtar ==> Starting prepare()... ==> Starting build()... * Getting build dependencies for wheel... No `name` configuration, performing automatic discovery * Building wheel... running bdist_wheel The [wheel] section is deprecated. Use [bdist_wheel] instead. running build running build_py creating build creating build/lib creating build/lib/jose copying jose/jws.py -> build/lib/jose copying jose/jwk.py -> build/lib/jose copying jose/__init__.py -> build/lib/jose copying jose/constants.py -> build/lib/jose copying jose/jwe.py -> build/lib/jose copying jose/exceptions.py -> build/lib/jose copying jose/utils.py -> build/lib/jose copying jose/jwt.py -> build/lib/jose creating build/lib/jose/backends copying jose/backends/ecdsa_backend.py -> build/lib/jose/backends copying jose/backends/__init__.py -> build/lib/jose/backends copying jose/backends/cryptography_backend.py -> build/lib/jose/backends copying jose/backends/rsa_backend.py -> build/lib/jose/backends copying jose/backends/base.py -> build/lib/jose/backends copying jose/backends/native.py -> build/lib/jose/backends copying jose/backends/_asn1.py -> build/lib/jose/backends installing to build/bdist.linux-riscv64/wheel running install running install_lib creating build/bdist.linux-riscv64 creating build/bdist.linux-riscv64/wheel creating build/bdist.linux-riscv64/wheel/jose copying build/lib/jose/jws.py -> build/bdist.linux-riscv64/wheel/jose creating build/bdist.linux-riscv64/wheel/jose/backends copying build/lib/jose/backends/ecdsa_backend.py -> build/bdist.linux-riscv64/wheel/jose/backends copying build/lib/jose/backends/__init__.py -> build/bdist.linux-riscv64/wheel/jose/backends copying build/lib/jose/backends/cryptography_backend.py -> build/bdist.linux-riscv64/wheel/jose/backends copying build/lib/jose/backends/rsa_backend.py -> build/bdist.linux-riscv64/wheel/jose/backends copying build/lib/jose/backends/base.py -> build/bdist.linux-riscv64/wheel/jose/backends copying build/lib/jose/backends/native.py -> build/bdist.linux-riscv64/wheel/jose/backends copying build/lib/jose/backends/_asn1.py -> build/bdist.linux-riscv64/wheel/jose/backends copying build/lib/jose/jwk.py -> build/bdist.linux-riscv64/wheel/jose copying build/lib/jose/__init__.py -> build/bdist.linux-riscv64/wheel/jose copying build/lib/jose/constants.py -> build/bdist.linux-riscv64/wheel/jose copying build/lib/jose/jwe.py -> build/bdist.linux-riscv64/wheel/jose copying build/lib/jose/exceptions.py -> build/bdist.linux-riscv64/wheel/jose copying build/lib/jose/utils.py -> build/bdist.linux-riscv64/wheel/jose copying build/lib/jose/jwt.py -> build/bdist.linux-riscv64/wheel/jose running install_egg_info running egg_info creating python_jose.egg-info writing python_jose.egg-info/PKG-INFO writing dependency_links to python_jose.egg-info/dependency_links.txt writing requirements to python_jose.egg-info/requires.txt writing top-level names to python_jose.egg-info/top_level.txt writing manifest file 'python_jose.egg-info/SOURCES.txt' reading manifest file 'python_jose.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'VERSIONING.md' adding license file 'LICENSE' writing manifest file 'python_jose.egg-info/SOURCES.txt' Copying python_jose.egg-info to build/bdist.linux-riscv64/wheel/python_jose-3.3.0-py3.12.egg-info running install_scripts creating build/bdist.linux-riscv64/wheel/python_jose-3.3.0.dist-info/WHEEL creating '/build/python-jose/src/python-jose-3.3.0/dist/.tmp-qwejzfzs/python_jose-3.3.0-py2.py3-none-any.whl' and adding 'build/bdist.linux-riscv64/wheel' to it adding 'jose/__init__.py' adding 'jose/constants.py' adding 'jose/exceptions.py' adding 'jose/jwe.py' adding 'jose/jwk.py' adding 'jose/jws.py' adding 'jose/jwt.py' adding 'jose/utils.py' adding 'jose/backends/__init__.py' adding 'jose/backends/_asn1.py' adding 'jose/backends/base.py' adding 'jose/backends/cryptography_backend.py' adding 'jose/backends/ecdsa_backend.py' adding 'jose/backends/native.py' adding 'jose/backends/rsa_backend.py' adding 'python_jose-3.3.0.dist-info/LICENSE' adding 'python_jose-3.3.0.dist-info/METADATA' adding 'python_jose-3.3.0.dist-info/WHEEL' adding 'python_jose-3.3.0.dist-info/top_level.txt' adding 'python_jose-3.3.0.dist-info/RECORD' removing build/bdist.linux-riscv64/wheel Successfully built python_jose-3.3.0-py2.py3-none-any.whl ==> Starting check()... ============================= test session starts ============================== platform linux -- Python 3.12.6, pytest-8.3.2, pluggy-1.5.0 rootdir: /build/python-jose/src/python-jose-3.3.0 configfile: pytest.ini plugins: cov-5.0.0 collected 467 items tests/algorithms/test_AES.py ...... [ 1%] tests/algorithms/test_AES_compat.py ......... [ 3%] tests/algorithms/test_EC.py ................. [ 6%] tests/algorithms/test_EC_compat.py .....FF..FF..FF..FF. [ 11%] tests/algorithms/test_HMAC.py ... [ 11%] tests/algorithms/test_HMAC_compat.py ............ [ 14%] tests/algorithms/test_RSA.py ..................... [ 18%] tests/algorithms/test_RSA_compat.py .................................... [ 26%] ........................................................................ [ 41%] sss.....sss. [ 44%] tests/algorithms/test_base.py ...... [ 45%] tests/rfc/test_rfc7520.py ... [ 46%] tests/test_asn1.py .... [ 47%] tests/test_backends.py .... [ 48%] tests/test_firebase.py ... [ 48%] tests/test_jwe.py ..........ssssss...................................... [ 60%] ..................................................................... [ 75%] tests/test_jwk.py .......... [ 77%] tests/test_jws.py ........................................... [ 86%] tests/test_jwt.py ...................................................... [ 98%] ....... [ 99%] tests/test_utils.py .. [100%] =================================== FAILURES =================================== _ TestBackendEcdsaCompatibility.test_public_key_to_pem[ECDSAECKey-CryptographyECKey] _ self = BackendFrom = BackendTo = @pytest.mark.parametrize("BackendFrom", [ECDSAECKey, CryptographyECKey]) @pytest.mark.parametrize("BackendTo", [ECDSAECKey, CryptographyECKey]) def test_public_key_to_pem(self, BackendFrom, BackendTo): key = BackendFrom(private_key, ALGORITHMS.ES256) key2 = BackendTo(private_key, ALGORITHMS.ES256) > assert key.public_key().to_pem().strip() == key2.public_key().to_pem().strip() E AssertionError: assert b'-----BEGIN ...BLIC KEY-----' == b'-----BEGIN ...BLIC KEY-----' E E At index 91 diff: b'\n' != b't' E Use -v to get more diff tests/algorithms/test_EC_compat.py:40: AssertionError _ TestBackendEcdsaCompatibility.test_public_key_to_pem[CryptographyECKey-ECDSAECKey] _ self = BackendFrom = BackendTo = @pytest.mark.parametrize("BackendFrom", [ECDSAECKey, CryptographyECKey]) @pytest.mark.parametrize("BackendTo", [ECDSAECKey, CryptographyECKey]) def test_public_key_to_pem(self, BackendFrom, BackendTo): key = BackendFrom(private_key, ALGORITHMS.ES256) key2 = BackendTo(private_key, ALGORITHMS.ES256) > assert key.public_key().to_pem().strip() == key2.public_key().to_pem().strip() E AssertionError: assert b'-----BEGIN ...BLIC KEY-----' == b'-----BEGIN ...BLIC KEY-----' E E At index 91 diff: b't' != b'\n' E Use -v to get more diff tests/algorithms/test_EC_compat.py:40: AssertionError _ TestBackendEcdsaCompatibility.test_private_key_to_pem[ECDSAECKey-CryptographyECKey] _ self = BackendFrom = BackendTo = @pytest.mark.parametrize("BackendFrom", [ECDSAECKey, CryptographyECKey]) @pytest.mark.parametrize("BackendTo", [ECDSAECKey, CryptographyECKey]) def test_private_key_to_pem(self, BackendFrom, BackendTo): key = BackendFrom(private_key, ALGORITHMS.ES256) key2 = BackendTo(private_key, ALGORITHMS.ES256) > assert key.to_pem().strip() == key2.to_pem().strip() E AssertionError: assert b'-----BEGIN ...VATE KEY-----' == b'-----BEGIN ...VATE KEY-----' E E At index 95 diff: b'\n' != b'A' E Use -v to get more diff tests/algorithms/test_EC_compat.py:48: AssertionError _ TestBackendEcdsaCompatibility.test_private_key_to_pem[CryptographyECKey-ECDSAECKey] _ self = BackendFrom = BackendTo = @pytest.mark.parametrize("BackendFrom", [ECDSAECKey, CryptographyECKey]) @pytest.mark.parametrize("BackendTo", [ECDSAECKey, CryptographyECKey]) def test_private_key_to_pem(self, BackendFrom, BackendTo): key = BackendFrom(private_key, ALGORITHMS.ES256) key2 = BackendTo(private_key, ALGORITHMS.ES256) > assert key.to_pem().strip() == key2.to_pem().strip() E AssertionError: assert b'-----BEGIN ...VATE KEY-----' == b'-----BEGIN ...VATE KEY-----' E E At index 95 diff: b'A' != b'\n' E Use -v to get more diff tests/algorithms/test_EC_compat.py:48: AssertionError _ TestBackendEcdsaCompatibility.test_public_key_load_cycle[ECDSAECKey-CryptographyECKey] _ self = BackendFrom = BackendTo = @pytest.mark.parametrize("BackendFrom", [ECDSAECKey, CryptographyECKey]) @pytest.mark.parametrize("BackendTo", [ECDSAECKey, CryptographyECKey]) def test_public_key_load_cycle(self, BackendFrom, BackendTo): key = BackendFrom(private_key, ALGORITHMS.ES256) pubkey = key.public_key() pub_pem_source = pubkey.to_pem().strip() pub_target = BackendTo(pub_pem_source, ALGORITHMS.ES256) > assert pub_pem_source == pub_target.to_pem().strip() E AssertionError: assert b'-----BEGIN ...BLIC KEY-----' == b'-----BEGIN ...BLIC KEY-----' E E At index 91 diff: b'\n' != b't' E Use -v to get more diff tests/algorithms/test_EC_compat.py:60: AssertionError _ TestBackendEcdsaCompatibility.test_public_key_load_cycle[CryptographyECKey-ECDSAECKey] _ self = BackendFrom = BackendTo = @pytest.mark.parametrize("BackendFrom", [ECDSAECKey, CryptographyECKey]) @pytest.mark.parametrize("BackendTo", [ECDSAECKey, CryptographyECKey]) def test_public_key_load_cycle(self, BackendFrom, BackendTo): key = BackendFrom(private_key, ALGORITHMS.ES256) pubkey = key.public_key() pub_pem_source = pubkey.to_pem().strip() pub_target = BackendTo(pub_pem_source, ALGORITHMS.ES256) > assert pub_pem_source == pub_target.to_pem().strip() E AssertionError: assert b'-----BEGIN ...BLIC KEY-----' == b'-----BEGIN ...BLIC KEY-----' E E At index 91 diff: b't' != b'\n' E Use -v to get more diff tests/algorithms/test_EC_compat.py:60: AssertionError _ TestBackendEcdsaCompatibility.test_private_key_load_cycle[ECDSAECKey-CryptographyECKey] _ self = BackendFrom = BackendTo = @pytest.mark.parametrize("BackendFrom", [ECDSAECKey, CryptographyECKey]) @pytest.mark.parametrize("BackendTo", [ECDSAECKey, CryptographyECKey]) def test_private_key_load_cycle(self, BackendFrom, BackendTo): key = BackendFrom(private_key, ALGORITHMS.ES256) pem_source = key.to_pem().strip() target = BackendTo(pem_source, ALGORITHMS.ES256) > assert pem_source == target.to_pem().strip() E AssertionError: assert b'-----BEGIN ...VATE KEY-----' == b'-----BEGIN ...VATE KEY-----' E E At index 95 diff: b'\n' != b'A' E Use -v to get more diff tests/algorithms/test_EC_compat.py:71: AssertionError _ TestBackendEcdsaCompatibility.test_private_key_load_cycle[CryptographyECKey-ECDSAECKey] _ self = BackendFrom = BackendTo = @pytest.mark.parametrize("BackendFrom", [ECDSAECKey, CryptographyECKey]) @pytest.mark.parametrize("BackendTo", [ECDSAECKey, CryptographyECKey]) def test_private_key_load_cycle(self, BackendFrom, BackendTo): key = BackendFrom(private_key, ALGORITHMS.ES256) pem_source = key.to_pem().strip() target = BackendTo(pem_source, ALGORITHMS.ES256) > assert pem_source == target.to_pem().strip() E AssertionError: assert b'-----BEGIN ...VATE KEY-----' == b'-----BEGIN ...VATE KEY-----' E E At index 95 diff: b'A' != b'\n' E Use -v to get more diff tests/algorithms/test_EC_compat.py:71: AssertionError =============================== warnings summary =============================== tests/test_jwt.py:539 /build/python-jose/src/python-jose-3.3.0/tests/test_jwt.py:539: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). ("exp", datetime.utcnow() + timedelta(seconds=3600)), tests/test_jwt.py:540 /build/python-jose/src/python-jose-3.3.0/tests/test_jwt.py:540: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). ("nbf", datetime.utcnow() - timedelta(seconds=5)), tests/test_jwt.py::TestJWT::test_leeway_is_timedelta /build/python-jose/src/python-jose-3.3.0/tests/test_jwt.py:186: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). nbf = datetime.utcnow() + timedelta(seconds=5) tests/test_jwt.py::TestJWT::test_leeway_is_timedelta tests/test_jwt.py::TestJWT::test_nbf_datetime tests/test_jwt.py::TestJWT::test_nbf_with_leeway tests/test_jwt.py::TestJWT::test_nbf_in_future tests/test_jwt.py::TestJWT::test_nbf_skip tests/test_jwt.py::TestJWT::test_require[nbf-value3] /build/python-jose/src/python-jose-3.3.0/jose/jwt.py:281: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). now = timegm(datetime.utcnow().utctimetuple()) tests/test_jwt.py::TestJWT::test_nbf_datetime /build/python-jose/src/python-jose-3.3.0/tests/test_jwt.py:218: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). nbf = datetime.utcnow() - timedelta(seconds=5) tests/test_jwt.py::TestJWT::test_nbf_with_leeway /build/python-jose/src/python-jose-3.3.0/tests/test_jwt.py:227: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). nbf = datetime.utcnow() + timedelta(seconds=5) tests/test_jwt.py::TestJWT::test_nbf_in_future /build/python-jose/src/python-jose-3.3.0/tests/test_jwt.py:240: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). nbf = datetime.utcnow() + timedelta(seconds=5) tests/test_jwt.py::TestJWT::test_nbf_skip /build/python-jose/src/python-jose-3.3.0/tests/test_jwt.py:251: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). nbf = datetime.utcnow() + timedelta(seconds=5) tests/test_jwt.py::TestJWT::test_exp_datetime /build/python-jose/src/python-jose-3.3.0/tests/test_jwt.py:275: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). exp = datetime.utcnow() + timedelta(seconds=5) tests/test_jwt.py::TestJWT::test_exp_datetime tests/test_jwt.py::TestJWT::test_exp_with_leeway tests/test_jwt.py::TestJWT::test_exp_in_past tests/test_jwt.py::TestJWT::test_exp_skip tests/test_jwt.py::TestJWT::test_require[exp-value2] /build/python-jose/src/python-jose-3.3.0/jose/jwt.py:311: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). now = timegm(datetime.utcnow().utctimetuple()) tests/test_jwt.py::TestJWT::test_exp_with_leeway /build/python-jose/src/python-jose-3.3.0/tests/test_jwt.py:284: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). exp = datetime.utcnow() - timedelta(seconds=5) tests/test_jwt.py::TestJWT::test_exp_in_past /build/python-jose/src/python-jose-3.3.0/tests/test_jwt.py:297: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). exp = datetime.utcnow() - timedelta(seconds=5) tests/test_jwt.py::TestJWT::test_exp_skip /build/python-jose/src/python-jose-3.3.0/tests/test_jwt.py:308: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). exp = datetime.utcnow() - timedelta(seconds=5) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/algorithms/test_EC_compat.py::TestBackendEcdsaCompatibility::test_public_key_to_pem[ECDSAECKey-CryptographyECKey] FAILED tests/algorithms/test_EC_compat.py::TestBackendEcdsaCompatibility::test_public_key_to_pem[CryptographyECKey-ECDSAECKey] FAILED tests/algorithms/test_EC_compat.py::TestBackendEcdsaCompatibility::test_private_key_to_pem[ECDSAECKey-CryptographyECKey] FAILED tests/algorithms/test_EC_compat.py::TestBackendEcdsaCompatibility::test_private_key_to_pem[CryptographyECKey-ECDSAECKey] FAILED tests/algorithms/test_EC_compat.py::TestBackendEcdsaCompatibility::test_public_key_load_cycle[ECDSAECKey-CryptographyECKey] FAILED tests/algorithms/test_EC_compat.py::TestBackendEcdsaCompatibility::test_public_key_load_cycle[CryptographyECKey-ECDSAECKey] FAILED tests/algorithms/test_EC_compat.py::TestBackendEcdsaCompatibility::test_private_key_load_cycle[ECDSAECKey-CryptographyECKey] FAILED tests/algorithms/test_EC_compat.py::TestBackendEcdsaCompatibility::test_private_key_load_cycle[CryptographyECKey-ECDSAECKey] ====== 8 failed, 447 passed, 12 skipped, 22 warnings in 179.11s (0:02:59) ====== ==> ERROR: A failure occurred in check().  Aborting... ==> ERROR: Build failed, check /var/lib/archbuild/extra-riscv64/felix45/build [?25h[?25hreceiving incremental file list python-jose-3.3.0-7-riscv64-build.log python-jose-3.3.0-7-riscv64-check.log python-jose-3.3.0-7-riscv64-prepare.log sent 81 bytes received 2,879 bytes 1,973.33 bytes/sec total size is 21,001 speedup is 7.09