[arch-commits] Commit in python-simplejson/trunk (PKGBUILD)
Eli Schwartz
eschwartz at archlinux.org
Sun Feb 28 19:08:37 UTC 2021
Date: Sunday, February 28, 2021 @ 19:08:37
Author: eschwartz
Revision: 876020
upgpkg: python-simplejson 3.17.2-4: drop now-unneeded python2 package
Modified:
python-simplejson/trunk/PKGBUILD
----------+
PKGBUILD | 34 ++++++----------------------------
1 file changed, 6 insertions(+), 28 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-02-28 19:06:12 UTC (rev 876019)
+++ PKGBUILD 2021-02-28 19:08:37 UTC (rev 876020)
@@ -3,42 +3,30 @@
# Contributor: Allan McRae <allan at archlinux.org>
# Contributor: David Moore <davidm at sjsoft.com>
-pkgbase=python-simplejson
-pkgname=('python-simplejson' 'python2-simplejson')
+pkgname=python-simplejson
pkgver=3.17.2
-pkgrel=3
+pkgrel=4
pkgdesc='Simple, fast, extensible JSON encoder/decoder for Python'
license=('MIT')
arch=('x86_64')
url='https://github.com/simplejson/simplejson'
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/simplejson/simplejson/archive/v$pkgver.tar.gz")
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/simplejson/simplejson/archive/v$pkgver.tar.gz")
sha512sums=('59428640d43fdc6927db752a36196f48d00818a87d924358deab7e498709515423ecdd34dece31364c5e8d64b63d99112fd4a4b8a03b9f9c6533268afc38e314')
-prepare() {
- cp -a simplejson-$pkgver{,-py2}
-}
-
build() {
cd "$srcdir"/simplejson-$pkgver
python setup.py build
-
- cd "$srcdir"/simplejson-$pkgver-py2
- python2 setup.py build
}
check() {
cd "$srcdir"/simplejson-$pkgver
python setup.py pytest
-
- cd "$srcdir"/simplejson-$pkgver-py2
- python2 setup.py pytest
}
package_python-simplejson() {
- depends=('python')
-
cd simplejson-$pkgver
python setup.py install --root="$pkgdir"
install -Dm644 "$srcdir"/simplejson-$pkgver/LICENSE.txt \
@@ -45,14 +33,4 @@
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
-package_python2-simplejson() {
- depends=('python2')
-
- cd simplejson-$pkgver-py2
- python2 setup.py install --root="$pkgdir"
- install -Dm644 "$srcdir"/simplejson-$pkgver/LICENSE.txt \
- "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
# vim:set ts=2 sw=2 et:
-
More information about the arch-commits
mailing list