[arch-commits] Commit in python-pytest-expect/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sat Oct 26 20:55:30 UTC 2019


    Date: Saturday, October 26, 2019 @ 20:55:30
  Author: felixonmars
Revision: 520676

archrelease: copy trunk to community-staging-any

Added:
  python-pytest-expect/repos/community-staging-any/
  python-pytest-expect/repos/community-staging-any/PKGBUILD
    (from rev 520673, python-pytest-expect/trunk/PKGBUILD)

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

Copied: python-pytest-expect/repos/community-staging-any/PKGBUILD (from rev 520673, python-pytest-expect/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-26 20:55:30 UTC (rev 520676)
@@ -0,0 +1,39 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=pytest-expect
+pkgbase='python-pytest-expect'
+pkgname=('python-pytest-expect' 'python2-pytest-expect')
+pkgver=1.1.0
+pkgrel=3
+pkgdesc="py.test plugin to store test expectations and mark tests based on them"
+arch=('any')
+url="https://github.com/gsnedders/${_pkgname}"
+license=('MIT')
+makedepends=('python-pytest' 'python2-pytest' 'python-u-msgpack' 'python2-u-msgpack')
+source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
+sha256sums=('8392093123dfc9807c28fee251e1d710aaed0d46ee77c7531528fb0a265eb798')
+
+build() {
+  cd "${srcdir}/${_pkgname}-${pkgver}"
+
+  python setup.py build
+  python2 setup.py build
+}
+
+package_python-pytest-expect() {
+  depends=('python-pytest' 'python-u-msgpack')
+
+  cd "${srcdir}/${_pkgname}-${pkgver}"
+  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+
+  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-pytest-expect() {
+  depends+=('python2-pytest' 'python2-u-msgpack')
+
+  cd "${srcdir}/${_pkgname}-${pkgver}"
+  python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+
+  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list