[arch-commits] Commit in python-cffi/trunk (PKGBUILD)
Antonio Rojas
arojas at gemini.archlinux.org
Mon Nov 29 19:46:28 UTC 2021
Date: Monday, November 29, 2021 @ 19:46:28
Author: arojas
Revision: 429483
Update to 1.15.0, drop python2
Modified:
python-cffi/trunk/PKGBUILD
----------+
PKGBUILD | 40 ++++++++--------------------------------
1 file changed, 8 insertions(+), 32 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-11-29 19:40:02 UTC (rev 429482)
+++ PKGBUILD 2021-11-29 19:46:28 UTC (rev 429483)
@@ -1,42 +1,30 @@
# Maintainer: Felix Yan <felixonmars at archlinux.org>
# Contributor: lilydjwg <lilydjwg at gmail.com>
-pkgbase=python-cffi
-pkgname=(python-cffi python2-cffi)
-pkgver=1.14.6
-pkgrel=2
+pkgname=python-cffi
+pkgver=1.15.0
+pkgrel=1
pkgdesc="Foreign Function Interface for Python calling C code"
arch=('x86_64')
url="https://cffi.readthedocs.org/"
license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-pycparser' 'python2-pycparser')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+depends=('python-pycparser')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
source=("https://foss.heptapod.net/pypy/cffi/-/archive/v$pkgver/cffi-v$pkgver.tar.bz2")
-sha512sums=('3845375c3ad44b3e50b0cd484c445c3e26e91bafab47beeeedcd4be8ffa67b23f758e18a73a3867f221502d6fb6566603de880d75d9b6a95799e4272488848cd')
+sha512sums=('c8a0a061905d133770a06d4c4fd0158a104a04a88f1c9367160e8c1e1d2153af903aaa8dcb3cc3e252f02c6d6a8e11240bf5b82c490281d6ce8f8e21d59afa93')
-prepare() {
- cp -a cffi-v$pkgver{,-py2}
-}
-
build() {
cd "$srcdir"/cffi-v$pkgver
python setup.py build
-
- cd "$srcdir"/cffi-v$pkgver-py2
- python2 setup.py build
}
check() {
cd "$srcdir"/cffi-v$pkgver
python setup.py pytest
-
- cd "$srcdir"/cffi-v$pkgver-py2
- python2 setup.py pytest
}
-package_python-cffi() {
- depends=('python-pycparser')
-
+package() {
cd cffi-v$pkgver
# remove files created during check() for reproducible SOURCES.txt
@@ -45,15 +33,3 @@
python setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
-
-package_python2-cffi() {
- depends=('python2-pycparser')
-
- cd cffi-v$pkgver-py2
-
- # remove files created during check() for reproducible SOURCES.txt
- rm -rf testing/cffi{0,1}/__pycache__/
-
- python2 setup.py install --root="$pkgdir" --optimize=1
- install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
More information about the arch-commits
mailing list