Felix Yan pushed to branch main at Arch Linux / Packaging / Packages / 
python-dpcontracts


Commits:
526ee9b4 by Rafael Fontenelle at 2024-02-26T09:05:20-03:00
Remove pytest-runner, SPDX LICENSE, pypa build and installer

- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -5,11 +5,11 @@ pkgver=0.6.0
 pkgrel=10
 pkgdesc="A simple implementation of contracts for Python"
 url="https://github.com/deadpixi/contracts";
-license=('LGPL')
+license=('LGPL-3.0-or-later')
 arch=('any')
 depends=('python')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest-runner')
+makedepends=('python-setuptools' 'python-build' 'python-installer' 
'python-wheel')
+checkdepends=('python-pytest')
 
source=("https://pypi.io/packages/source/d/dpcontracts/dpcontracts-$pkgver.tar.gz";
         "0001-fixing-tox-test-of-README.patch")
 
sha512sums=('451b541c87ee2ccad3ab18f2328ffffff0fd422e137af8227b7c264f7b91b4270de077f79596008f746a37aef1e5762278b209b8923a6126a74a3b32225d4dd5'
@@ -22,15 +22,15 @@ prepare() {
 
 build() {
   cd dpcontracts-$pkgver
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
   cd dpcontracts-$pkgver
-  python setup.py pytest --addopts README.rst
+  PYTHONPATH="$PWD" pytest README.rst
 }
 
 package() {
   cd dpcontracts-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
+  python -m installer --destdir="$pkgdir" dist/*.whl
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-dpcontracts/-/commit/526ee9b4ca2faedc738cb048f866cf5da58551a4

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-dpcontracts/-/commit/526ee9b4ca2faedc738cb048f866cf5da58551a4
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to