[arch-commits] Commit in python-ordered-set/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sun Jul 19 11:10:49 UTC 2020


    Date: Sunday, July 19, 2020 @ 11:10:49
  Author: felixonmars
Revision: 392279

upgpkg: python-ordered-set 4.0.2-1

Modified:
  python-ordered-set/trunk/PKGBUILD

----------+
 PKGBUILD |   40 ++++++++++------------------------------
 1 file changed, 10 insertions(+), 30 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-19 09:52:45 UTC (rev 392278)
+++ PKGBUILD	2020-07-19 11:10:49 UTC (rev 392279)
@@ -1,53 +1,33 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 # Contributor: Tobias Roettger <toroettg at gmail.com>
 
-pkgbase=python-ordered-set
-pkgname=(python-ordered-set python2-ordered-set)
-pkgver=3.1.1
-pkgrel=2
+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')
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-pytest' 'python2-pytest')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
 source=("https://pypi.io/packages/source/o/ordered-set/ordered-set-$pkgver.tar.gz")
-md5sums=('6e12312c8dc4c90fe840e86e8a352644')
+md5sums=('5d88f3870c32d4868b28c8fe833f7e74')
 
-prepare() {
-  cp -a ordered-set-$pkgver{,-py2}
-}
-
 build() {
-  cd "$srcdir"/ordered-set-$pkgver
+  cd ordered-set-$pkgver
   python setup.py build
-
-  cd "$srcdir"/ordered-set-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/ordered-set-$pkgver
+  cd ordered-set-$pkgver
   pytest --doctest-modules test.py ordered_set.py README.md --doctest-glob=README.md --ignore=setup.py
-
-  cd "$srcdir"/ordered-set-$pkgver-py2
-  pytest2 --doctest-modules test.py ordered_set.py README.md --doctest-glob=README.md --ignore=setup.py
 }
 
-package_python-ordered-set() {
-  depends=('python')
-
+package() {
   cd ordered-set-$pkgver
   python setup.py install --root="$pkgdir/" --optimize=1
   install -Dm644 MIT-LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
 }
 
-package_python2-ordered-set() {
-  depends=('python2')
-
-  cd ordered-set-$pkgver-py2
-  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:



More information about the arch-commits mailing list