[arch-commits] Commit in python-wheel/trunk (PKGBUILD)

Antonio Rojas arojas at gemini.archlinux.org
Wed Dec 15 12:06:53 UTC 2021


    Date: Wednesday, December 15, 2021 @ 12:06:53
  Author: arojas
Revision: 1072992

Drop python2

Modified:
  python-wheel/trunk/PKGBUILD

----------+
 PKGBUILD |   33 +++++++--------------------------
 1 file changed, 7 insertions(+), 26 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-15 12:03:40 UTC (rev 1072991)
+++ PKGBUILD	2021-12-15 12:06:53 UTC (rev 1072992)
@@ -3,19 +3,19 @@
 # Contributor: Lance Chen <cyen0312 at gmail.com>
 
 _pypiname=wheel
-pkgbase=python-wheel
-pkgname=('python-wheel' 'python2-wheel')
+pkgname=python-wheel
 pkgver=0.37.0
-pkgrel=4
+pkgrel=5
 pkgdesc="A built-package format for Python"
 arch=(any)
 url="https://pypi.python.org/pypi/wheel"
 license=('MIT')
-makedepends=('python-packaging' 'python-setuptools'
-             'python2-packaging' 'python2-setuptools')
+depends=('python-packaging')
+optdepends=('python-keyring: for wheel.signatures'
+            'python-xdg: for wheel.signatures')
+makedepends=('python-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=('2e0eb1c5560a0229be9de450da8b2bc62153744abb6d8ab9a0625c150dc00d3fc3e24dbe37cc26f4ca6b6876b5c63298427b2076ee42b8f772c75010bfc135a8')
 
@@ -26,16 +26,11 @@
   # https://github.com/pypa/wheel/pull/365 but why?
   rm -r wheel-$pkgver/src/wheel/vendored
   sed -i 's/from .vendored.packaging import tags/from packaging import tags/' wheel-$pkgver/src/wheel/bdist_wheel.py
-
-  cp -a wheel-$pkgver{,-py2}
 }
 
 build() {
   cd "$srcdir/wheel-$pkgver"
   python setup.py build
-
-  cd "$srcdir/wheel-$pkgver-py2"
-  python2 setup.py build
 }
 
 check() {
@@ -46,22 +41,8 @@
   PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages:$PYTHONPATH" py.test
 }
 
-package_python-wheel() {
-  depends=('python-packaging')
-  optdepends=('python-keyring: for wheel.signatures'
-              'python-xdg: for wheel.signatures')
-
+package() {
   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-packaging')
-  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