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

Eli Schwartz eschwartz at archlinux.org
Wed Nov 11 12:19:59 UTC 2020


    Date: Wednesday, November 11, 2020 @ 12:19:59
  Author: eschwartz
Revision: 750767

python-babel: drop no longer needed python2 package

Modified:
  python-babel/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-11 12:08:32 UTC (rev 750766)
+++ PKGBUILD	2020-11-11 12:19:59 UTC (rev 750767)
@@ -2,8 +2,7 @@
 # Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
 # Contributor : Giedrius Slavinskas <giedrius25 at gmail.com>
 
-pkgbase=python-babel
-pkgname=(python-babel python2-babel)
+pkgname=python-babel
 pkgver=2.8.0
 _core=36
 pkgrel=5
@@ -11,13 +10,11 @@
 url="http://babel.pocoo.org/"
 license=("BSD")
 arch=('any')
-makedepends=('python' 'python2'
-             'python-setuptools' 'python2-setuptools'
-             'python-pytz' 'python2-pytz')
-checkdepends=('python-pytest' 'python-pytest-runner' 'python-freezegun'
-              'python-pytest-runner' 'python2-pytest-runner' 'python2-freezegun')
+depends=('python' 'python-pytz')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-pytest-runner' 'python-freezegun')
 noextract=("cldr-core-$_core.zip")
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/python-babel/babel/archive/v$pkgver.tar.gz"
+source=("$pkgname-$pkgver.tar.gz::https://github.com/python-babel/babel/archive/v$pkgver.tar.gz"
         "cldr-core-$_core.zip::http://unicode.org/Public/cldr/$_core/core.zip"
         "python-3.9.patch")
 sha256sums=('2d4d29e73e85afd10ff260579303b5479b332eadc393663089dceb14ff6f8b9c'
@@ -28,8 +25,6 @@
   # Python 3.9 fixes
   patch -Np1 -d babel-$pkgver <python-3.9.patch
 
-  cp -a babel-$pkgver{,-py2}
-  cp "$srcdir"/cldr-core-$_core.zip babel-$pkgver-py2/cldr/cldr-core-$_core.zip
   cp "$srcdir"/cldr-core-$_core.zip babel-$pkgver/cldr/cldr-core-$_core.zip
 }
 
@@ -37,33 +32,15 @@
   cd "$srcdir/babel-$pkgver"
   python setup.py import_cldr
   python setup.py build
-
-  cd "$srcdir/babel-$pkgver-py2"
-  python2 setup.py import_cldr
-  python2 setup.py build
 }
 
 check(){
   cd "$srcdir/babel-$pkgver"
   python setup.py pytest
-
-  cd "$srcdir/babel-$pkgver-py2"
-  python2 setup.py pytest
 }
 
 package_python-babel() {
-  depends=('python' 'python-pytz')
-
   cd "$srcdir"/babel-${pkgver}
   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
   install -D -m0644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
-
-package_python2-babel() {
-  depends=('python2' 'python2-pytz')
-
-  cd "$srcdir"/babel-${pkgver}-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
-  mv "$pkgdir"/usr/bin/pybabel "$pkgdir"/usr/bin/pybabel2
-  install -D -m0644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}



More information about the arch-commits mailing list