[arch-commits] Commit in python-packaging/repos (staging-any staging-any/PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sat Dec 24 09:48:55 UTC 2016
Date: Saturday, December 24, 2016 @ 09:48:53
Author: felixonmars
Revision: 284559
archrelease: copy trunk to staging-any
Added:
python-packaging/repos/staging-any/
python-packaging/repos/staging-any/PKGBUILD
(from rev 284558, python-packaging/trunk/PKGBUILD)
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Copied: python-packaging/repos/staging-any/PKGBUILD (from rev 284558, python-packaging/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD (rev 0)
+++ staging-any/PKGBUILD 2016-12-24 09:48:53 UTC (rev 284559)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-packaging
+pkgname=(python-packaging python2-packaging)
+pkgver=16.8
+pkgrel=2
+pkgdesc="Core utilities for Python packages"
+arch=('any')
+url="https://github.com/pypa/packaging"
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pyparsing' 'python2-pyparsing' 'git')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-pretend' 'python2-pretend' 'python-coverage' 'python2-coverage')
+source=("git+https://github.com/pypa/packaging.git#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+ cp -a packaging{,-py2}
+}
+
+build() {
+ cd "$srcdir"/packaging
+ python setup.py build
+
+ cd "$srcdir"/packaging-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/packaging
+ python setup.py ptr
+
+ cd "$srcdir"/packaging-py2
+ python2 setup.py ptr
+}
+
+package_python-packaging() {
+ depends=('python-pyparsing' 'python-six')
+
+ cd "$srcdir"/packaging
+ python setup.py install --root "$pkgdir"
+}
+
+package_python2-packaging() {
+ depends=('python2-pyparsing' 'python2-six')
+
+ cd "$srcdir"/packaging-py2
+ python2 setup.py install --root "$pkgdir"
+}
More information about the arch-commits
mailing list