Date: Friday, April 7, 2023 @ 04:05:04
  Author: felixonmars
Revision: 1440445

archrelease: copy trunk to community-staging-any

Added:
  python-py/repos/community-staging-any/
  python-py/repos/community-staging-any/PKGBUILD
    (from rev 1440443, python-py/trunk/PKGBUILD)

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

Copied: python-py/repos/community-staging-any/PKGBUILD (from rev 1440443, 
python-py/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-07 04:05:04 UTC (rev 1440445)
@@ -0,0 +1,44 @@
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: Sebastian Wiesner <lunaryorn googlemail com>
+# Contributor: Igor Ramos Tiburcio <[email protected]>
+# Contributor: Wieland Hoffmann <[email protected]>
+# Contributor: Hervé Cauwelier <herve ¤ oursours.net>
+# Contributor: Felix Kaiser <[email protected]>
+
+pkgname=python-py
+pkgver=1.11.0
+_commit=447bac514febbb5433963582103d48bb27b3db17
+pkgrel=3
+pkgdesc="library with cross-python path, ini-parsing, io, code, log facilities"
+arch=('any')
+license=('MIT')
+url="https://py.readthedocs.io/";
+depends=('python-iniconfig' 'python-apipkg')
+makedepends=('git' 'python-setuptools' 'python-setuptools-scm')
+checkdepends=('python-pytest-runner')
+source=("git+https://github.com/pytest-dev/py.git#commit=$_commit";)
+sha512sums=('SKIP')
+
+prepare() {
+  cd py
+  # pytest 4
+  git show f4ed62ad39f289d09b3efdfed7305f935ce60bfc -- testing | git apply -
+  rm -r py/_vendored_packages
+}
+
+build() {
+  cd py
+  python setup.py build
+}
+
+check() {
+  # Known failure: https://github.com/pytest-dev/py/issues/104
+  cd py
+  python setup.py pytest || echo "Tests failed"
+}
+
+package() {
+  cd py
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}

Reply via email to