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

Evangelos Foutras foutrelis at gemini.archlinux.org
Wed Dec 1 01:42:26 UTC 2021


    Date: Wednesday, December 1, 2021 @ 01:42:25
  Author: foutrelis
Revision: 429863

upgpkg: python-tomli-w 0.4.0-2: Python 3.10 rebuild

Modified:
  python-tomli-w/trunk/PKGBUILD

----------+
 PKGBUILD |   18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-30 23:01:44 UTC (rev 429862)
+++ PKGBUILD	2021-12-01 01:42:25 UTC (rev 429863)
@@ -2,7 +2,7 @@
 
 pkgname=python-tomli-w
 pkgver=0.4.0
-pkgrel=1
+pkgrel=2
 pkgdesc="A lil' TOML writer"
 url=https://github.com/hukkin/tomli-w
 license=(MIT)
@@ -10,9 +10,7 @@
 depends=(python)
 makedepends=(
   git
-  python-flit
-  python-pip
-  python-poetry
+  python-dephell
 )
 checkdepends=(
   python-pytest
@@ -27,9 +25,14 @@
   git describe --tags
 }
 
+prepare() {
+  cd tomli-w
+  dephell deps convert --from pyproject.toml --to setup.py
+}
+
 build() {
   cd tomli-w
-  python -m flit build --format wheel
+  python setup.py build
 }
 
 check() {
@@ -38,8 +41,9 @@
 }
 
 package() {
-  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/
+  cd tomli-w
+  python setup.py install --root="${pkgdir}" -O1
+  install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/python-tomli-w/
 }
 
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list