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

Felix Yan felixonmars at archlinux.org
Sat May 19 06:39:32 UTC 2018


    Date: Saturday, May 19, 2018 @ 06:39:32
  Author: felixonmars
Revision: 324380

archrelease: copy trunk to community-testing-any

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

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

Copied: python-sortedcontainers/repos/community-testing-any/PKGBUILD (from rev 324379, python-sortedcontainers/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2018-05-19 06:39:32 UTC (rev 324380)
@@ -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.1
+pkgrel=1
+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=('02a4a388851c5a0b0c7c096dc9f26fe8898abf0a06dfd348d9c526ab52f83046f11a87b76c6a01992e3f63bdc5e85c547e41eb4cc647453546bad1cd7c542a91')
+
+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