[arch-commits] Commit in python-munch/repos/community-staging-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Fri Nov 1 13:06:41 UTC 2019
Date: Friday, November 1, 2019 @ 13:06:41
Author: felixonmars
Revision: 521776
archrelease: copy trunk to community-staging-any
Added:
python-munch/repos/community-staging-any/PKGBUILD
(from rev 521775, python-munch/trunk/PKGBUILD)
Deleted:
python-munch/repos/community-staging-any/PKGBUILD
----------+
PKGBUILD | 102 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 52 insertions(+), 50 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-01 13:06:28 UTC (rev 521775)
+++ PKGBUILD 2019-11-01 13:06:41 UTC (rev 521776)
@@ -1,50 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-munch
-pkgname=(python-munch python2-munch)
-pkgver=2.3.2
-pkgrel=3
-pkgdesc="A dot-accessible dictionary (a la JavaScript objects)"
-url="https://github.com/Infinidat/munch"
-license=('MIT')
-arch=('any')
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-pytest' 'python2-pytest' 'python-yaml' 'python2-yaml')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/Infinidat/munch/archive/$pkgver.tar.gz")
-sha512sums=('0890165338e407c934e31fb3dd5b222788cd3bb1b38e4c4aa59931f1e8da79aba0f5d3cbf2eac3edad2e3e51add1d35b46cfffb2e96b68b7493f29feb6f99ac3')
-
-prepare() {
- cp -a munch-$pkgver{,-py2}
-}
-
-build() {
- cd "$srcdir"/munch-$pkgver
- python setup.py build
-
- cd "$srcdir"/munch-$pkgver-py2
- python2 setup.py build
-}
-
-check() {
- cd "$srcdir"/munch-$pkgver
- pytest
-
- cd "$srcdir"/munch-$pkgver-py2
- pytest2
-}
-
-package_python-munch() {
- depends=('python-six')
-
- cd munch-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
- install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
-}
-
-package_python2-munch() {
- depends=('python2-six')
-
- cd munch-$pkgver-py2
- python2 setup.py install --root="$pkgdir" --optimize=1
- install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
-}
Copied: python-munch/repos/community-staging-any/PKGBUILD (from rev 521775, python-munch/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-11-01 13:06:41 UTC (rev 521776)
@@ -0,0 +1,52 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-munch
+pkgname=(python-munch python2-munch)
+pkgver=2.5.0
+pkgrel=1
+pkgdesc="A dot-accessible dictionary (a la JavaScript objects)"
+url="https://github.com/Infinidat/munch"
+license=('MIT')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools' 'git')
+checkdepends=('python-pytest' 'python2-pytest' 'python-yaml' 'python2-yaml')
+source=(https://pypi.io/packages/source/m/munch/munch-${pkgver}.tar.gz)
+sha512sums=('7eca31111f40782a19b49535322bc56d723022d52b0842c4beff512f32fa415a6c75851eb84950358cb6a11693095cafe56364028e48385b11135de414edca21')
+
+prepare() {
+ cp -a munch-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/munch-$pkgver
+ export PYTHONPATH=$PWD
+ python setup.py build
+
+ cd "$srcdir"/munch-$pkgver-py2
+ export PYTHONPATH=$PWD
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/munch-$pkgver
+ pytest
+
+ cd "$srcdir"/munch-$pkgver-py2
+ pytest2
+}
+
+package_python-munch() {
+ depends=('python-six')
+
+ cd munch-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}
+
+package_python2-munch() {
+ depends=('python2-six')
+
+ cd munch-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}
More information about the arch-commits
mailing list