[arch-commits] Commit in python-ordered-set/repos (staging-any staging-any/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Mon Nov 9 12:01:57 UTC 2020


    Date: Monday, November 9, 2020 @ 12:01:56
  Author: felixonmars
Revision: 399691

archrelease: copy trunk to staging-any

Added:
  python-ordered-set/repos/staging-any/
  python-ordered-set/repos/staging-any/PKGBUILD
    (from rev 399690, python-ordered-set/trunk/PKGBUILD)

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

Copied: python-ordered-set/repos/staging-any/PKGBUILD (from rev 399690, python-ordered-set/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2020-11-09 12:01:56 UTC (rev 399691)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Tobias Roettger <toroettg at gmail.com>
+
+pkgname=python-ordered-set
+pkgver=4.0.2
+pkgrel=2
+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:


More information about the arch-commits mailing list