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

Felix Yan felixonmars at archlinux.org
Mon Oct 14 17:38:16 UTC 2019


    Date: Monday, October 14, 2019 @ 17:38:16
  Author: felixonmars
Revision: 515796

archrelease: copy trunk to community-testing-any

Added:
  python-elementpath/repos/community-testing-any/
  python-elementpath/repos/community-testing-any/PKGBUILD
    (from rev 515795, python-elementpath/trunk/PKGBUILD)

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

Copied: python-elementpath/repos/community-testing-any/PKGBUILD (from rev 515795, python-elementpath/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2019-10-14 17:38:16 UTC (rev 515796)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-elementpath
+pkgver=1.3.0
+pkgrel=1
+pkgdesc="XPath 1.0/2.0 parsers and selectors for ElementTree and lxml"
+url="https://github.com/sissaschool/elementpath"
+license=('MIT')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-xmlschema')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/sissaschool/elementpath/archive/v$pkgver.tar.gz")
+sha512sums=('e5fe044079fcf48db264236e5c11a91aaac819b1b8745c0ec438a75f0486bc6fd26c46ab0bb13cd9fb4dcade4301f453cf814c269efc423b77a5dc27e9c47b8c')
+
+build() {
+  cd elementpath-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd elementpath-$pkgver
+  python setup.py pytest || warning "missing it_IT locale for testing"
+}
+
+package() {
+  cd elementpath-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list