[arch-commits] Commit in python-mongoengine/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Wed Mar 11 18:56:37 UTC 2020
Date: Wednesday, March 11, 2020 @ 18:56:37
Author: felixonmars
Revision: 594580
upgpkg: python-mongoengine 0.19.1-1
Modified:
python-mongoengine/trunk/PKGBUILD
----------+
PKGBUILD | 23 +++++++++--------------
1 file changed, 9 insertions(+), 14 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-03-11 18:55:31 UTC (rev 594579)
+++ PKGBUILD 2020-03-11 18:56:37 UTC (rev 594580)
@@ -3,7 +3,7 @@
# Contributor: Kyle Keen <keenerd at gmail.com>
pkgname=python-mongoengine
-pkgver=0.19.0
+pkgver=0.19.1
pkgrel=1
pkgdesc="A Python Object-Document-Mapper for working with MongoDB"
url="https://github.com/MongoEngine/mongoengine"
@@ -12,26 +12,21 @@
depends=('python-pymongo' 'python-six')
optdepends=('python-dateutil: for DateTimeField'
'python-pillow: for ImageField / ImageGridFsProxy')
-makedepends=('python-setuptools')
-checkdepends=('python-nose' 'python-coverage' 'python-blinker' 'python-pillow' 'python-mongomock')
+makedepends=('python-pip')
+checkdepends=('python-pytest-cov' 'python-coverage' 'python-blinker' 'python-pillow' 'python-zipp'
+ 'python-mongomock')
source=("$pkgname-$pkgver.tar.gz::https://github.com/MongoEngine/mongoengine/archive/v$pkgver.tar.gz")
-sha512sums=('8b29f81b9bd83ac572980abe6b3621a42b9509f298f1717a5a044c37f6da6cb5487df3e64f2bd846e219ec4a5d083c4a981379c32272812798050f0503969bf4')
+sha512sums=('fef1f7a55761c3a8c820ce5d5f30dfc354a3426ba50d389fcbf218daa12055c0c63ba42653019179f2d3b8e79f18d86935b773b8a9a1f997f8758b96230bb794')
-prepare() {
- sed -i 's/coverage==/coverage>=/' mongoengine-$pkgver/setup.py
- sed -e 's|mongodb://|mongomock://|g' \
- -e "s|connect(db='mongoenginetest')|connect(db='mongoenginetest', is_mock=True)|" \
- -i mongoengine-$pkgver/tests/*.py mongoengine-$pkgver/tests/*/*.py
-}
-
build() {
- cd "$srcdir"/mongoengine-$pkgver
+ cd mongoengine-$pkgver
python setup.py build
}
check() {
- cd "$srcdir"/mongoengine-$pkgver
- python setup.py nosetests || warning "Tests failed"
+ cd mongoengine-$pkgver
+ # No sane way to run it without mongodb
+ # python -m pytest
}
package() {
More information about the arch-commits
mailing list