diff options
author | Britney Fransen <brfransen@gmail.com> | 2020-10-04 14:08:04 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2020-10-04 14:08:04 (GMT) |
commit | ea80c3f2626d1476c507f1f3bbae75510c05c9f4 (patch) | |
tree | b1d6bffa5d6d5e967ce3031aeafa8ca51d6634aa /abs | |
parent | fbd64649b17ae4b654cf07f02bfdf3b4d90d3ab4 (diff) | |
download | linhes_pkgbuild-ea80c3f2626d1476c507f1f3bbae75510c05c9f4.zip linhes_pkgbuild-ea80c3f2626d1476c507f1f3bbae75510c05c9f4.tar.gz linhes_pkgbuild-ea80c3f2626d1476c507f1f3bbae75510c05c9f4.tar.bz2 |
python-ordered-set: update to 4.0.2
Diffstat (limited to 'abs')
-rw-r--r-- | abs/core/python_modules/python-ordered-set/PKGBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-ordered-set/PKGBUILD b/abs/core/python_modules/python-ordered-set/PKGBUILD new file mode 100644 index 0000000..cb67a21 --- /dev/null +++ b/abs/core/python_modules/python-ordered-set/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Felix Yan <felixonmars@archlinux.org> +# Contributor: Tobias Roettger <toroettg@gmail.com> + +pkgname=python-ordered-set +pkgver=4.0.2 +pkgrel=1 +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=('python') +makedepends=('python-setuptools') +checkdepends=('python-pytest') +source=("https://pypi.io/packages/source/o/ordered-set/ordered-set-$pkgver.tar.gz") +md5sums=('5d88f3870c32d4868b28c8fe833f7e74') + +build() { + cd ordered-set-$pkgver + python setup.py build +} + +check() { + cd ordered-set-$pkgver + pytest --doctest-modules test.py ordered_set.py README.md --doctest-glob=README.md --ignore=setup.py +} + +package() { + cd ordered-set-$pkgver + python setup.py install --root="$pkgdir/" --optimize=1 + install -Dm644 MIT-LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ +} + +# vim:set ts=2 sw=2 et: |