[arch-commits] Commit in python-path.py/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Feb 12 05:54:49 UTC 2018
Date: Monday, February 12, 2018 @ 05:54:48
Author: felixonmars
Revision: 292663
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 292662, python-path.py/trunk/PKGBUILD)
----------+
PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
Copied: python-path.py/repos/community-testing-any/PKGBUILD (from rev 292662, python-path.py/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2018-02-12 05:54:48 UTC (rev 292663)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-path.py
+pkgname=('python-path.py' 'python2-path.py')
+pkgver=11.0
+pkgrel=1
+pkgdesc='A module wrapper for os.path'
+arch=('any')
+license=('MIT')
+url='https://github.com/jaraco/path.py'
+makedepends=('python-setuptools-scm' 'python2-setuptools-scm')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/jaraco/path.py/archive/$pkgver.tar.gz")
+sha512sums=('300c35fde95d9fd2fd6d0ae2000008755651d2342e9f484547e96774fe68cb002bc8834bb90f67248f023db3bc602d7ae7f46b7fe8404a559d762246fe536109')
+
+prepare() {
+ cp -a path.py-$pkgver{,-py2}
+
+ export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+}
+
+build() {
+ cd "$srcdir"/path.py-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/path.py-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/path.py-$pkgver
+ python setup.py pytest
+
+ cd "$srcdir"/path.py-$pkgver-py2
+ python2 setup.py pytest
+}
+
+package_python-path.py() {
+ depends=('python')
+
+ cd path.py-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-path.py() {
+ depends=('python2')
+
+ cd path.py-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list