[arch-commits] Commit in python-pytoml/trunk (PKGBUILD)

Eli Schwartz eschwartz at archlinux.org
Thu Nov 1 03:22:07 UTC 2018


    Date: Thursday, November 1, 2018 @ 03:22:07
  Author: eschwartz
Revision: 400914

upgpkg: python-pytoml 0.1.20-1

upstream release
add more tests

Modified:
  python-pytoml/trunk/PKGBUILD

----------+
 PKGBUILD |   18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-11-01 03:21:17 UTC (rev 400913)
+++ PKGBUILD	2018-11-01 03:22:07 UTC (rev 400914)
@@ -6,7 +6,8 @@
 _pkgname=pytoml
 pkgbase=python-pytoml
 pkgname=('python-pytoml' 'python2-pytoml')
-pkgver=0.1.19
+pkgver=0.1.20
+_test_commit=b212790a6b7367489f389411bda009e5ff765f20
 pkgrel=1
 pkgdesc="A TOML-0.4.0 parser/writer for Python."
 arch=('any')
@@ -14,9 +15,18 @@
 license=('MIT')
 makedepends=('python-setuptools' 'python2-setuptools')
 checkdepends=('python-pytest' 'python2-pytest')
-source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
-sha512sums=('c7f1c8f95e1578efbbaaa22c9a1f92c58ac0f6ac6d771eb97c8aeb144ef6aed141555e1d45bda73e5712e4cbe375c72061d02a83ceb13e4fd0e0921a967bf50b')
+source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz"
+        "https://github.com/avakar/toml-test/archive/${_test_commit}.tar.gz")
+sha512sums=('9b913219e65e2329302455a1457a39cf5eb37e04c03025dfdbb81db4ffe60b547fb7e64fc961608004900365ccfddb4225042105fa2db8bd2e393fa2797fc24f'
+            '94dc6ddadac2c75095b1a9ef7c4f68e38908bfadba53203b75c29c7aa8d3c387c1f05cf9915c2c63eeee869f4290cdcef4b8768cb36dcd4031168b5af549bb54')
 
+prepare() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    rm -rf test/toml-test
+    ln -sf "${srcdir}"/toml-test-${_test_commit} test/toml-test
+}
+
 build() {
     cd "${srcdir}"/${_pkgname}-${pkgver}
 
@@ -28,7 +38,9 @@
     cd "${srcdir}"/${_pkgname}-${pkgver}
 
     python -m pytest
+    PYTHONPATH=$PWD python test/test.py
     python2 -m pytest
+    PYTHONPATH=$PWD python2 test/test.py
 }
 
 package_python-pytoml() {


More information about the arch-commits mailing list