Date: Saturday, April 8, 2023 @ 22:42:21 Author: dvzrv Revision: 1443016
upgpkg: python-stone 3.3.1-3: Rebuild against Python 3.11. Switch to PEP517. Modify sources to be Python 3.11 compatible: https://github.com/dropbox/stone/issues/288 Modified: python-stone/trunk/PKGBUILD ----------+ PKGBUILD | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-04-08 22:30:50 UTC (rev 1443015) +++ PKGBUILD 2023-04-08 22:42:21 UTC (rev 1443016) @@ -3,34 +3,46 @@ pkgname=python-stone _name=${pkgname#python-} pkgver=3.3.1 -pkgrel=2 +pkgrel=3 pkgdesc='The Official API Spec Language for Dropbox API V2' arch=(any) url='https://github.com/dropbox/stone' license=(MIT) depends=(python python-ply python-six) -makedepends=(python-setuptools python-pytest-runner) -checkdepends=(python-coverage) -source=(https://github.com/dropbox/stone/archive/v$pkgver/$pkgname-$pkgver.tar.gz) +makedepends=( + python-build + python-installer + python-setuptools + python-wheel +) +checkdepends=( + python-coverage + python-pytest + python-pytest-runner +) +source=($url/archive/v$pkgver/$pkgname-$pkgver.tar.gz) sha256sums=('dc5aff3fad1333188d4ddb4eee0a19d31e6262bb3cdf10c0bbdaeb309ff91a52') prepare() { sed -e 's|== 5\.2\.0|>= 5.2.0|' -i $_name-$pkgver/setup.py # Unpin pytest-runner version + + # upstream doesn't seem to care about Python 3.11 compat: https://github.com/dropbox/stone/issues/288 + sed -e 's/getargspec/getfullargspec/' -i $_name-$pkgver/$_name/frontend/ir_generator.py } build() { cd $_name-$pkgver - python setup.py build + python -m build --wheel --no-isolation } check() { cd $_name-$pkgver - pytest + pytest -vv } package() { cd $_name-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 --skip-build + python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" }
