[arch-commits] Commit in python-json-config/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Thu Nov 12 17:06:33 UTC 2020


    Date: Thursday, November 12, 2020 @ 17:06:33
  Author: foutrelis
Revision: 752250

archrelease: copy trunk to community-staging-any

Added:
  python-json-config/repos/community-staging-any/
  python-json-config/repos/community-staging-any/PKGBUILD
    (from rev 752249, python-json-config/trunk/PKGBUILD)

----------+
 PKGBUILD |   30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

Copied: python-json-config/repos/community-staging-any/PKGBUILD (from rev 752249, python-json-config/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-12 17:06:33 UTC (rev 752250)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-json-config
+pkgver=2.0.1
+pkgrel=3
+pkgdesc="A convenience utility for working with JSON config files with file syncing"
+url="https://github.com/bionikspoon/json_config"
+license=('MIT')
+arch=('any')
+depends=('python-future')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-pytest-mock' 'python-mock')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/bionikspoon/json_config/archive/$pkgver.tar.gz")
+sha512sums=('54ad91e3ad8ba73dfb9e5180f7211646d4d24029688874d6db0de5a583515fa6a09b06156d2e4375159327bafaee622e68686a245af25dbebff5348e76a5562b')
+
+build() {
+  cd json_config-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd json_config-$pkgver
+  python setup.py pytest
+}
+
+package() {
+  cd json_config-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list