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

2020-11-13 Thread Felix Yan via arch-commits
Date: Saturday, November 14, 2020 @ 01:01:05
  Author: felixonmars
Revision: 754042

archrelease: copy trunk to community-staging-any

Added:
  python-toposort/repos/community-staging-any/
  python-toposort/repos/community-staging-any/PKGBUILD
(from rev 754041, python-toposort/trunk/PKGBUILD)

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

Copied: python-toposort/repos/community-staging-any/PKGBUILD (from rev 754041, 
python-toposort/trunk/PKGBUILD)
===
--- community-staging-any/PKGBUILD  (rev 0)
+++ community-staging-any/PKGBUILD  2020-11-14 01:01:05 UTC (rev 754042)
@@ -0,0 +1,29 @@
+# Maintainer: Felix Yan 
+
+pkgname=python-toposort
+pkgver=1.5
+pkgrel=5
+pkgdesc='Implements a topological sort algorithm'
+arch=('any')
+license=('Apache')
+url='https://bitbucket.org/ericvsmith/toposort'
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://pypi.io/packages/source/t/toposort/toposort-$pkgver.tar.gz;)
+sha512sums=('d63548c6a03d2141e37741e62065b91033d40cfd454e40acbb9f47e3d1bfeed4434ca31ed55f27a19f52684eafa35b01e519b58dad1e22cce39be082c632712e')
+
+build() {
+  cd toposort-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd toposort-$pkgver
+  python setup.py test
+}
+
+package() {
+  cd toposort-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}


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

2019-11-03 Thread Felix Yan via arch-commits
Date: Monday, November 4, 2019 @ 04:51:23
  Author: felixonmars
Revision: 523140

archrelease: copy trunk to community-staging-any

Added:
  python-toposort/repos/community-staging-any/
  python-toposort/repos/community-staging-any/PKGBUILD
(from rev 523139, python-toposort/trunk/PKGBUILD)

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

Copied: python-toposort/repos/community-staging-any/PKGBUILD (from rev 523139, 
python-toposort/trunk/PKGBUILD)
===
--- community-staging-any/PKGBUILD  (rev 0)
+++ community-staging-any/PKGBUILD  2019-11-04 04:51:23 UTC (rev 523140)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan 
+
+pkgname=python-toposort
+pkgver=1.5
+pkgrel=4
+pkgdesc='Implements a topological sort algorithm'
+arch=('any')
+license=('Apache')
+url='https://bitbucket.org/ericvsmith/toposort'
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("$pkgname-$pkgver.tar.gz::https://bitbucket.org/ericvsmith/toposort/get/$pkgver.tar.bz2;)
+sha512sums=('f79ee4a04b157db164e484be054bed6d310023722cd13469454022eb96ccd3ff5bf6dc570384d3ca790c819b67afa4a96c716da2b99c458d8ddfe2e56e5222a0')
+
+prepare() {
+  mv ericvsmith-toposort-* toposort-$pkgver
+}
+
+build() {
+  cd toposort-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd toposort-$pkgver
+  python setup.py test
+}
+
+package() {
+  cd toposort-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}


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

2018-06-30 Thread Felix Yan via arch-commits
Date: Saturday, June 30, 2018 @ 15:51:21
  Author: felixonmars
Revision: 348340

archrelease: copy trunk to community-staging-any

Added:
  python-toposort/repos/community-staging-any/
  python-toposort/repos/community-staging-any/PKGBUILD
(from rev 348339, python-toposort/trunk/PKGBUILD)

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

Copied: python-toposort/repos/community-staging-any/PKGBUILD (from rev 348339, 
python-toposort/trunk/PKGBUILD)
===
--- community-staging-any/PKGBUILD  (rev 0)
+++ community-staging-any/PKGBUILD  2018-06-30 15:51:21 UTC (rev 348340)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+
+pkgbase=python-toposort
+pkgname=('python-toposort' 'python2-toposort')
+pkgver=1.5
+pkgrel=2
+pkgdesc='Implements a topological sort algorithm'
+arch=('any')
+license=('Apache')
+url='https://bitbucket.org/ericvsmith/toposort'
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("$pkgbase-$pkgver.tar.gz::https://bitbucket.org/ericvsmith/toposort/get/$pkgver.tar.bz2;)
+sha512sums=('f79ee4a04b157db164e484be054bed6d310023722cd13469454022eb96ccd3ff5bf6dc570384d3ca790c819b67afa4a96c716da2b99c458d8ddfe2e56e5222a0')
+
+prepare() {
+  mv ericvsmith-toposort-* toposort-$pkgver
+  cp -a toposort-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/toposort-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/toposort-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/toposort-$pkgver
+  python setup.py test
+
+  cd "$srcdir"/toposort-$pkgver-py2
+  python2 setup.py test
+}
+
+package_python-toposort() {
+  depends=('python')
+
+  cd toposort-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-toposort() {
+  depends=('python2')
+
+  cd toposort-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et: