[arch-commits] Commit in python-pytest-services/repos/community-any (2 files)
David Runge
dvzrv at archlinux.org
Fri Sep 25 15:47:19 UTC 2020
Date: Friday, September 25, 2020 @ 15:47:18
Author: dvzrv
Revision: 712028
archrelease: copy trunk to community-any
Added:
python-pytest-services/repos/community-any/PKGBUILD
(from rev 712027, python-pytest-services/trunk/PKGBUILD)
Deleted:
python-pytest-services/repos/community-any/PKGBUILD
----------+
PKGBUILD | 96 +++++++++++++++++++++++++++++--------------------------------
1 file changed, 47 insertions(+), 49 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-09-25 15:47:00 UTC (rev 712027)
+++ PKGBUILD 2020-09-25 15:47:18 UTC (rev 712028)
@@ -1,49 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=pytest-services
-pkgname=python-pytest-services
-pkgver=2.1.0
-pkgrel=1
-pkgdesc="Services plugin for pytest testing framework"
-arch=('any')
-url="https://github.com/pytest-dev/pytest-services"
-license=('MIT')
-depends=('python-setuptools' 'python-pytest' 'python-requests' 'python-psutil'
-'python-zc.lockfile')
-checkdepends=('memcached' 'python-astroid' 'python-coverage' 'python-mock'
-'python-mysqlclient' 'python-pylibmc' 'xorg-server-xvfb')
-# 2.0.1 sdist doesn't have tests on pypi
-# https://github.com/pytest-dev/pytest-services/issues/33
-# source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-source=("${_name}-${pkgver}.tar.gz::https://github.com/pytest-dev/${_name}/archive/${pkgver}.tar.gz")
-sha512sums=('54a487546a2af7996acdbcd63bfc01626832aa41683617cdd345453cf6518afdf03cb8c2465e1f5d28c88b2cc801ffb0d9d4440582865f899e21fe42ab431ebc')
-
-prepare() {
- mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
- cd "$pkgname-$pkgver"
-}
-
-build() {
- cd "$pkgname-$pkgver"
- python setup.py build
-}
-
-check() {
- cd "$pkgname-$pkgver"
- local python_stdlib_basepath="$(python -c "from sysconfig import get_path; print(get_path('stdlib'))")"
- # Hack entry points by installing it
- python setup.py install --root="${PWD}/tmp_install" --optimize=1
- export PYTHONPATH="${PWD}/tmp_install/${python_stdlib_basepath/\//}/site-packages:${PYTHONPATH}:${PWD}/tests"
- pytest -v -k 'not test_mysql'
-}
-
-package() {
- cd "$pkgname-$pkgver"
- python setup.py install --skip-build \
- --optimize=1 \
- --prefix=/usr \
- --root="${pkgdir}"
- install -vDm 644 {AUTHORS,CHANGES,README}.rst \
- -t "${pkgdir}/usr/share/doc/${pkgname}"
- install -vDm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
-}
Copied: python-pytest-services/repos/community-any/PKGBUILD (from rev 712027, python-pytest-services/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-09-25 15:47:18 UTC (rev 712028)
@@ -0,0 +1,47 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=pytest-services
+pkgname=python-pytest-services
+pkgver=2.2.0
+pkgrel=1
+pkgdesc="Services plugin for pytest testing framework"
+arch=('any')
+url="https://github.com/pytest-dev/pytest-services"
+license=('MIT')
+depends=('python-setuptools' 'python-pytest' 'python-requests' 'python-psutil'
+'python-zc.lockfile')
+checkdepends=('memcached' 'python-astroid' 'python-coverage' 'python-mock'
+'python-mysqlclient' 'python-pylibmc' 'xorg-server-xvfb')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('ddae667fb5a10109be71bd6b14503739388a307583cbd01a38d7cc23c9bc334bd45a84acdea71973e3f518472e4bae2ca7a28c4adfa3e976878035959ee71b7c')
+b2sums=('8c2280f041b898e5c7a649b1b5ccbe4da7b1502c69dca3244276310055567d245bbad86644ef8f40d81f5d6043f31dfe9096a32de1a2198efb2d4e5e227055f4')
+
+prepare() {
+ mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+ cd "$pkgname-$pkgver"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ local python_stdlib_basepath="$(python -c "from sysconfig import get_path; print(get_path('stdlib'))")"
+ # Hack entry points by installing it
+ python setup.py install --root="${PWD}/tmp_install" --optimize=1
+ export PYTHONPATH="${PWD}/tmp_install/${python_stdlib_basepath/\//}/site-packages:${PYTHONPATH}:${PWD}/tests"
+ pytest -v -k 'not test_mysql'
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ python setup.py install --skip-build \
+ --optimize=1 \
+ --prefix=/usr \
+ --root="${pkgdir}"
+ install -vDm 644 {AUTHORS,CHANGES,README}.rst \
+ -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -vDm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
More information about the arch-commits
mailing list