[arch-commits] Commit in (3 files)
Daniel M. Capella
polyzen at archlinux.org
Sun Jun 20 05:08:50 UTC 2021
Date: Sunday, June 20, 2021 @ 05:08:49
Author: polyzen
Revision: 965822
Use PEP 517
Modified:
python-backcall/trunk/PKGBUILD
python-black/trunk/PKGBUILD
python-pygls/trunk/PKGBUILD
--------------------------------+
python-backcall/trunk/PKGBUILD | 22 +++++++++++++++-------
python-black/trunk/PKGBUILD | 22 ++++++++++++++++------
python-pygls/trunk/PKGBUILD | 16 ++++++++++++----
3 files changed, 43 insertions(+), 17 deletions(-)
Modified: python-backcall/trunk/PKGBUILD
===================================================================
--- python-backcall/trunk/PKGBUILD 2021-06-20 05:06:02 UTC (rev 965821)
+++ python-backcall/trunk/PKGBUILD 2021-06-20 05:08:49 UTC (rev 965822)
@@ -3,32 +3,40 @@
_name=backcall
pkgname=python-backcall
pkgver=0.2.0
-pkgrel=3
+pkgrel=4
pkgdesc='Backwards compatible callback APIs'
arch=('any')
url=https://github.com/takluyver/backcall
license=('BSD')
depends=('python')
+makedepends=('python-build' 'python-flit-core' 'python-install')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('5cbdbf27be5e7cfadb448baf0aa95508f91f2bbc6c6437cd9cd06e2a4c215e1e')
+b2sums=('67f9ac96d26b368972a5749775a70c497b5705b37d45ba7f64c1259be776cc7f4c9d78ae51da9c1e9e46521d33bf511790675688feef88a68d25ae30cd79612d')
build() {
cd $_name-$pkgver
- python setup.py build
+ python -m build --wheel --skip-dependency-check --no-isolation
}
check() {
cd $_name-$pkgver
mkdir -p temp
- local sitepackages=$(python -c "import site; print(site.getsitepackages()[0])")
- python setup.py install --skip-build --root=temp
- PATH="$PWD/temp/usr/bin:$PATH" PYTHONPATH="$PWD/temp/$sitepackages" python tests/test_callback_prototypes.py
+ local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+ python -m install --optimize=1 --destdir=temp dist/*.whl
+ PATH="$PWD/temp/usr/bin:$PATH" PYTHONPATH="$PWD/temp/$site_packages" python tests/test_callback_prototypes.py
}
package() {
cd $_name-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
- install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
+ export PYTHONHASHSEED=0
+ python -m install --optimize=1 --destdir="$pkgdir" dist/*.whl
+
+ # Symlink license file
+ local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+ install -d "$pkgdir"/usr/share/licenses/$pkgname
+ ln -s $site_packages/$_name-$pkgver.dist-info/LICENSE \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
# vim:set ts=2 sw=2 et:
Modified: python-black/trunk/PKGBUILD
===================================================================
--- python-black/trunk/PKGBUILD 2021-06-20 05:06:02 UTC (rev 965821)
+++ python-black/trunk/PKGBUILD 2021-06-20 05:08:49 UTC (rev 965822)
@@ -4,7 +4,7 @@
pkgname=python-black
pkgver=21.6b0
-pkgrel=1
+pkgrel=2
pkgdesc='Uncompromising Python code formatter'
arch=('any')
url=https://github.com/psf/black
@@ -11,7 +11,8 @@
license=('MIT')
depends=('python' 'python-appdirs' 'python-click' 'python-mypy_extensions'
'python-pathspec' 'python-regex' 'python-toml')
-makedepends=('python-setuptools-scm')
+makedepends=('python-build' 'python-setuptools-scm' 'python-install'
+ 'python-wheel')
checkdepends=('python-aiohttp' 'python-aiohttp-cors' 'python-parameterized'
'python-pytest' 'python-typed-ast')
optdepends=('python-aiohttp: for the blackd HTTP server'
@@ -24,7 +25,7 @@
build() {
cd "black-$pkgver"
- python setup.py build
+ python -m build --wheel --skip-dependency-check --no-isolation
}
check() {
@@ -31,7 +32,8 @@
cd "black-$pkgver"
mkdir -p temp
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
- python setup.py install --skip-build --root=temp
+ python -m install --optimize=1 --destdir=temp dist/*.whl
+ chmod +x temp/usr/bin/* # https://github.com/FFY00/python-install/pull/6
PATH="$PWD/temp/usr/bin:$PATH" PYTHONPATH="$PWD/temp/$site_packages" pytest tests -m "not without_python2"
}
@@ -38,8 +40,16 @@
package() {
cd "black-$pkgver"
export PYTHONHASHSEED=0
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
- install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+ python -m install --optimize=1 --destdir="$pkgdir" dist/*.whl
+
+ # https://github.com/FFY00/python-install/pull/6
+ chmod +x "$pkgdir"/usr/bin/*
+
+ # Symlink license file
+ local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+ install -d "$pkgdir"/usr/share/licenses/$pkgname
+ ln -s $site_packages/black-$pkgver.dist-info/LICENSE \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
# vim:set ts=2 sw=2 et:
Modified: python-pygls/trunk/PKGBUILD
===================================================================
--- python-pygls/trunk/PKGBUILD 2021-06-20 05:06:02 UTC (rev 965821)
+++ python-pygls/trunk/PKGBUILD 2021-06-20 05:08:49 UTC (rev 965822)
@@ -4,13 +4,14 @@
_name=pygls
pkgname=python-pygls
pkgver=0.10.3
-pkgrel=2
+pkgrel=3
pkgdesc='Pythonic generic implementation of the Language Server Protocol'
arch=('any')
url=https://github.com/openlawlibrary/pygls
license=('APACHE')
depends=('python-pydantic' 'python-typeguard')
-makedepends=('python-setuptools-scm' 'python-toml')
+makedepends=('python-build' 'python-install' 'python-setuptools-scm'
+ 'python-toml' 'python-wheel')
checkdepends=('python-mock' 'python-pytest' 'python-pytest-asyncio')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('522c1068dd38c4945925ca742daba6aff5621168e0e5ddd954813e8b957ca831')
@@ -18,7 +19,7 @@
build() {
cd $_name-$pkgver
- python setup.py build
+ python -m build --wheel --skip-dependency-check --no-isolation
}
check() {
@@ -28,7 +29,14 @@
package() {
cd $_name-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ export PYTHONHASHSEED=0
+ python -m install --optimize=1 --destdir="$pkgdir" dist/*.whl
+
+ # Symlink license file
+ local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+ install -d "$pkgdir"/usr/share/licenses/$pkgname
+ ln -s $site_packages/$_name-$pkgver.dist-info/LICENSE.txt \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
}
# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list