Date: Saturday, April 8, 2023 @ 05:50:27
Author: felixonmars
Revision: 1441816
archrelease: copy trunk to community-staging-any
Added:
python-confuse/repos/community-staging-any/
python-confuse/repos/community-staging-any/PKGBUILD
(from rev 1441813, python-confuse/trunk/PKGBUILD)
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Copied: python-confuse/repos/community-staging-any/PKGBUILD (from rev 1441813,
python-confuse/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-08 05:50:27 UTC (rev 1441816)
@@ -0,0 +1,44 @@
+# Maintainer: Maxime Gauduin <[email protected]>
+# Contributor: Mubashshir <[email protected]>
+# Contributor: Frederik “Freso” S. Olesen <[email protected]>
+
+pkgname=python-confuse
+pkgver=2.0.0
+pkgrel=3
+pkgdesc='Painless YAML config files for Python'
+arch=(any)
+url=https://github.com/beetbox/confuse
+license=(MIT)
+depends=(python-yaml)
+makedepends=(
+ git
+ python-build
+ python-flit-core
+ python-installer
+)
+checkdepends=(python-nose)
+_tag=46504692f9f6c26e248a90243062ccca1fd29992
+source=(git+https://github.com/beetbox/confuse.git#tag=${_tag})
+sha256sums=(SKIP)
+
+pkgver() {
+ cd confuse
+ git describe --tags | sed 's/^v//'
+}
+
+build() {
+ cd confuse
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd confuse
+ python -m nose
+}
+
+package() {
+ python -m installer --destdir="${pkgdir}" confuse/dist/*.whl
+ install -Dm 644 confuse/LICENSE -t
"${pkgdir}"/usr/share/licenses/python-confuse/
+}
+
+# vim: ts=2 sw=2 et: