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

Jelle van der Waa jelle at gemini.archlinux.org
Sat Nov 13 14:52:42 UTC 2021


    Date: Saturday, November 13, 2021 @ 14:52:41
  Author: jelle
Revision: 1045418

Drop python2-freezegun

Modified:
  python-freezegun/trunk/PKGBUILD

----------+
 PKGBUILD |   31 ++++++-------------------------
 1 file changed, 6 insertions(+), 25 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-13 14:34:28 UTC (rev 1045417)
+++ PKGBUILD	2021-11-13 14:52:41 UTC (rev 1045418)
@@ -1,28 +1,21 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-freezegun
-pkgname=('python-freezegun' 'python2-freezegun')
+pkgname=python-freezegun
 pkgver=0.3.15
-pkgrel=5
+pkgrel=6
 pkgdesc="Let your Python tests travel through time"
 arch=('any')
 license=('Apache')
 url="https://github.com/spulec/freezegun"
-makedepends=('python-setuptools' 'python2-setuptools' 'python-dateutil' 'python2-dateutil')
-checkdepends=('python-pytest' 'python2-pytest' 'python2-mock')
+depends=('python-dateutil')
+makedepends=('python-setuptools' 'python-dateutil')
+checkdepends=('python-pytest')
 source=("$pkgbase-$pkgver.tar.gz::https://github.com/spulec/freezegun/archive/$pkgver.tar.gz")
 sha512sums=('7b89fa2ba56cbcf274e33eea868d8f3653b0f2c47e91b1df9f72b65a0f1cb04f6364a00d9666afbc629707c5eaa238f36e9ef36b79dacd74d7fd00faea4a1a29')
 
-prepare() {
-  cp -a freezegun-$pkgver{,-py2}
-}
-
 build() {
   cd "$srcdir"/freezegun-$pkgver
   python setup.py build
-
-  cd "$srcdir"/freezegun-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
@@ -29,21 +22,9 @@
   cd "$srcdir"/freezegun-$pkgver
   # https://github.com/spulec/freezegun/issues/250
   pytest || echo "Tests failed"
-
-  cd "$srcdir"/freezegun-$pkgver-py2
-  pytest2
 }
 
-package_python-freezegun() {
-  depends=('python-dateutil')
-
+package() {
   cd freezegun-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
 }
-
-package_python2-freezegun() {
-  depends=('python2-dateutil')
-
-  cd freezegun-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-}



More information about the arch-commits mailing list