[arch-commits] Commit in python-diff-cover/trunk (PKGBUILD)

David Runge dvzrv at gemini.archlinux.org
Mon Apr 4 17:57:20 UTC 2022


    Date: Monday, April 4, 2022 @ 17:57:19
  Author: dvzrv
Revision: 1181358

upgpkg: python-diff-cover 6.4.5-1: Upgrade to 6.4.5.

Remove unneeded quotes and curly braces.
Switch to PEP517.

Modified:
  python-diff-cover/trunk/PKGBUILD

----------+
 PKGBUILD |   30 +++++++++++++++---------------
 1 file changed, 15 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-04-04 17:40:45 UTC (rev 1181357)
+++ PKGBUILD	2022-04-04 17:57:19 UTC (rev 1181358)
@@ -2,26 +2,26 @@
 
 _name=diff_cover
 pkgname=python-diff-cover
-pkgver=6.4.4
-pkgrel=2
+pkgver=6.4.5
+pkgrel=1
 pkgdesc="Automatically find diff lines that need test coverage"
 arch=(any)
 url="https://github.com/Bachmann1234/diff_cover"
 license=(Apache)
 depends=(python-chardet python-jinja python-pluggy python-pygments)
-makedepends=(python-setuptools)
+makedepends=(python-build python-installer python-poetry python-wheel)
 checkdepends=(python-pytest python-pytest-mock python-tomli)
 optdepends=('python-tomli: for TOML support')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"{,.asc})
-sha512sums=('10e19a6a1585f043f18aa9bf73a788d1b69b876eaab7fc3567e93e3a5f7d6731dae0a9f4459b51e4dc2543b3479843c20b2ca226ceab2b6a5de3540048de4a8e'
+source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz{,.asc})
+sha512sums=('30b5156c941a62ba1103ac0563f872fd1ce844b4d0ce6c0e3f7fd496a1d0bdba16df10036a5aa20bb5c718e77a37d66307e0a7083547077ed54d5de1e0386444'
             'SKIP')
-b2sums=('98527bc20a9325ad7cbe3086ba3635a208bc8037d527d97b5bb1ac2f022691e7e52206d27f7e2588c6daac224ccf644116b0db838c09667de813378626def1e8'
+b2sums=('df16b9ddfb737d5f5fa3812b5bee3f7a46b3e00fc4b22fded5ab5be106047edac82c968ce07865692c79273531a6da516a0ea7ba548d165c273fe1090c11030d'
         'SKIP')
 validpgpkeys=('54CAEABCAC2956D407348256972401BDE60128CB') # Matt Bachmann <matt.bachmann at lola.com>
 
 build() {
-  cd "${_name}-${pkgver}"
-  python setup.py build
+  cd $_name-$pkgver
+  python -m build --wheel --no-isolation
 }
 
 check() {
@@ -28,16 +28,16 @@
   local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
   local _test_dir='test_dir'
 
-  cd "${_name}-${pkgver}"
+  cd $_name-$pkgver
   # install to temporary location, as importlib is used
-  python setup.py install --optimize=1 --root="${_test_dir}"
-  PYTHONPATH="${_test_dir}/${_site_packages}:${PYTHONPATH}" \
+  python -m installer --destdir="$_test_dir" dist/*.whl
+  export PYTHONPATH="$_test_dir/$_site_packages:$PYTHONPATH"
   # ignore integration and code style checks
-  pytest -v --ignore 'tests/test_integration.py' --ignore 'tests/test_violations_reporter.py' --ignore 'tests/test_clover_violations_reporter.py'
+  pytest -vv --ignore 'tests/test_integration.py' --ignore 'tests/test_violations_reporter.py' --ignore 'tests/test_clover_violations_reporter.py'
 }
 
 package() {
-  cd "${_name}-${pkgver}"
-  python setup.py install --optimize=1 --root="${pkgdir}"
-  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+  cd $_name-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -vDm 644 README.rst -t "$pkgdir/usr/share/doc/$pkgname"
 }



More information about the arch-commits mailing list