[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Wed Jun 27 14:15:16 UTC 2018


    Date: Wednesday, June 27, 2018 @ 14:15:15
  Author: felixonmars
Revision: 346358

addpkg: python-iniconfig 1.0.0-1

Added:
  python-iniconfig/
  python-iniconfig/repos/
  python-iniconfig/trunk/
  python-iniconfig/trunk/PKGBUILD

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

Added: python-iniconfig/trunk/PKGBUILD
===================================================================
--- python-iniconfig/trunk/PKGBUILD	                        (rev 0)
+++ python-iniconfig/trunk/PKGBUILD	2018-06-27 14:15:15 UTC (rev 346358)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-iniconfig
+pkgname=(python-iniconfig python2-iniconfig)
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="brain-dead simple config-ini parsing"
+url="https://github.com/RonnyPfannschmidt/iniconfig"
+license=('MIT')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-setuptools-scm'
+             'python2-setuptools-scm')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/RonnyPfannschmidt/iniconfig/archive/v$pkgver.tar.gz")
+sha512sums=('d8048af40145a5312784c5d1a9afaa052528ffdef56e47aa9be7f727d946426a43b8e934edce6b46024b83771c151ef544787e8422c74adeda2ccc8913aedd5c')
+
+prepare() {
+  cp -a iniconfig-$pkgver{,-py2}
+
+  export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+}
+
+build() {
+  cd "$srcdir"/iniconfig-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/iniconfig-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/iniconfig-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/iniconfig-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_python-iniconfig() {
+  depends=('python')
+
+  cd iniconfig-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-iniconfig() {
+  depends=('python2')
+
+  cd iniconfig-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}


Property changes on: python-iniconfig/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list