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

Felix Yan felixonmars at archlinux.org
Mon Nov 4 06:26:41 UTC 2019


    Date: Monday, November 4, 2019 @ 06:26:41
  Author: felixonmars
Revision: 523396

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 523395, python-json-config/trunk/PKGBUILD)

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

Copied: python-json-config/repos/community-staging-any/PKGBUILD (from rev 523395, python-json-config/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-11-04 06:26:41 UTC (rev 523396)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-json-config
+pkgver=2.0.1
+pkgrel=2
+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