Browse Source

[trunk] 'python2-ordered-set-3.1.1-3' modify

master
alium 9 months ago
parent
commit
f3ad8280f9
No known key found for this signature in database GPG Key ID: 7FB6B7C6B7DAD63D
  1. 33
      python2-ordered-set/trunk/PKGBUILD

33
python2-ordered-set/trunk/PKGBUILD

@ -0,0 +1,33 @@
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Tobias Roettger <toroettg@gmail.com>
pkgname=python2-ordered-set
pkgver=3.1.1
pkgrel=3
pkgdesc='A MutableSet that remembers its order, so that every entry has an index'
arch=('any')
url="https://github.com/LuminosoInsight/ordered-set"
license=('MIT')
depends=('python2')
makedepends=('python2-setuptools')
checkdepends=('python2-pytest')
source=("https://pypi.io/packages/source/o/ordered-set/ordered-set-$pkgver.tar.gz")
md5sums=('6e12312c8dc4c90fe840e86e8a352644')
build() {
cd ordered-set-$pkgver
python2 setup.py build
}
check() {
cd ordered-set-$pkgver
pytest2 --doctest-modules test.py ordered_set.py README.md --doctest-glob=README.md --ignore=setup.py
}
package() {
cd ordered-set-$pkgver
python2 setup.py install --root="$pkgdir/" --optimize=1
install -Dm644 MIT-LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}
# vim:set ts=2 sw=2 et:
Loading…
Cancel
Save