Date: Sunday, March 26, 2023 @ 15:14:10
  Author: arojas
Revision: 1429226

upgpkg: python-pydocstyle 6.3.0-1: Update to 6.3.0

Modified:
  python-pydocstyle/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-03-26 15:14:06 UTC (rev 1429225)
+++ PKGBUILD    2023-03-26 15:14:10 UTC (rev 1429226)
@@ -1,30 +1,31 @@
 # Maintainer: Morten Linderud <[email protected]>
 
 pkgname=python-pydocstyle
-pkgver=6.1.1
-pkgrel=4
+pkgver=6.3.0
+pkgrel=1
 pkgdesc="Docstring style checker"
 arch=("any")
 url="http://www.pydocstyle.org/";
 license=("MIT")
 depends=("python-snowballstemmer")
-makedepends=("python-setuptools")
+makedepends=("python-build" "python-installer" "python-poetry-core")
 checkdepends=("python-pytest" "python-pytest-runner" "python-pip" 
"python-snowballstemmer")
 
source=("$pkgname-$pkgver.tar.gz::https://github.com/PyCQA/pydocstyle/archive/${pkgver}.tar.gz";)
-sha256sums=('0ec238b731737da7c9ce3f7c135ee35b992b76a8bfa896007b90bf69a112927c')
+sha256sums=('29ed0e8b1abe5f4590132f456b6f9cbf0866b89fabf836bc9474fde706e2e13e')
 
 build() {
     cd "pydocstyle-${pkgver}"
-    python setup.py build
+    python -m build --wheel --no-isolation
 }
 
 check() {
     cd "pydocstyle-${pkgver}"
-    python setup.py pytest --addopts "-k 'not test_integration'"
+    PYTHONPATH="$PWD"/src \
+    pytest -k 'not test_integration'
 }
 
 package() {
     cd "pydocstyle-${pkgver}"
-    python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
+    python -m installer --destdir="${pkgdir}/" dist/*.whl
     install -Dm644 LICENSE-MIT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }

Reply via email to