Jelle van der Waa pushed to branch main at Arch Linux / Packaging / Packages / 
python-apispec


Commits:
a5b32696 by Jelle van der Waa at 2023-12-27T09:28:37+01:00
Drop pytest-runner from checkdepends

Invoke pytest directly to not use an obsolete setup.py pytest construct.

- - - - -
89836140 by Jelle van der Waa at 2023-12-27T09:42:19+01:00
Switch to PEP517 standard build method

setup.py has been deprecated for a while and as upstream offers a PEP517
alternative use that instead.

- - - - -
075e2019 by Jelle van der Waa at 2023-12-27T09:49:23+01:00
Update with pyproject/pytest-runner removal changes

- - - - -


2 changed files:

- + .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -0,0 +1,27 @@
+pkgbase = python-apispec
+       pkgdesc = A pluggable API specification generator. Currently supports 
the OpenAPI Specification.
+       pkgver = 6.0.2
+       pkgrel = 3
+       url = https://github.com/marshmallow-code/apispec
+       arch = any
+       license = MIT
+       checkdepends = python-tornado
+       checkdepends = python-bottle
+       checkdepends = python-marshmallow
+       checkdepends = python-flask
+       checkdepends = python-prance
+       checkdepends = python-yaml
+       checkdepends = python-openapi-spec-validator
+       checkdepends = python-pytest
+       makedepends = python-setuptools
+       makedepends = python-build
+       makedepends = python-installer
+       makedepends = python-wheel
+       depends = python-packaging
+       optdepends = python-yaml: for yaml support
+       optdepends = python-prance: for validation
+       optdepends = python-openapi-spec-validator: for validation
+       source = 
python-apispec-6.0.2.tar.gz::https://github.com/marshmallow-code/apispec/archive/6.0.2.tar.gz
+       sha512sums = 
aa5e2cc41d5b3c4555da929819135df30192e6f6ff08518d62674495f0d28c14e51a0aa111b289e5f9d7205f821c1fd4e28b914899ea3e15b3e20f6052258117
+
+pkgname = python-apispec


=====================================
PKGBUILD
=====================================
@@ -2,7 +2,7 @@
 
 pkgname=python-apispec
 pkgver=6.0.2
-pkgrel=2
+pkgrel=3
 pkgdesc="A pluggable API specification generator. Currently supports the 
OpenAPI Specification."
 url="https://github.com/marshmallow-code/apispec";
 license=('MIT')
@@ -11,25 +11,25 @@ depends=('python-packaging')
 optdepends=('python-yaml: for yaml support'
             'python-prance: for validation'
             'python-openapi-spec-validator: for validation')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest-runner' 'python-tornado' 'python-bottle' 
'python-marshmallow'
+makedepends=('python-setuptools' 'python-build' 'python-installer' 
'python-wheel')
+checkdepends=('python-tornado' 'python-bottle' 'python-marshmallow'
               'python-flask' 'python-prance' 'python-yaml'
-              'python-openapi-spec-validator')
+              'python-openapi-spec-validator' 'python-pytest')
 
source=("$pkgname-$pkgver.tar.gz::https://github.com/marshmallow-code/apispec/archive/$pkgver.tar.gz";)
 
sha512sums=('aa5e2cc41d5b3c4555da929819135df30192e6f6ff08518d62674495f0d28c14e51a0aa111b289e5f9d7205f821c1fd4e28b914899ea3e15b3e20f6052258117')
 
 build() {
   cd apispec-$pkgver
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
   cd apispec-$pkgver
-  python setup.py pytest
+  PYTHONPATH=src pytest .
 }
 
 package() {
   cd apispec-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
+  python -m installer --destdir="$pkgdir" dist/*.whl
   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-apispec/-/compare/1b3213b3e9a0ced57e0b7fdcf9a97cb35f4b27f4...075e2019afc61bf6f46eed476493022cdeb4118f

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-apispec/-/compare/1b3213b3e9a0ced57e0b7fdcf9a97cb35f4b27f4...075e2019afc61bf6f46eed476493022cdeb4118f
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to