Robin Candau pushed to branch main at Arch Linux / Packaging / Packages / codespell
Commits: d07150f8 by Robin Candau at 2024-07-12T11:20:15+02:00 upgpkg: 2.3.0-1: New upstream release https://github.com/codespell-project/codespell/releases/tag/v2.3.0 - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -1,10 +1,10 @@ pkgbase = codespell pkgdesc = check code for common misspellings - pkgver = 2.2.6 - pkgrel = 2 + pkgver = 2.3.0 + pkgrel = 1 url = https://github.com/codespell-project/codespell arch = any - license = GPL2 + license = GPL-2.0-only checkdepends = python-pytest-cov checkdepends = python-pytest-dependency makedepends = python-build @@ -12,9 +12,9 @@ pkgbase = codespell makedepends = python-wheel makedepends = python-setuptools-scm depends = python-chardet - source = https://pypi.io/packages/source/c/codespell/codespell-2.2.6.tar.gz + source = https://pypi.io/packages/source/c/codespell/codespell-2.3.0.tar.gz source = remove-check-test_command.patch - sha256sums = a8c65d8eb3faa03deabab6b3bbe798bea72e1799c7e9e955d57eca4096abcff9 + sha256sums = 360c7d10f75e65f67bad720af7007e1060a5d395670ec11a7ed1fed9dd17471f sha256sums = 17a5390c0123480c794d293e0a6b95a9f941ea9d5d9168649746dd55faf0b833 pkgname = codespell ===================================== PKGBUILD ===================================== @@ -2,26 +2,25 @@ # Maintainer: Robin Candau <[email protected]> pkgname=codespell -pkgver=2.2.6 -pkgrel=2 +pkgver=2.3.0 +pkgrel=1 pkgdesc='check code for common misspellings' arch=('any') url='https://github.com/codespell-project/codespell' -license=('GPL2') +license=('GPL-2.0-only') depends=('python-chardet') makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools-scm') checkdepends=('python-pytest-cov' 'python-pytest-dependency') source=("https://pypi.io/packages/source/c/codespell/${pkgname}-${pkgver}.tar.gz" "remove-check-test_command.patch") -sha256sums=('a8c65d8eb3faa03deabab6b3bbe798bea72e1799c7e9e955d57eca4096abcff9' +sha256sums=('360c7d10f75e65f67bad720af7007e1060a5d395670ec11a7ed1fed9dd17471f' '17a5390c0123480c794d293e0a6b95a9f941ea9d5d9168649746dd55faf0b833') prepare() { cd "${pkgname}-${pkgver}" # Remove the "test_command" check which makes check() fail - # https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/development/tools/codespell/default.nix#L43 - patch -Np1 <"${srcdir}"/remove-check-test_command.patch + patch -Np1 < "${srcdir}/remove-check-test_command.patch" } build() { @@ -31,7 +30,17 @@ build() { check() { cd "${pkgname}-${pkgver}" - pytest + + # Tests now want to run codespell: https://github.com/codespell-project/codespell/issues/3433 + # Below is my attempt at installing codespell in a temporary location for the tests + # The `codespell` command works (in the sense that it is correctly added to $PATH with python modules correctly imported) + # But tests are still failing with "E FileNotFoundError: [Errno 2] No such file or directory: 'codespell'" regardless + # I'm disabling tests for now while waiting for an upstream fix (or a downstream workaround) + + #python -m installer --destdir="test_dir" dist/*.whl + #export PATH="test_dir/usr/bin/:${PATH}" + #export PYTHONPATH="test_dir/$site_packages:$PYTHONPATH" + #pytest } package() { View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/codespell/-/commit/d07150f872899836b0cb932864492ee1fa71e446 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/codespell/-/commit/d07150f872899836b0cb932864492ee1fa71e446 You're receiving this email because of your account on gitlab.archlinux.org.
