[arch-commits] Commit in python-freezegun/repos/community-any (PKGBUILD PKGBUILD)
Jelle van der Waa
jelle at gemini.archlinux.org
Sat Nov 13 14:52:53 UTC 2021
Date: Saturday, November 13, 2021 @ 14:52:53
Author: jelle
Revision: 1045419
archrelease: copy trunk to community-any
Added:
python-freezegun/repos/community-any/PKGBUILD
(from rev 1045418, python-freezegun/trunk/PKGBUILD)
Deleted:
python-freezegun/repos/community-any/PKGBUILD
----------+
PKGBUILD | 79 +++++++++++++++++++++++--------------------------------------
1 file changed, 30 insertions(+), 49 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-11-13 14:52:41 UTC (rev 1045418)
+++ PKGBUILD 2021-11-13 14:52:53 UTC (rev 1045419)
@@ -1,49 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-freezegun
-pkgname=('python-freezegun' 'python2-freezegun')
-pkgver=0.3.15
-pkgrel=5
-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')
-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() {
- 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')
-
- 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
-}
Copied: python-freezegun/repos/community-any/PKGBUILD (from rev 1045418, python-freezegun/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-11-13 14:52:53 UTC (rev 1045419)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-freezegun
+pkgver=0.3.15
+pkgrel=6
+pkgdesc="Let your Python tests travel through time"
+arch=('any')
+license=('Apache')
+url="https://github.com/spulec/freezegun"
+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')
+
+build() {
+ cd "$srcdir"/freezegun-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd "$srcdir"/freezegun-$pkgver
+ # https://github.com/spulec/freezegun/issues/250
+ pytest || echo "Tests failed"
+}
+
+package() {
+ cd freezegun-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list