[arch-commits] Commit in python-sortedcontainers/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Jun 30 17:55:06 UTC 2018
Date: Saturday, June 30, 2018 @ 17:55:05
Author: foutrelis
Revision: 348760
archrelease: copy trunk to community-staging-any
Added:
python-sortedcontainers/repos/community-staging-any/
python-sortedcontainers/repos/community-staging-any/PKGBUILD
(from rev 348759, python-sortedcontainers/trunk/PKGBUILD)
----------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
Copied: python-sortedcontainers/repos/community-staging-any/PKGBUILD (from rev 348759, python-sortedcontainers/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2018-06-30 17:55:05 UTC (rev 348760)
@@ -0,0 +1,52 @@
+# $Id: PKGBUILD 141139 2015-09-20 03:14:59Z fyan $
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-sortedcontainers
+pkgname=('python-sortedcontainers' 'python2-sortedcontainers')
+pkgver=2.0.4
+pkgrel=2
+pkgdesc="Python Sorted Container Types: SortedList, SortedDict, and SortedSet"
+arch=('any')
+license=('Apache')
+url="http://www.grantjenks.com/docs/sortedcontainers/"
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/grantjenks/python-sortedcontainers/archive/v$pkgver.tar.gz")
+sha512sums=('d533dc1f845bd7406ac0dd2b640fb03b857243c1e7db38986d8b625035f83ea8e8388f404d0e08909feaa94ad8c1b0f2c11329d3136a13c257563a6161dc2558')
+
+prepare() {
+ # Don't use tox
+ sed -i '/tests_require/d' python-sortedcontainers-$pkgver/setup.py
+
+ cp -a python-sortedcontainers-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/python-sortedcontainers-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/python-sortedcontainers-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/python-sortedcontainers-$pkgver
+ python setup.py pytest
+
+ cd "$srcdir"/python-sortedcontainers-$pkgver-py2
+ python2 setup.py pytest
+}
+
+package_python-sortedcontainers() {
+ depends=('python')
+
+ cd python-sortedcontainers-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-sortedcontainers() {
+ depends=('python2')
+
+ cd python-sortedcontainers-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list