Jelle van der Waa pushed to branch main at Arch Linux / Packaging / Packages / python-fxa
Commits: 1fd27538 by Jelle van der Waa at 2024-04-27T16:38:30+02:00 upgpkg: 0.7.8-1 - Drop cov and flake8 as checkdepends - Deselect failing tests instead of blindly ignoring - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -1,14 +1,12 @@ pkgbase = python-fxa pkgdesc = Python library for interacting with the Firefox Accounts ecosystem - pkgver = 0.7.7 - pkgrel = 8 + pkgver = 0.7.8 + pkgrel = 1 url = https://github.com/mozilla/PyFxA arch = any license = MPL-2.0 checkdepends = python-grequests checkdepends = python-pyotp - checkdepends = python-pytest-cov - checkdepends = python-pytest-flake8 checkdepends = python-pytest checkdepends = python-responses makedepends = python-setuptools @@ -21,7 +19,7 @@ pkgbase = python-fxa depends = python-pyjwt depends = python-requests depends = python-six - source = https://github.com/mozilla/PyFxA/archive/v0.7.7/python-fxa-0.7.7.tar.gz - sha256sums = d5b5afdafb6b42344d49e4e4df0582758df54e00b8d0fa3cbc29433410aa9a6f + source = python-fxa-0.7.8.tar.gz::https://github.com/mozilla/PyFxA/archive/refs/tags/0.7.8.tar.gz + sha256sums = 458d46274c0c7992472a4309f186a28ad970c6240f2caf6a31d7c3655ff5d62e pkgname = python-fxa ===================================== PKGBUILD ===================================== @@ -3,17 +3,17 @@ _pkgname=PyFxA pkgname=python-fxa -pkgver=0.7.7 -pkgrel=8 +pkgver=0.7.8 +pkgrel=1 pkgdesc='Python library for interacting with the Firefox Accounts ecosystem' arch=('any') url='https://github.com/mozilla/PyFxA' license=('MPL-2.0') depends=('python-browserid' 'python-cryptography' 'python-hawkauthlib' 'python-pyjwt' 'python-requests' 'python-six') makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel') -checkdepends=('python-grequests' 'python-pyotp' 'python-pytest-cov' 'python-pytest-flake8' 'python-pytest' 'python-responses') -source=("https://github.com/mozilla/$_pkgname/archive/v$pkgver/$pkgname-$pkgver.tar.gz") -sha256sums=('d5b5afdafb6b42344d49e4e4df0582758df54e00b8d0fa3cbc29433410aa9a6f') +checkdepends=('python-grequests' 'python-pyotp' 'python-pytest' 'python-responses') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/mozilla/$_pkgname/archive/refs/tags/${pkgver}.tar.gz") +sha256sums=('458d46274c0c7992472a4309f186a28ad970c6240f2caf6a31d7c3655ff5d62e') build() { cd $_pkgname-$pkgver @@ -22,7 +22,30 @@ build() { check() { cd $_pkgname-$pkgver - pytest || echo 'Some tests failed' + # https://github.com/mozilla/PyFxA/issues/102 + local pytest_skip=( + --deselect fxa/tests/test_core.py::TestCoreClient::test_account_creation + --deselect fxa/tests/test_core.py::TestCoreClient::test_account_creation_with_key_fetch + --deselect fxa/tests/test_core.py::TestCoreClient::test_account_login + --deselect fxa/tests/test_core.py::TestCoreClient::test_email_code_verification + --deselect fxa/tests/test_core.py::TestCoreClient::test_forgot_password_flow + --deselect fxa/tests/test_core.py::TestCoreClient::test_get_random_bytes + --deselect fxa/tests/test_core.py::TestCoreClient::test_resend_verify_code + --deselect fxa/tests/test_core.py::TestCoreClient::test_send_unblock_code + --deselect fxa/tests/test_core.py::TestCoreClientSession::test_change_password + --deselect fxa/tests/test_core.py::TestCoreClientSession::test_email_status + --deselect fxa/tests/test_core.py::TestCoreClientSession::test_get_identity_assertion + --deselect fxa/tests/test_core.py::TestCoreClientSession::test_get_identity_assertion_accepts_service + --deselect fxa/tests/test_core.py::TestCoreClientSession::test_get_identity_assertion_handles_duration + --deselect fxa/tests/test_core.py::TestCoreClientSession::test_get_random_bytes + --deselect fxa/tests/test_core.py::TestCoreClientSession::test_session_status + --deselect fxa/tests/test_core.py::TestCoreClientSession::test_sign_certificate + --deselect fxa/tests/test_core.py::TestCoreClientSession::test_sign_certificate_handles_duration + --deselect fxa/tests/test_core.py::TestCoreClientSession::test_totp + ) + + # override pytest options to skip pytest-cov/pytest-flake8 requirements + pytest -o addopts='' "${pytest_skip[@]}" } package() { View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-fxa/-/commit/1fd275380934a1c6f331fb60fd7230e5099adf70 -- This project does not include diff previews in email notifications. View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-fxa/-/commit/1fd275380934a1c6f331fb60fd7230e5099adf70 You're receiving this email because of your account on gitlab.archlinux.org.