Date: Friday, April 7, 2023 @ 04:18:33
  Author: felixonmars
Revision: 1440500

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 1440498, python-pytest-order/trunk/PKGBUILD)

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

Copied: python-pytest-order/repos/community-staging-any/PKGBUILD (from rev 
1440498, python-pytest-order/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-07 04:18:33 UTC (rev 1440500)
@@ -0,0 +1,37 @@
+# Maintainer: Bruno Pagani <[email protected]>
+
+_pkg=pytest-order
+pkgname=python-${_pkg}
+pkgver=1.0.1
+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=('f60884a769adf9fb11b8d5bdd2f7630bf588c5af7ad1c6835421831258fa0603')
+
+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 -vv --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}/
+}

Reply via email to