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

Antonio Rojas arojas at archlinux.org
Fri Nov 15 00:14:00 UTC 2019


    Date: Friday, November 15, 2019 @ 00:13:58
  Author: arojas
Revision: 528733

Drop python2

Modified:
  python-marshmallow/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-11-14 23:46:45 UTC (rev 528732)
+++ PKGBUILD	2019-11-15 00:13:58 UTC (rev 528733)
@@ -1,7 +1,6 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-marshmallow
-pkgname=(python-marshmallow python2-marshmallow)
+pkgname=python-marshmallow
 pkgver=2.20.1
 pkgrel=3
 pkgdesc="A lightweight library for converting complex datatypes to and from native Python datatypes."
@@ -8,46 +7,24 @@
 url="https://github.com/marshmallow-code/marshmallow"
 license=('MIT')
 arch=('any')
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-simplejson'
-              'python2-simplejson' 'python-pytz' 'python2-pytz' 'python-dateutil'
-              'python2-dateutil')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-simplejson' 'python-pytz' 'python-dateutil')
 source=("https://pypi.io/packages/source/m/marshmallow/marshmallow-$pkgver.tar.gz")
 sha512sums=('82438d9b4d164ca640ea069ab553ad92280a0b4f5c1aac1defd844d11aebc5efafd52144b2b23a1723c47ebec01a1f6111620d9d046af3a99fc6fb6eb9b91b93')
 
-prepare() {
-  cp -a marshmallow-$pkgver{,-py2}
-  rm -r marshmallow-$pkgver-py2/tests/test_py3
-}
-
 build() {
   cd "$srcdir"/marshmallow-$pkgver
   python setup.py build
-
-  cd "$srcdir"/marshmallow-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
   cd "$srcdir"/marshmallow-$pkgver
   python setup.py pytest
-
-  cd "$srcdir"/marshmallow-$pkgver-py2
-  python2 setup.py pytest
 }
 
-package_python-marshmallow() {
-  depends=('python')
-
+package() {
   cd marshmallow-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
-
-package_python2-marshmallow() {
-  depends=('python2')
-
-  cd marshmallow-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}



More information about the arch-commits mailing list