[arch-commits] Commit in python-path.py/repos (2 files)

Felix Yan felixonmars at archlinux.org
Fri May 31 08:59:29 UTC 2019


    Date: Friday, May 31, 2019 @ 08:59:28
  Author: felixonmars
Revision: 475886

archrelease: copy trunk to community-testing-any

Added:
  python-path.py/repos/community-testing-any/
  python-path.py/repos/community-testing-any/PKGBUILD
    (from rev 475885, python-path.py/trunk/PKGBUILD)

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

Copied: python-path.py/repos/community-testing-any/PKGBUILD (from rev 475885, python-path.py/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2019-05-31 08:59:28 UTC (rev 475886)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-path.py
+pkgver=12.0.1
+pkgrel=1
+pkgdesc='A module wrapper for os.path'
+arch=('any')
+license=('MIT')
+url='https://github.com/jaraco/path.py'
+depends=('python-importlib-metadata')
+makedepends=('python-setuptools-scm')
+checkdepends=('python-pytest-runner' 'python-pytest-flake8')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/jaraco/path.py/archive/$pkgver.tar.gz")
+sha512sums=('5906b31db753374a75e8b1a8515ed3d6ab7b394906ce8d07aea13be77d5e6db164d79c4b1dc517c8c6692b4eef57505a5c739ba54e282dcbda01f37d21e04044')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+  cd path.py-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd path.py-$pkgver
+  python setup.py pytest
+}
+
+package() {
+  cd path.py-$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