[arch-commits] Commit in python-flasgger/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Wed Dec 25 23:30:07 UTC 2019
Date: Wednesday, December 25, 2019 @ 23:30:07
Author: felixonmars
Revision: 541461
archrelease: copy trunk to community-any
Added:
python-flasgger/repos/community-any/PKGBUILD
(from rev 541460, python-flasgger/trunk/PKGBUILD)
Deleted:
python-flasgger/repos/community-any/PKGBUILD
----------+
PKGBUILD | 104 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 52 insertions(+), 52 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-12-25 23:29:36 UTC (rev 541460)
+++ PKGBUILD 2019-12-25 23:30:07 UTC (rev 541461)
@@ -1,52 +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>
-
-pkgbase=python-flasgger
-pkgname=(python-flasgger python2-flasgger)
-pkgver=0.9.3
-pkgrel=2
-pkgdesc="Extract swagger specs from your flask project"
-url="https://github.com/nicobatty/flasgger"
-license=('PerlArtistic')
-arch=('any')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-flask' 'python2-flask' 'python-yaml'
- 'python2-yaml' 'python-jsonschema' 'python2-jsonschema' 'python-mistune'
- 'python2-mistune' 'python-six' 'python2-six')
-checkdepends=('python-pytest-runner' 'python-flex' 'python-marshmallow' 'python-decorator'
- 'python-apispec-webframeworks' 'python-flask-restful' 'python-flask-jwt')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/nicobatty/flasgger/archive/$pkgver.tar.gz")
-sha512sums=('17178372d42bb33a6e38458737dd944f8cb677147fcd57bd8c7502c204b012ecfd0cbe4918f9a78d429c6f34530f3e282d48805a32812698f4985a3b08f9585e')
-
-prepare() {
- sed -i '/jsonschema<3.0.0/d' flasgger-$pkgver/setup.py
- sed -i 's/schema_name_resolver=None,/schema_name_resolver=lambda x: None,/' flasgger-$pkgver/flasgger/marshmallow_apispec.py
- cp -a flasgger-$pkgver{,-py2}
-}
-
-build() {
- cd "$srcdir"/flasgger-$pkgver
- python setup.py build
-
- cd "$srcdir"/flasgger-$pkgver-py2
- python2 setup.py build
-}
-
-check() {
- cd flasgger-$pkgver
- PYTHONPATH="$PWD/etc/flasgger_package" python setup.py pytest
-}
-
-package_python-flasgger() {
- depends=('python-flask' 'python-yaml' 'python-jsonschema' 'python-mistune' 'python-six')
-
- cd flasgger-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
-}
-
-package_python2-flasgger() {
- depends=('python2-flask' 'python2-yaml' 'python2-jsonschema' 'python2-mistune' 'python2-six')
-
- cd flasgger-$pkgver-py2
- python2 setup.py install --root="$pkgdir" --optimize=1
-}
Copied: python-flasgger/repos/community-any/PKGBUILD (from rev 541460, python-flasgger/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-12-25 23:30:07 UTC (rev 541461)
@@ -0,0 +1,52 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Simon Sapin <simon dot sapin at exyr dot org>
+# Contributor: Kyle Keen <keenerd at gmail.com>
+
+pkgbase=python-flasgger
+pkgname=(python-flasgger python2-flasgger)
+pkgver=0.9.4
+pkgrel=1
+pkgdesc="Extract swagger specs from your flask project"
+url="https://github.com/nicobatty/flasgger"
+license=('PerlArtistic')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-flask' 'python2-flask' 'python-yaml'
+ 'python2-yaml' 'python-jsonschema' 'python2-jsonschema' 'python-mistune'
+ 'python2-mistune' 'python-six' 'python2-six')
+checkdepends=('python-pytest-runner' 'python-flex' 'python-marshmallow' 'python-decorator'
+ 'python-apispec-webframeworks' 'python-flask-restful' 'python-flask-jwt')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/nicobatty/flasgger/archive/$pkgver.tar.gz")
+sha512sums=('a390b29230e49b47e2c5119087f83b05708d02fc1af1c699b45a43791ae5eabd9ad92f86f7a7e4505f2c3d0fd5de4b2eced040508536141e11e90f33b35da985')
+
+prepare() {
+ sed -i '/jsonschema<3.0.0/d' flasgger-$pkgver/setup.py
+ sed -i 's/schema_name_resolver=None,/schema_name_resolver=lambda x: None,/' flasgger-$pkgver/flasgger/marshmallow_apispec.py
+ cp -a flasgger-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/flasgger-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/flasgger-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd flasgger-$pkgver
+ PYTHONPATH="$PWD/etc/flasgger_package" python setup.py pytest
+}
+
+package_python-flasgger() {
+ depends=('python-flask' 'python-yaml' 'python-jsonschema' 'python-mistune' 'python-six')
+
+ cd flasgger-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-flasgger() {
+ depends=('python2-flask' 'python2-yaml' 'python2-jsonschema' 'python2-mistune' 'python2-six')
+
+ cd flasgger-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list