Carl Smedstad pushed to branch main at Arch Linux / Packaging / Packages /
python-diff-cover
Commits:
f587b330 by Carl Smedstad at 2024-06-23T09:14:18+02:00
Add nvchecker config
- - - - -
cceb22d9 by Carl Smedstad at 2024-06-23T09:46:50+02:00
upgpkg: 9.0.0-1
- - - - -
3 changed files:
- .SRCINFO
- + .nvchecker.toml
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,11 +1,15 @@
pkgbase = python-diff-cover
pkgdesc = Automatically find diff lines that need test coverage
- pkgver = 8.0.3
- pkgrel = 3
+ pkgver = 9.0.0
+ pkgrel = 1
url = https://github.com/Bachmann1234/diff_cover
arch = any
license = Apache-2.0
+ checkdepends = python-pycodestyle
+ checkdepends = python-pyflakes
+ checkdepends = python-pylint
checkdepends = python-pytest
+ checkdepends = python-pytest-datadir
checkdepends = python-pytest-mock
makedepends = python-build
makedepends = python-installer
@@ -17,8 +21,8 @@ pkgbase = python-diff-cover
depends = python-pluggy
depends = python-pygments
optdepends = python-tomli: for TOML support
- source =
diff_cover-8.0.3.tar.gz::https://github.com/Bachmann1234/diff_cover/archive/refs/tags/v8.0.3.tar.gz
- sha512sums =
0c1e67a672e6286f63bb0ceaaecbf9df364513dfd0247a512794608ced7db021497c64109646ab993d3be288963fa17f3461c63bb1ab22df740ef1979e59586e
- b2sums =
bcb9a1b966a4d35b998e19c009bbc7b1971b76b64b9f92c064c3bde1ebc0e4e8036a3b89dd6b24f2aec98ea7403f6b40dc6ed77a9e4a0295c9d7e41313f17e62
+ source =
diff_cover-9.0.0.tar.gz::https://github.com/Bachmann1234/diff_cover/archive/v9.0.0.tar.gz
+ sha512sums =
6afffe838927e53a0d53715475917e43187f485bb898116817bd2d7202e8863195f006a0406c8705c7eda79b7ad68fab3704f9d87e94514fa5ab9e3f785e3c2d
+ b2sums =
738ea8ef6f9095e64ced486027c80a07724bc572600cdeb7fc58b305c999224cdddf4d23a205089b5178dad0dee60c2e276d9a81cf07bd9eca02132ce933b05f
pkgname = python-diff-cover
=====================================
.nvchecker.toml
=====================================
@@ -0,0 +1,3 @@
+[python-diff-cover]
+source = "pypi"
+pypi = "diff-cover"
=====================================
PKGBUILD
=====================================
@@ -1,9 +1,10 @@
-# Maintainer: David Runge <[email protected]>
+# Maintainer: Carl Smedstad <[email protected]>
+# Contributor: David Runge <[email protected]>
-_name=diff_cover
pkgname=python-diff-cover
-pkgver=8.0.3
-pkgrel=3
+_pkgname=diff_cover
+pkgver=9.0.0
+pkgrel=1
pkgdesc="Automatically find diff lines that need test coverage"
arch=(any)
url="https://github.com/Bachmann1234/diff_cover"
@@ -22,32 +23,39 @@ makedepends=(
python-wheel
)
checkdepends=(
+ python-pycodestyle
+ python-pyflakes
+ python-pylint
python-pytest
+ python-pytest-datadir
python-pytest-mock
)
optdepends=('python-tomli: for TOML support')
-source=($_name-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz)
-sha512sums=('0c1e67a672e6286f63bb0ceaaecbf9df364513dfd0247a512794608ced7db021497c64109646ab993d3be288963fa17f3461c63bb1ab22df740ef1979e59586e')
-b2sums=('bcb9a1b966a4d35b998e19c009bbc7b1971b76b64b9f92c064c3bde1ebc0e4e8036a3b89dd6b24f2aec98ea7403f6b40dc6ed77a9e4a0295c9d7e41313f17e62')
+source=("$_pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('6afffe838927e53a0d53715475917e43187f485bb898116817bd2d7202e8863195f006a0406c8705c7eda79b7ad68fab3704f9d87e94514fa5ab9e3f785e3c2d')
+b2sums=('738ea8ef6f9095e64ced486027c80a07724bc572600cdeb7fc58b305c999224cdddf4d23a205089b5178dad0dee60c2e276d9a81cf07bd9eca02132ce933b05f')
+
+_archive="$_pkgname-$pkgver"
build() {
- cd $_name-$pkgver
+ cd "$_archive"
+
python -m build --wheel --no-isolation
}
check() {
- local _site_packages=$(python -c "import site;
print(site.getsitepackages()[0])")
-
- cd $_name-$pkgver
- # install to temporary location, as importlib is used
- python -m installer --destdir=test_dir dist/*.whl
- export PYTHONPATH="test_dir/$_site_packages:$PYTHONPATH"
- # ignore integration and code style checks
- pytest -vv --ignore 'tests/test_integration.py' --ignore
'tests/test_violations_reporter.py' --ignore
'tests/test_clover_violations_reporter.py'
+ cd "$_archive"
+
+ python -m installer -d tmp_install dist/*.whl
+ local site_packages=$(python -c "import site;
print(site.getsitepackages()[0])")
+ # Deselect failing test - unsure of why it fails.
+ PYTHONPATH="$PWD/tmp_install/$site_packages" pytest \
+ --deselect
'tests/test_violations_reporter.py::TestFlake8QualityReporterTest::test_file_does_not_exist'
}
package() {
- cd $_name-$pkgver
+ cd "$_archive"
+
python -m installer --destdir="$pkgdir" dist/*.whl
- install -vDm 644 README.rst -t "$pkgdir/usr/share/doc/$pkgname/"
+ install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.rst
}
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-diff-cover/-/compare/5a9e5b807d97a4aa38f432a59d5e5b6e2a04a2b9...cceb22d98c31cbd79e312b8b863f91389a5c9b53
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-diff-cover/-/compare/5a9e5b807d97a4aa38f432a59d5e5b6e2a04a2b9...cceb22d98c31cbd79e312b8b863f91389a5c9b53
You're receiving this email because of your account on gitlab.archlinux.org.