[arch-commits] Commit in python-babel/repos/community-any (PKGBUILD PKGBUILD)

Eli Schwartz eschwartz at archlinux.org
Wed Nov 11 19:46:17 UTC 2020


    Date: Wednesday, November 11, 2020 @ 19:46:17
  Author: eschwartz
Revision: 751203

archrelease: copy trunk to community-any

... for real this time. The first time, it ended up borking, then committing
local modifications from a test session.

Added:
  python-babel/repos/community-any/PKGBUILD
    (from rev 751202, python-babel/trunk/PKGBUILD)
Deleted:
  python-babel/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  123 +++++++++++++++++++++++--------------------------------------
 1 file changed, 48 insertions(+), 75 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-11 19:42:10 UTC (rev 751202)
+++ PKGBUILD	2020-11-11 19:46:17 UTC (rev 751203)
@@ -1,75 +0,0 @@
-# Maintainer: Morten Linderud <foxboron at archlinux.no>
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Contributor : Giedrius Slavinskas <giedrius25 at gmail.com>
-
-pkgbase=python-babel
-pkgname=(python-babel python2-babel)
-pkgver=2.8.1
-_core=36
-pkgrel=4
-pkgdesc="A collection of tools for internationalizing Python applications"
-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')
-noextract=("cldr-core-$_core.zip")
-source=("$pkgbase-$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")
-sha256sums=('2324e41ffb439a83748813e54718574c094222bb32996d466958a7a3d6c23a47'
-            '07279e56c1f4266d140b907ef3ec379dce0a99542303a9628562ac5fe460ba43')
-source+=("git+https://github.com/python-babel/babel.git")
-makedepends+=('git')
-sha256sums+=('SKIP')
-
-prepare() {
-  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
-  cp "$srcdir"/cldr-core-$_core.zip babel/cldr/cldr-core-$_core.zip
-}
-
-build(){
-  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
-
-  cd "$srcdir/babel"
-  python setup.py import_cldr
-  python setup.py build
-}
-
-check(){
-  cd "$srcdir/babel"
-  python setup.py pytest
-
-  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
-}

Copied: python-babel/repos/community-any/PKGBUILD (from rev 751202, python-babel/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-11-11 19:46:17 UTC (rev 751203)
@@ -0,0 +1,48 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.no>
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor : Giedrius Slavinskas <giedrius25 at gmail.com>
+
+pkgname=python-babel
+pkgver=2.8.1
+_core=36
+pkgrel=1
+pkgdesc="A collection of tools for internationalizing Python applications"
+url="http://babel.pocoo.org/"
+license=("BSD")
+arch=('any')
+depends=('python' 'python-pytz')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-pytest-runner' 'python-freezegun')
+noextract=("cldr-core-$_core.zip")
+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=('2324e41ffb439a83748813e54718574c094222bb32996d466958a7a3d6c23a47'
+            '07279e56c1f4266d140b907ef3ec379dce0a99542303a9628562ac5fe460ba43'
+            '13adbc61cf0c59f215f38cd5b1a4dc3c29f2e35c9e9d054f64a9f03308401b0a')
+
+prepare() {
+  # Python 3.9 fixes
+  patch -Np1 -d babel-$pkgver <python-3.9.patch
+
+  cp "$srcdir"/cldr-core-$_core.zip babel-$pkgver/cldr/cldr-core-$_core.zip
+}
+
+build(){
+  cd "$srcdir/babel-$pkgver"
+  python setup.py import_cldr
+  python setup.py build
+}
+
+check(){
+  cd "$srcdir/babel-$pkgver"
+  # the tests fail if running in the wrong timezone:
+  # https://github.com/python-babel/babel/issues/757
+  TZ=UTC python setup.py pytest
+}
+
+package_python-babel() {
+  cd "$srcdir"/babel-${pkgver}
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -D -m0644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list