[arch-commits] Commit in python-tomli-w/repos (staging-any staging-any/PKGBUILD)

Felix Yan felixonmars at gemini.archlinux.org
Sun Mar 6 15:44:35 UTC 2022


    Date: Sunday, March 6, 2022 @ 15:44:35
  Author: felixonmars
Revision: 439076

archrelease: copy trunk to staging-any

Added:
  python-tomli-w/repos/staging-any/
  python-tomli-w/repos/staging-any/PKGBUILD
    (from rev 439075, python-tomli-w/trunk/PKGBUILD)

----------+
 PKGBUILD |   45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

Copied: python-tomli-w/repos/staging-any/PKGBUILD (from rev 439075, python-tomli-w/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2022-03-06 15:44:35 UTC (rev 439076)
@@ -0,0 +1,45 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+
+pkgname=python-tomli-w
+pkgver=1.0.0
+pkgrel=4
+pkgdesc="A lil' TOML writer"
+url=https://github.com/hukkin/tomli-w
+license=(MIT)
+arch=(any)
+depends=(python)
+makedepends=(
+  git
+  python-flit
+  python-pip
+  python-poetry
+)
+checkdepends=(
+  python-pytest
+  python-tomli
+)
+_tag=19099125f32e7c491603e393263754262b356956
+source=(git+https://github.com/hukkin/tomli-w.git#tag=${_tag})
+b2sums=(SKIP)
+
+pkgver() {
+  cd tomli-w
+  git describe --tags
+}
+
+build() {
+  cd tomli-w
+  python -m flit build --format wheel
+}
+
+check() {
+  cd tomli-w
+  python -m pytest
+}
+
+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/
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list