[arch-commits] Commit in python-sortedcontainers/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Oct 25 16:40:26 UTC 2019
Date: Friday, October 25, 2019 @ 16:40:26
Author: felixonmars
Revision: 519533
archrelease: copy trunk to community-staging-any
Added:
python-sortedcontainers/repos/community-staging-any/
python-sortedcontainers/repos/community-staging-any/PKGBUILD
(from rev 519530, python-sortedcontainers/trunk/PKGBUILD)
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Copied: python-sortedcontainers/repos/community-staging-any/PKGBUILD (from rev 519530, python-sortedcontainers/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 16:40:26 UTC (rev 519533)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-sortedcontainers
+pkgver=2.1.0
+pkgrel=3
+pkgdesc="Python Sorted Container Types: SortedList, SortedDict, and SortedSet"
+arch=('any')
+license=('Apache')
+url="http://www.grantjenks.com/docs/sortedcontainers/"
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/grantjenks/python-sortedcontainers/archive/v$pkgver.tar.gz")
+sha512sums=('1c56daea5d491dbeea9c677677a79ef5c4805325ea3d5da97005cd3b269003a99459550a793dfe65820f152c774371472ba471a7daf61c9d97b36744bafb013b')
+
+prepare() {
+ # Don't use tox
+ sed -i '/tests_require/d' python-sortedcontainers-$pkgver/setup.py
+}
+
+build() {
+ cd python-sortedcontainers-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd python-sortedcontainers-$pkgver
+ python setup.py pytest
+}
+
+package() {
+ cd python-sortedcontainers-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list