[arch-commits] Commit in python-tomli-w/repos/staging-any (PKGBUILD PKGBUILD)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Wed Dec 1 20:16:13 UTC 2021
Date: Wednesday, December 1, 2021 @ 20:16:13
Author: foutrelis
Revision: 430135
archrelease: copy trunk to staging-any
Added:
python-tomli-w/repos/staging-any/PKGBUILD
(from rev 430134, python-tomli-w/trunk/PKGBUILD)
Deleted:
python-tomli-w/repos/staging-any/PKGBUILD
----------+
PKGBUILD | 94 +++++++++++++++++++++++++++++--------------------------------
1 file changed, 45 insertions(+), 49 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-01 20:16:09 UTC (rev 430134)
+++ PKGBUILD 2021-12-01 20:16:13 UTC (rev 430135)
@@ -1,49 +0,0 @@
-# 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:
Copied: python-tomli-w/repos/staging-any/PKGBUILD (from rev 430134, python-tomli-w/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-12-01 20:16:13 UTC (rev 430135)
@@ -0,0 +1,45 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+
+pkgname=python-tomli-w
+pkgver=0.4.0
+pkgrel=3
+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