Sven-Hendrik Haase pushed to branch main at Arch Linux / Packaging / Packages / 
python-github3py


Commits:
645cd531 by Carl Smedstad at 2025-10-08T00:01:40+02:00
Use SPDX license identifier

- - - - -
72e05af8 by Carl Smedstad at 2025-10-08T00:01:56+02:00
Replace python-jwcrypto with python-pyjwt

This dep was replaced upstream in 3.1.0, see:
https://github.com/sigmavirus24/github3.py/blob/main/docs/source/release-notes/3.1.0.rst#dependency-change

- - - - -
6f0f3ee1 by Carl Smedstad at 2025-10-08T00:04:02+02:00
Add testing

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -4,7 +4,10 @@ pkgbase = python-github3py
        pkgrel = 3
        url = https://github.com/sigmavirus24/github3.py
        arch = any
-       license = BSD
+       license = BSD-3-Clause
+       checkdepends = python-pytest
+       checkdepends = python-betamax
+       checkdepends = python-betamax-matchers
        makedepends = python-build
        makedepends = python-installer
        makedepends = python-hatchling
@@ -12,7 +15,7 @@ pkgbase = python-github3py
        depends = python-requests
        depends = python-uritemplate
        depends = python-dateutil
-       depends = python-jwcrypto
+       depends = python-pyjwt
        source = 
python-github3py-4.0.1.tar.gz::https://github.com/sigmavirus24/github3.py/archive/refs/tags/4.0.1.tar.gz
        sha256sums = 
7a1c3f157aa3b9e0973e957ac0b402c09a83d405247d278c10eb4c390977f132
 


=====================================
PKGBUILD
=====================================
@@ -7,9 +7,10 @@ pkgrel=3
 pkgdesc="A comprehensive wrapper around the GitHub API (v3)"
 arch=("any")
 url="https://github.com/sigmavirus24/github3.py";
-license=("BSD")
+license=("BSD-3-Clause")
 makedepends=("python-build" "python-installer" "python-hatchling")
-depends=("python" "python-requests" "python-uritemplate" "python-dateutil" 
"python-jwcrypto")
+depends=("python" "python-requests" "python-uritemplate" "python-dateutil" 
"python-pyjwt")
+checkdepends=("python-pytest" "python-betamax" "python-betamax-matchers")
 
source=("$pkgname-$pkgver.tar.gz::https://github.com/sigmavirus24/github3.py/archive/refs/tags/$pkgver.tar.gz";)
 sha256sums=('7a1c3f157aa3b9e0973e957ac0b402c09a83d405247d278c10eb4c390977f132')
 
@@ -18,6 +19,18 @@ build() {
     python -m build --wheel --no-isolation
 }
 
+check() {
+    cd "github3.py-${pkgver}"
+    python -m venv --system-site-packages test-env
+    test-env/bin/python -m installer dist/*.whl
+    # Deselect failing tests, possibly due to requests/urllib3 incompatibility
+    test-env/bin/python -m pytest --override-ini="addopts=" \
+      
--deselect=tests/integration/test_repos_repo.py::TestRepoCommit::test_diff \
+      
--deselect=tests/integration/test_repos_repo.py::TestRepoCommit::test_patch \
+      
--deselect=tests/integration/test_repos_repo.py::TestComparison::test_diff \
+      
--deselect=tests/integration/test_repos_repo.py::TestComparison::test_patch
+}
+
 package() {
     cd "github3.py-${pkgver}"
     python -m installer --destdir="$pkgdir" dist/*.whl



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-github3py/-/compare/16fd13e3282ef4b1ca41802a6c1c85604e597d0c...6f0f3ee1b309a9b12104d5033dc6fca06f12cadc

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-github3py/-/compare/16fd13e3282ef4b1ca41802a6c1c85604e597d0c...6f0f3ee1b309a9b12104d5033dc6fca06f12cadc
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to