[arch-commits] Commit in python-wheel/repos/community-any (PKGBUILD PKGBUILD)
Morten Linderud
foxboron at archlinux.org
Mon Jul 13 16:42:44 UTC 2020
Date: Monday, July 13, 2020 @ 16:42:44
Author: foxboron
Revision: 663434
archrelease: copy trunk to community-any
Added:
python-wheel/repos/community-any/PKGBUILD
(from rev 663433, python-wheel/trunk/PKGBUILD)
Deleted:
python-wheel/repos/community-any/PKGBUILD
----------+
PKGBUILD | 130 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 67 insertions(+), 63 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-07-13 16:42:37 UTC (rev 663433)
+++ PKGBUILD 2020-07-13 16:42:44 UTC (rev 663434)
@@ -1,63 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Maintainer: Morten Linderud <foxboron at archlinux.org>
-# Contributor: Lance Chen <cyen0312 at gmail.com>
-
-_pypiname=wheel
-pkgbase=python-wheel
-pkgname=('python-wheel' 'python2-wheel')
-pkgver=0.34.2
-pkgrel=2
-pkgdesc="A built-package format for Python"
-arch=(any)
-url="https://pypi.python.org/pypi/wheel"
-license=('MIT')
-makedepends=('python' 'python-setuptools'
- 'python2' 'python2-setuptools')
-checkdepends=('python-jsonschema' 'python-pytest-cov' 'python-keyring' 'python-keyrings-alt'
- 'python-xdg')
-source=("https://pypi.io/packages/source/w/wheel/$_pypiname-$pkgver.tar.gz")
-source=("$pkgname-$pkgver.tar.gz::https://github.com/pypa/wheel/archive/$pkgver.tar.gz")
-sha512sums=('fcd02cf770382c26b5250aa48f60481ac868ff7e1b08245ed4616aaa7d6dc5e3280d9ab787c4d1690b11550de9f6160c0d31dd65b79554711ab5d02de479e1ab')
-
-prepare() {
- cp -a wheel-$pkgver{,-py2}
-}
-
-build() {
- cd "$srcdir/wheel-$pkgver"
- python setup.py build
-
- cd "$srcdir/wheel-$pkgver-py2"
- python2 setup.py build
-}
-
-check() {
- # Hack entry points by installing it
-
- cd wheel-$pkgver
- python setup.py install --root="$PWD/tmp_install" --optimize=1
- PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages:$PYTHONPATH" py.test
-}
-
-package_python-wheel() {
- depends=('python')
- optdepends=('python-keyring: for wheel.signatures')
- optdepends=('python-xdg: for wheel.signatures')
-
- cd "$srcdir/$_pypiname-$pkgver"
- python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
- install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
-}
-
-package_python2-wheel() {
- depends=('python2')
- optdepends=('python2-keyring: for wheel.signatures')
- optdepends=('python2-xdg: for wheel.signatures')
-
- cd "$srcdir/$_pypiname-$pkgver"
- python2 setup.py install --root="$pkgdir/" --optimize=1 --skip-build
- install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
- mv "$pkgdir/usr/bin/wheel" "$pkgdir/usr/bin/wheel2"
-}
-
-# vim:set ts=2 sw=2 et:
Copied: python-wheel/repos/community-any/PKGBUILD (from rev 663433, python-wheel/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-07-13 16:42:44 UTC (rev 663434)
@@ -0,0 +1,67 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Contributor: Lance Chen <cyen0312 at gmail.com>
+
+_pypiname=wheel
+pkgbase=python-wheel
+pkgname=('python-wheel' 'python2-wheel')
+pkgver=0.34.2
+pkgrel=3
+pkgdesc="A built-package format for Python"
+arch=(any)
+url="https://pypi.python.org/pypi/wheel"
+license=('MIT')
+makedepends=('python' 'python-setuptools'
+ 'python2' 'python2-setuptools')
+checkdepends=('python-jsonschema' 'python-pytest' 'python-keyring' 'python-keyrings-alt'
+ 'python-xdg')
+source=("https://pypi.io/packages/source/w/wheel/$_pypiname-$pkgver.tar.gz")
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pypa/wheel/archive/$pkgver.tar.gz")
+sha512sums=('fcd02cf770382c26b5250aa48f60481ac868ff7e1b08245ed4616aaa7d6dc5e3280d9ab787c4d1690b11550de9f6160c0d31dd65b79554711ab5d02de479e1ab')
+
+prepare() {
+ # don't depend on python-coverage for tests
+ sed -i 's/--cov=wheel//' wheel-$pkgver/setup.cfg
+ cp -a wheel-$pkgver{,-py2}
+}
+
+build() {
+ export PYTHONHASHSEED=0
+
+ cd "$srcdir/wheel-$pkgver"
+ python setup.py build
+
+ cd "$srcdir/wheel-$pkgver-py2"
+ python2 setup.py build
+}
+
+check() {
+ # Hack entry points by installing it
+
+ cd wheel-$pkgver
+ python setup.py install --root="$PWD/tmp_install" --optimize=1
+ PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages:$PYTHONPATH" py.test
+}
+
+package_python-wheel() {
+ depends=('python')
+ optdepends=('python-keyring: for wheel.signatures')
+ optdepends=('python-xdg: for wheel.signatures')
+
+ cd "$srcdir/$_pypiname-$pkgver"
+ python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+ install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+}
+
+package_python2-wheel() {
+ depends=('python2')
+ optdepends=('python2-keyring: for wheel.signatures')
+ optdepends=('python2-xdg: for wheel.signatures')
+
+ cd "$srcdir/$_pypiname-$pkgver"
+ python2 setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+ install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+ mv "$pkgdir/usr/bin/wheel" "$pkgdir/usr/bin/wheel2"
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list