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

Felix Yan felixonmars at archlinux.org
Wed Mar 11 18:56:53 UTC 2020


    Date: Wednesday, March 11, 2020 @ 18:56:53
  Author: felixonmars
Revision: 594581

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   77 ++++++++++++++++++++++++++++---------------------------------
 1 file changed, 36 insertions(+), 41 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-11 18:56:37 UTC (rev 594580)
+++ PKGBUILD	2020-03-11 18:56:53 UTC (rev 594581)
@@ -1,41 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Simon Sapin <simon dot sapin at exyr dot org>
-# Contributor: Kyle Keen <keenerd at gmail.com>
-
-pkgname=python-mongoengine
-pkgver=0.19.0
-pkgrel=1
-pkgdesc="A Python Object-Document-Mapper for working with MongoDB"
-url="https://github.com/MongoEngine/mongoengine"
-license=('MIT')
-arch=('any')
-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')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/MongoEngine/mongoengine/archive/v$pkgver.tar.gz")
-sha512sums=('8b29f81b9bd83ac572980abe6b3621a42b9509f298f1717a5a044c37f6da6cb5487df3e64f2bd846e219ec4a5d083c4a981379c32272812798050f0503969bf4')
-
-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
-  python setup.py build
-}
-
-check() {
-  cd "$srcdir"/mongoengine-$pkgver
-  python setup.py nosetests || warning "Tests failed"
-}
-
-package() {
-  cd mongoengine-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}

Copied: python-mongoengine/repos/community-any/PKGBUILD (from rev 594580, python-mongoengine/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-03-11 18:56:53 UTC (rev 594581)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Simon Sapin <simon dot sapin at exyr dot org>
+# Contributor: Kyle Keen <keenerd at gmail.com>
+
+pkgname=python-mongoengine
+pkgver=0.19.1
+pkgrel=1
+pkgdesc="A Python Object-Document-Mapper for working with MongoDB"
+url="https://github.com/MongoEngine/mongoengine"
+license=('MIT')
+arch=('any')
+depends=('python-pymongo' 'python-six')
+optdepends=('python-dateutil: for DateTimeField'
+            'python-pillow: for ImageField / ImageGridFsProxy')
+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=('fef1f7a55761c3a8c820ce5d5f30dfc354a3426ba50d389fcbf218daa12055c0c63ba42653019179f2d3b8e79f18d86935b773b8a9a1f997f8758b96230bb794')
+
+build() {
+  cd mongoengine-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd mongoengine-$pkgver
+  # No sane way to run it without mongodb
+  # python -m pytest
+}
+
+package() {
+  cd mongoengine-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list