Carl Smedstad pushed to branch main at Arch Linux / Packaging / Packages /
python-prawcore
Commits:
1b388af7 by Carl Smedstad at 2024-12-31T10:29:39+01:00
Use SPDX license identifier
- - - - -
35366cbe by Carl Smedstad at 2024-12-31T10:30:04+01:00
Add implicitly satisfied dep python
- - - - -
c6cc19f7 by Carl Smedstad at 2024-12-31T10:32:13+01:00
upgpkg: 2.4.0-4: Deselect tests failing with python-urllib3-2.3.0
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,16 +1,17 @@
pkgbase = python-prawcore
pkgdesc = Low-level communication layer for PRAW 4+.
pkgver = 2.4.0
- pkgrel = 3
+ pkgrel = 4
url = https://github.com/praw-dev/prawcore
arch = any
- license = BSD
+ license = BSD-2-Clause
checkdepends = python-betamax
checkdepends = python-pytest
checkdepends = python-urllib3
makedepends = python-build
makedepends = python-installer
makedepends = python-flit-core
+ depends = python
depends = python-requests
source =
python-prawcore-2.4.0.tar.gz::https://github.com/praw-dev/prawcore/archive/v2.4.0.tar.gz
sha512sums =
6b7464e80d612de9e9cf118fa21abcca61d160150a422175353895efe89757a3e4d417122af2956c0b5aebc59de855866ea4db6af5162c8ad9ec66971edab80c
=====================================
PKGBUILD
=====================================
@@ -2,12 +2,12 @@
pkgname=python-prawcore
pkgver=2.4.0
-pkgrel=3
+pkgrel=4
pkgdesc="Low-level communication layer for PRAW 4+."
arch=('any')
-license=('BSD')
+license=('BSD-2-Clause')
url="https://github.com/praw-dev/prawcore"
-depends=('python-requests')
+depends=('python' 'python-requests')
makedepends=('python-build' 'python-installer' 'python-flit-core')
checkdepends=('python-betamax' 'python-pytest' 'python-urllib3')
source=("$pkgname-$pkgver.tar.gz::https://github.com/praw-dev/prawcore/archive/v$pkgver.tar.gz")
@@ -20,7 +20,20 @@ build() {
check() {
cd prawcore-$pkgver
- pytest
+ # Deselect tests failing with urllib3 >= 2, throwing the following
+ # exception:
+ # requests.exceptions.ChunkedEncodingError: (
+ # 'Connection broken: IncompleteRead(86 bytes read, 30 more expected)',
+ # IncompleteRead(86 bytes read, 30 more expected)
+ # )
+ # I think these tests calls the real Reddit API with bogus credentials and
+ # they now fail because urllib3 >= 2 handles chunked responses differently.
+ pytest \
+ --deselect
ests/integration/test_sessions.py::TestSession::test_request__patch \
+ --deselect
tests/integration/test_authorizer.py::TestAuthorizer::test_revoke__access_token_with_refresh_set
\
+ --deselect
tests/integration/test_authorizer.py::TestAuthorizer::test_revoke__access_token_without_refresh_set
\
+ --deselect
tests/integration/test_authorizer.py::TestAuthorizer::test_revoke__refresh_token_with_access_set
\
+ --deselect
tests/integration/test_authorizer.py::TestScriptAuthorizer::test_refresh__with_scopes
}
package() {
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-prawcore/-/compare/fff9427f160004e87dc135af029cc148db55285a...c6cc19f72f5af59d5fb4050d54f1bdfed74760aa
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-prawcore/-/compare/fff9427f160004e87dc135af029cc148db55285a...c6cc19f72f5af59d5fb4050d54f1bdfed74760aa
You're receiving this email because of your account on gitlab.archlinux.org.