Browse Source

[trunk] -> [community] 'python-tomli-w-0.4.0-1' add

master
Qontinuum 7 months ago
parent
commit
3110a5beff
  1. 45
      trunk/PKGBUILD
  2. 45
      x86_64/community/PKGBUILD

45
trunk/PKGBUILD

@ -0,0 +1,45 @@
# Maintainer: Maxime Gauduin <alucryd@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:

45
x86_64/community/PKGBUILD

@ -0,0 +1,45 @@
# Maintainer: Maxime Gauduin <alucryd@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:
Loading…
Cancel
Save