[arch-commits] Commit in python-webob/repos/community-staging-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu Nov 12 10:42:36 UTC 2020
Date: Thursday, November 12, 2020 @ 10:42:36
Author: felixonmars
Revision: 751551
archrelease: copy trunk to community-staging-any
Added:
python-webob/repos/community-staging-any/PKGBUILD
(from rev 751550, python-webob/trunk/PKGBUILD)
Deleted:
python-webob/repos/community-staging-any/PKGBUILD
----------+
PKGBUILD | 128 +++++++++++++++++++++++++++----------------------------------
1 file changed, 57 insertions(+), 71 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-12 10:42:14 UTC (rev 751550)
+++ PKGBUILD 2020-11-12 10:42:36 UTC (rev 751551)
@@ -1,71 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Aaron DeVore <aaron.devore at gmail.com>
-# Contributor: Cilyan Olowen <gaknar at gmail.com>
-
-pkgbase='python-webob'
-pkgname=('python-webob' 'python2-webob' 'python-webob-docs')
-pkgver=1.8.6
-pkgrel=2
-pkgdesc="WSGI request and response object"
-arch=('any')
-url="http://pythonpaste.org/webob/"
-license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-sphinx')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner')
-optdepends=('python-webob-docs: documentation')
-source=("https://pypi.io/packages/source/W/WebOb/WebOb-$pkgver.tar.gz")
-sha512sums=('b9a3faac114c55f3e9a6eb71a78dd921d928da99a427dea05bc798bc1fe249f0f1cf8c9b9fcb1b73be2737b9132bbfe2250a8652e3a8a1199ac74fa62a59d44c')
-
-prepare() {
- cp -a WebOb-$pkgver{,-py2}
- cp -a WebOb-$pkgver{,-docs}
- sed -i "s/pkg_resources.get_distribution('webob').version/'$pkgver'/" WebOb-$pkgver-docs/docs/conf.py
-}
-
-build() {
- cd "$srcdir"/WebOb-$pkgver
- python setup.py build
-
- cd "$srcdir"/WebOb-$pkgver-py2
- python2 setup.py build
-
- cd "$srcdir"/WebOb-$pkgver-docs
- PYTHONPATH="$PWD/src" make -C docs html
-}
-
-check() {
- cd "$srcdir"/WebOb-$pkgver
- python setup.py pytest --addopts "--ignore=docs"
-
- cd "$srcdir"/WebOb-$pkgver-py2
- python2 setup.py pytest --addopts "--ignore=docs"
-}
-
-package_python-webob() {
- depends=('python')
-
- cd "$srcdir"/WebOb-$pkgver
- python setup.py install -O1 --root="$pkgdir"
- install -D -m644 "docs/license.txt" \
- "$pkgdir"/usr/share/licenses/$pkgname/license.txt
-}
-
-package_python2-webob() {
- depends=('python2')
-
- cd "$srcdir"/WebOb-$pkgver-py2
- python2 setup.py install -O1 --root="$pkgdir"
- install -D -m644 "docs/license.txt" \
- "$pkgdir"/usr/share/licenses/$pkgname/license.txt
-}
-
-package_python-webob-docs() {
- optdepends=()
-
- cd "$srcdir"/WebOb-$pkgver-docs
- _doc_dir="$pkgdir"/usr/share/docs/python-webob
- mkdir -p "$_doc_dir"
- cp -a "docs/_build/html" "$_doc_dir"
- install -D -m644 "docs/license.txt" \
- "$pkgdir"/usr/share/licenses/$pkgname/license.txt
-}
Copied: python-webob/repos/community-staging-any/PKGBUILD (from rev 751550, python-webob/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-11-12 10:42:36 UTC (rev 751551)
@@ -0,0 +1,57 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Aaron DeVore <aaron.devore at gmail.com>
+# Contributor: Cilyan Olowen <gaknar at gmail.com>
+
+pkgbase='python-webob'
+pkgname=('python-webob' 'python-webob-docs')
+pkgver=1.8.6
+pkgrel=3
+pkgdesc="WSGI request and response object"
+arch=('any')
+url="http://pythonpaste.org/webob/"
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools' 'python-sphinx')
+checkdepends=('python-pytest-runner')
+optdepends=('python-webob-docs: documentation')
+source=("https://pypi.io/packages/source/W/WebOb/WebOb-$pkgver.tar.gz"
+ $pkgname-py39.patch::https://github.com/Pylons/webob/commit/6b5d8c382c26.patch)
+sha512sums=('b9a3faac114c55f3e9a6eb71a78dd921d928da99a427dea05bc798bc1fe249f0f1cf8c9b9fcb1b73be2737b9132bbfe2250a8652e3a8a1199ac74fa62a59d44c'
+ 'aba4b333bc67f6ccde084efca793aff7b978548b1179ca4dbeb969f05b0e0e0bb00201640929cd07741434e27cf935361fcacc1943706e6399c5aa8407ec0116')
+
+prepare() {
+ patch -Np1 -F3 -d WebOb-$pkgver<$pkgname-py39.patch # https://github.com/Pylons/webob/pull/411
+ cp -a WebOb-$pkgver{,-docs}
+ sed -i "s/pkg_resources.get_distribution('webob').version/'$pkgver'/" WebOb-$pkgver-docs/docs/conf.py
+}
+
+build() {
+ cd "$srcdir"/WebOb-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/WebOb-$pkgver-docs
+ PYTHONPATH="$PWD/src" make -C docs html
+}
+
+check() {
+ cd "$srcdir"/WebOb-$pkgver
+ python setup.py pytest --addopts "--ignore=docs"
+}
+
+package_python-webob() {
+ cd "$srcdir"/WebOb-$pkgver
+ python setup.py install -O1 --root="$pkgdir"
+ install -D -m644 "docs/license.txt" \
+ "$pkgdir"/usr/share/licenses/$pkgname/license.txt
+}
+
+package_python-webob-docs() {
+ optdepends=()
+
+ cd "$srcdir"/WebOb-$pkgver-docs
+ _doc_dir="$pkgdir"/usr/share/docs/python-webob
+ mkdir -p "$_doc_dir"
+ cp -a "docs/_build/html" "$_doc_dir"
+ install -D -m644 "docs/license.txt" \
+ "$pkgdir"/usr/share/licenses/$pkgname/license.txt
+}
More information about the arch-commits
mailing list