Carl Smedstad pushed to branch main at Arch Linux / Packaging / Packages / python-pycountry
Commits: 114bcd7d by Carl Smedstad at 2024-10-06T15:26:21+02:00 Use SPDX license identifier - - - - - f4bbaa24 by Carl Smedstad at 2024-10-06T15:29:35+02:00 upgpkg: 24.6.1-2: Drop unneeded checkdep python-pytest-cov https://archlinux.org/todo/drop-python-pytest-cov-dependency-if-unneeded/ - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -1,13 +1,12 @@ pkgbase = python-pycountry pkgdesc = ISO country, subdivision, language, currency and script definitions and their translations pkgver = 24.6.1 - pkgrel = 1 + pkgrel = 2 url = https://pypi.org/project/pycountry/ arch = any - license = LGPL2.1 + license = LGPL-2.1-or-later checkdepends = python-pytest checkdepends = python-importlib-metadata - checkdepends = python-pytest-cov makedepends = python makedepends = python-build makedepends = python-installer ===================================== PKGBUILD ===================================== @@ -5,17 +5,22 @@ pkgname=python-pycountry pkgver=24.6.1 -pkgrel=1 +pkgrel=2 pkgdesc="ISO country, subdivision, language, currency and script definitions and their translations" arch=('any') url="https://pypi.org/project/pycountry/" -license=('LGPL2.1') +license=('LGPL-2.1-or-later') depends=(python python-lxml) makedepends=('python' 'python-build' 'python-installer' 'python-poetry-core') -checkdepends=('python-pytest' 'python-importlib-metadata' 'python-pytest-cov') +checkdepends=('python-pytest' 'python-importlib-metadata') source=("https://pypi.io/packages/source/p/pycountry/pycountry-${pkgver}.tar.gz") sha512sums=('36d8f68b830d74259a5f9ac1c9c97c1b228b0072613229e6f579ea5af587ab1cd25f0637a2cdd1dbf2ae8225e2aa2958d25f1e6df42d577da821d85c4c49ae93') +prepare() { + cd "pycountry-${pkgver}" + sed -i '/pytest-cov/d' pyproject.toml +} + build(){ cd "pycountry-${pkgver}" python -m build --wheel --no-isolation @@ -25,7 +30,7 @@ check(){ cd "pycountry-${pkgver}" python -m venv --system-site-packages test-env test-env/bin/python -m installer dist/*.whl - test-env/bin/python -m pytest -v + test-env/bin/python -m pytest -v --override-ini="addopts=" # PYTHONPATH="$PWD/src" pytest -v } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-pycountry/-/compare/6de702bfa412145f860aab8cba259e883878af01...f4bbaa24daea60708e95ef343748c9166cf550f5 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-pycountry/-/compare/6de702bfa412145f860aab8cba259e883878af01...f4bbaa24daea60708e95ef343748c9166cf550f5 You're receiving this email because of your account on gitlab.archlinux.org.
