Felix Yan pushed to branch main at Arch Linux / Packaging / Packages /
python-pytest-localserver
Commits:
53f2bfbd by Felix Yan at 2023-09-03T20:32:05+03:00
upgpkg: 0.8.0-2
- - - - -
1 changed file:
- PKGBUILD
Changes:
=====================================
PKGBUILD
=====================================
@@ -2,35 +2,37 @@
pkgname=python-pytest-localserver
pkgver=0.8.0
-pkgrel=1
+_commit=0daabd75ee634ee8294b09ff857ef4a0440654d3
+pkgrel=2
pkgdesc='py.test plugin to test server connections locally'
arch=('any')
license=('MIT')
-url='https://bitbucket.org/pytest-dev/pytest-localserver'
+url='https://github.com/pytest-dev/pytest-localserver'
depends=('python-pytest' 'python-werkzeug')
optdepends=('python-aiosmtpd: for smtp')
-makedepends=('python-setuptools')
+makedepends=('git' 'python-build' 'python-installer' 'python-setuptools'
'python-wheel'
+ 'python-setuptools-scm')
checkdepends=('python-requests')
-source=(https://files.pythonhosted.org/packages/source/p/pytest-localserver/pytest-localserver-$pkgver.tar.gz)
-sha512sums=('d4e34d8bde3470dbdd7cc3e40f2b88c4d21095c2c43a4bf7452934bc0afa273946282b732924b2fed34b3a9f25ecb170a28c771cbae4d44a0f707090fb7502f1')
+source=(git+https://github.com/pytest-dev/pytest-localserver.git#commit=$_commit)
+sha512sums=('SKIP')
build() {
- cd pytest-localserver-$pkgver
- python setup.py build
+ cd pytest-localserver
+ python -m build -nw
}
check() {
# Hack entry points by installing it
- cd pytest-localserver-$pkgver
- python setup.py install --root="$PWD/tmp_install" --optimize=1
+ cd pytest-localserver
+ python -m installer -d tmp_install dist/*.whl
local site_packages=$(python -c "import site;
print(site.getsitepackages()[0])")
PYTHONPATH="$PWD/tmp_install/$site_packages:$PYTHONPATH" pytest
}
package() {
- cd pytest-localserver-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
+ cd pytest-localserver
+ python -m installer -d "$pkgdir" dist/*.whl
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-pytest-localserver/-/commit/53f2bfbd2f8710f0f54f2c1ec20a56979c033b76
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-pytest-localserver/-/commit/53f2bfbd2f8710f0f54f2c1ec20a56979c033b76
You're receiving this email because of your account on gitlab.archlinux.org.