[arch-commits] Commit in python-tomli-w (3 files)
Maxime Gauduin
alucryd at gemini.archlinux.org
Wed Nov 24 12:59:00 UTC 2021
Date: Wednesday, November 24, 2021 @ 12:59:00
Author: alucryd
Revision: 429058
archrelease: copy trunk to extra-any
Added:
python-tomli-w/repos/
python-tomli-w/repos/extra-any/
python-tomli-w/repos/extra-any/PKGBUILD
(from rev 429057, python-tomli-w/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: python-tomli-w/repos/extra-any/PKGBUILD (from rev 429057, python-tomli-w/trunk/PKGBUILD)
===================================================================
--- repos/extra-any/PKGBUILD (rev 0)
+++ repos/extra-any/PKGBUILD 2021-11-24 12:59:00 UTC (rev 429058)
@@ -0,0 +1,45 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+
+pkgname=python-tomli-w
+pkgver=0.4.0
+pkgrel=1
+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=22874ff44581f34810e6f19fb6f682ca39fe0fce
+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