Felix Yan pushed to branch main at Arch Linux / Packaging / Packages / python-requests-mock
Commits: ae894be2 by Felix Yan at 2023-08-08T10:09:22+03:00 upgpkg: 1.11.0-1 - - - - - 1 changed file: - PKGBUILD Changes: ===================================== PKGBUILD ===================================== @@ -1,40 +1,31 @@ # Maintainer: Felix Yan <[email protected]> pkgname=python-requests-mock -pkgver=1.10.0 -pkgrel=3 +pkgver=1.11.0 +_commit=15df8e2b85ae71afea1013b5bf9fd010623acd39 +pkgrel=1 pkgdesc="A mock of useful classes and functions to be used with python-requests." arch=('any') url="https://github.com/jamielennox/requests-mock" license=('Apache') depends=('python-requests' 'python-six') -makedepends=('python-pbr') -checkdepends=('python-purl' 'python-pytest' 'python-requests-futures' - 'python-testrepository') -source=("$pkgname-$pkgver.tar.gz::https://github.com/jamielennox/requests-mock/archive/$pkgver.tar.gz" - "stop-using-python-mock.patch") -sha512sums=('24e34407651a14d89ce24b4fcd32556d7a522c02a3855466c6523c45e88dbc751d560478cc9af1eafc903dc8fdfc8715e1effedd116e33dee96063c980050560' - 'd3616feea24bd17c000664fa809098609376c5220859217b3c0caa193804511d76275d40164f8905f0a863f6634375c7e022464016f6fe64a4124030f4df9307') - -export PBR_VERSION=$pkgver - -prepare() { - cd requests-mock-$pkgver - patch -Np1 -i ${srcdir}/stop-using-python-mock.patch -} +makedepends=('git' 'python-pbr') +checkdepends=('python-purl' 'python-pytest' 'python-requests-futures' 'python-testtools') +source=("git+https://github.com/jamielennox/requests-mock.git#commit=$_commit") +sha512sums=('SKIP') build() { - cd requests-mock-$pkgver + cd requests-mock python setup.py build } check() { - cd requests-mock-$pkgver + cd requests-mock python -m pytest tests/pytest - python setup.py testr + python -m testtools.run discover } package() { - cd requests-mock-$pkgver + cd requests-mock python setup.py install --root="$pkgdir" --optimize=1 } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-requests-mock/-/commit/ae894be289deea86e3833c61fabc50434e372851 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-requests-mock/-/commit/ae894be289deea86e3833c61fabc50434e372851 You're receiving this email because of your account on gitlab.archlinux.org.
