Carl Smedstad pushed to branch main at Arch Linux / Packaging / Packages / 
python-rdflib


Commits:
a908f88a by Carl Smedstad at 2024-10-07T05:38:01+02:00
upgpkg: 7.0.0-5: Drop unneeded checkdep python-pytest-cov

https://archlinux.org/todo/drop-python-pytest-cov-dependency-if-unneeded/:

Making the judgement call that deselecting two tests in order to drop the
dependency python-pytest-cov is worth it. Feel free to revert if you disagree.

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,11 +1,11 @@
 pkgbase = python-rdflib
        pkgdesc = A Python library for working with RDF, a simple yet powerful 
language for representing information
        pkgver = 7.0.0
-       pkgrel = 4
+       pkgrel = 5
        url = https://github.com/RDFLib/rdflib
        arch = any
        license = BSD-3-Clause
-       checkdepends = python-pytest-cov
+       checkdepends = python-pytest
        checkdepends = python-html5lib
        checkdepends = python-networkx
        checkdepends = python-pip


=====================================
PKGBUILD
=====================================
@@ -4,7 +4,7 @@
 
 pkgname=python-rdflib
 pkgver=7.0.0
-pkgrel=4
+pkgrel=5
 pkgdesc="A Python library for working with RDF, a simple yet powerful language 
for representing information"
 arch=('any')
 url="https://github.com/RDFLib/rdflib";
@@ -12,8 +12,7 @@ license=('BSD-3-Clause')
 depends=('python-isodate' 'python-pyparsing' 'python-setuptools')
 makedepends=('python-build' 'python-installer' 'python-poetry-core')
 optdepends=('python-html5lib: for html support')
-checkdepends=('python-pytest-cov' 'python-html5lib' 'python-networkx'
-              'python-pip')
+checkdepends=('python-pytest' 'python-html5lib' 'python-networkx' 'python-pip')
 
source=(https://github.com/RDFLib/rdflib/archive/$pkgver/$pkgname-$pkgver.tar.gz)
 
sha512sums=('176192bd2ce8a400e661ced2e21e3dd35783fa1c6c8390f6dee4ac61ca63da5d3a50df3d287f47783631da12452ca3ec92ad06050417029396fe8b3ab0182041')
 
@@ -26,8 +25,15 @@ check() {
   cd rdflib-$pkgver
   python -m venv --system-site-packages test-env
   test-env/bin/python -m installer dist/*.whl
-  test-env/bin/python -m pytest -v \
-    --deselect 
test/test_misc/test_parse_file_guess_format.py::TestFileParserGuessFormat::test_warning
 # https://github.com/RDFLib/rdflib/issues/2748
+  local pytest_args=(
+    -v
+    # https://github.com/RDFLib/rdflib/issues/2748
+    
--deselect=test/test_misc/test_parse_file_guess_format.py::TestFileParserGuessFormat::test_warning
+    # Requires python-pytest-cov.
+    --deselect=test/test_misc/test_plugins.py::test_parser
+    --deselect=test/test_misc/test_plugins.py::test_sparqleval
+  )
+  test-env/bin/python -m pytest "${pytest_args[@]}"
 }
 
 package() {



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-rdflib/-/commit/a908f88a1861315d70e8bf148eee2263d56bd8a0

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-rdflib/-/commit/a908f88a1861315d70e8bf148eee2263d56bd8a0
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to