[arch-commits] Commit in python-tomli-w/trunk (PKGBUILD)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Wed Dec 1 01:44:19 UTC 2021
Date: Wednesday, December 1, 2021 @ 01:44:19
Author: foutrelis
Revision: 429865
Revert back to using flit
Modified:
python-tomli-w/trunk/PKGBUILD
----------+
PKGBUILD | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-01 01:42:28 UTC (rev 429864)
+++ PKGBUILD 2021-12-01 01:44:19 UTC (rev 429865)
@@ -10,7 +10,9 @@
depends=(python)
makedepends=(
git
- python-dephell
+ python-flit
+ python-pip
+ python-poetry
)
checkdepends=(
python-pytest
@@ -25,14 +27,9 @@
git describe --tags
}
-prepare() {
- cd tomli-w
- dephell deps convert --from pyproject.toml --to setup.py
-}
-
build() {
cd tomli-w
- python setup.py build
+ python -m flit build --format wheel
}
check() {
@@ -41,9 +38,8 @@
}
package() {
- cd tomli-w
- python setup.py install --root="${pkgdir}" -O1
- install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/python-tomli-w/
+ PIP_CONFIG_FILE=/dev/null pip install --isolated --root="${pkgdir}" --ignore-installed --no-deps tomli-w/dist/*.whl
+ install -Dm 644 tomli-w/LICENSE -t "${pkgdir}"/usr/share/licenses/python-tomli-w/
}
# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list