[arch-commits] Commit in python-freezegun/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu May 30 07:43:13 UTC 2019
Date: Thursday, May 30, 2019 @ 07:43:12
Author: felixonmars
Revision: 474478
archrelease: copy trunk to community-any
Added:
python-freezegun/repos/community-any/PKGBUILD
(from rev 474477, python-freezegun/trunk/PKGBUILD)
Deleted:
python-freezegun/repos/community-any/PKGBUILD
----------+
PKGBUILD | 100 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 50 insertions(+), 50 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-05-30 07:43:00 UTC (rev 474477)
+++ PKGBUILD 2019-05-30 07:43:12 UTC (rev 474478)
@@ -1,50 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-freezegun
-pkgname=('python-freezegun' 'python2-freezegun')
-pkgver=0.3.11
-pkgrel=1
-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-nose' 'python2-nose' 'python-mock' 'python2-mock'
- 'python-coverage' 'python2-coverage' 'python-dateutil' 'python2-dateutil')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/spulec/freezegun/archive/$pkgver.tar.gz")
-sha512sums=('6cb5aa96ef400f62fb65d81f38a8a4cfa21f7ed755c071313ea0d6f02dd4aeaf167bcc122fb22aabe99e932af60d8c53a0dfe4d505ddc858ff14828dd98361a0')
-
-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
- nosetests3 || warning "Tests failed"
-
- cd "$srcdir"/freezegun-$pkgver-py2
- nosetests2
-}
-
-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 474477, python-freezegun/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-05-30 07:43:12 UTC (rev 474478)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-freezegun
+pkgname=('python-freezegun' 'python2-freezegun')
+pkgver=0.3.12
+pkgrel=1
+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' 'python-mock' 'python2-mock'
+ 'python-coverage' 'python2-coverage' 'python-dateutil' 'python2-dateutil')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/spulec/freezegun/archive/$pkgver.tar.gz")
+sha512sums=('175025bb4a58de253e5c4f896fc7f5c0b18bdb4656d7e6bc54f9fa84f88cbbc527553e36b7cac129b83222737ff81c62f7677f7f9c63cc24bd3cf03f1087497e')
+
+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 || warning "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
+}
More information about the arch-commits
mailing list