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

Evangelos Foutras foutrelis at gemini.archlinux.org
Wed Dec 1 14:55:08 UTC 2021


    Date: Wednesday, December 1, 2021 @ 14:55:07
  Author: foutrelis
Revision: 1059527

archrelease: copy trunk to community-staging-any

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

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

Copied: python-pytest-order/repos/community-staging-any/PKGBUILD (from rev 1059524, python-pytest-order/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 14:55:07 UTC (rev 1059527)
@@ -0,0 +1,37 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkg=pytest-order
+pkgname=python-${_pkg}
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="pytest plugin that allows to customize the test execution order"
+arch=(any)
+url="https://github.com/pytest-dev/pytest-order/"
+license=(MIT)
+depends=(python-pytest)
+makedepends=(python-setuptools)
+checkdepends=(
+    python-pytest-dependency
+    python-pytest-mock
+    python-pytest-xdist
+)
+source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('2761cbaa2de49e8deb2c15b50ae80f1db58925c03d427bd62d01146792cf8d3b')
+
+build() {
+  cd ${_pkg}-${pkgver}
+  python setup.py build
+}
+
+check() {
+  cd ${_pkg}-${pkgver}
+  python -m venv --system-site-packages test-env
+  test-env/bin/python setup.py install --skip-build
+  test-env/bin/python /usr/bin/pytest -v --color=yes
+}
+
+package() {
+  cd ${_pkg}-${pkgver}
+  python setup.py install --root=${pkgdir} --optimize=1 --skip-build
+  install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+}



More information about the arch-commits mailing list