[arch-commits] Commit in python-mox3/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Mon Nov 9 16:50:26 UTC 2020
Date: Monday, November 9, 2020 @ 16:50:26
Author: foutrelis
Revision: 747591
archrelease: copy trunk to community-staging-any
Added:
python-mox3/repos/community-staging-any/
python-mox3/repos/community-staging-any/PKGBUILD
(from rev 747589, python-mox3/trunk/PKGBUILD)
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Copied: python-mox3/repos/community-staging-any/PKGBUILD (from rev 747589, python-mox3/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-09 16:50:26 UTC (rev 747591)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-mox3
+pkgver=1.1.0
+pkgrel=2
+arch=('any')
+pkgdesc='Mock object framework for Python'
+url='https://docs.openstack.org/developer/mox3'
+license=('Apache')
+depends=('python-pbr' 'python-fixtures')
+checkdepends=('python-oslotest')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/openstack/mox3/archive/$pkgver.tar.gz")
+sha512sums=('e531e0d5e61c7eca75733770a466d6bd5f451250c250c2ba7e751ba9a4e9fae24eb58e452687c3838b341fa0a87f56975b83c3a1164774969bea159719742d10')
+
+export PBR_VERSION=$pkgver
+
+prepare() {
+ # Python 3.6 fixes
+ sed -i 's/, flags=4//' mox3-$pkgver/mox3/tests/test_mox.py
+}
+
+build() {
+ cd mox3-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd mox3-$pkgver
+ stestr run
+}
+
+package() {
+ cd mox3-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list