[arch-commits] Commit in python-tomli-w/repos (staging-any staging-any/PKGBUILD)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Wed Dec 1 01:42:29 UTC 2021
Date: Wednesday, December 1, 2021 @ 01:42:28
Author: foutrelis
Revision: 429864
archrelease: copy trunk to staging-any
Added:
python-tomli-w/repos/staging-any/
python-tomli-w/repos/staging-any/PKGBUILD
(from rev 429863, python-tomli-w/trunk/PKGBUILD)
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Copied: python-tomli-w/repos/staging-any/PKGBUILD (from rev 429863, python-tomli-w/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD (rev 0)
+++ staging-any/PKGBUILD 2021-12-01 01:42:28 UTC (rev 429864)
@@ -0,0 +1,49 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+
+pkgname=python-tomli-w
+pkgver=0.4.0
+pkgrel=2
+pkgdesc="A lil' TOML writer"
+url=https://github.com/hukkin/tomli-w
+license=(MIT)
+arch=(any)
+depends=(python)
+makedepends=(
+ git
+ python-dephell
+)
+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
+}
+
+prepare() {
+ cd tomli-w
+ dephell deps convert --from pyproject.toml --to setup.py
+}
+
+build() {
+ cd tomli-w
+ python setup.py build
+}
+
+check() {
+ cd tomli-w
+ python -m pytest
+}
+
+package() {
+ 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