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


Commits:
c432f245 by loqs at 2024-03-07T03:25:45+00:00
Replace python-pytest-runner with python-pytest

- - - - -
48a542c6 by loqs at 2024-03-07T03:27:04+00:00
Change to a PEP 517 based workflow

- - - - -
1363beb2 by loqs at 2024-03-07T03:29:37+00:00
Change to SPDX license identifier

https://github.com/scrapy/protego/blob/0.2.1/LICENSE

- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -5,27 +5,27 @@ pkgver=0.2.1
 pkgrel=2
 pkgdesc="A pure-Python robots.txt parser with support for modern conventions"
 url="https://github.com/scrapy/protego";
-license=('BSD')
+license=('BSD-3-Clause')
 arch=('any')
 depends=('python-six')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest-runner')
+makedepends=('python-setuptools' 'python-build' 'python-installer' 
'python-wheel')
+checkdepends=('python-pytest')
 
source=("$pkgname-$pkgver.tar.gz::https://github.com/scrapy/protego/archive/$pkgver.tar.gz";)
 
sha512sums=('ef8a8196d8ece577eec90cc2e2cca2899625bd777c18f01c8e72a6130d4c2c13f71fa6e32a3e8e43b749f7556f4e3dbb1662e5e94ae18e6c8a7eef950779be1b')
 
 build() {
   cd protego-$pkgver
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
   cd protego-$pkgver
-  python setup.py pytest
+  PYTHONPATH="$PWD"/src pytest
 }
 
 package() {
   cd protego-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
+  python -m installer --destdir="$pkgdir" dist/*.whl
 
   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-protego/-/compare/ccf002711be3b76b5f8ebb94a2e39365df03a225...1363beb27f2d55c7f23ecd089019503265314805

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-protego/-/compare/ccf002711be3b76b5f8ebb94a2e39365df03a225...1363beb27f2d55c7f23ecd089019503265314805
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to