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

David Runge dvzrv at archlinux.org
Thu May 14 15:52:09 UTC 2020


    Date: Thursday, May 14, 2020 @ 15:52:08
  Author: dvzrv
Revision: 627942

upgpkg: python-toml 0.10.1-1: Upgrading to 0.10.1.
Adding python{,2}-numpy as additional checkdepends.
Removing unneeded test.toml file download (included in tarball now).
Updating maintainer info.

Modified:
  python-toml/trunk/PKGBUILD

----------+
 PKGBUILD |   21 +++++++++------------
 1 file changed, 9 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-14 15:20:46 UTC (rev 627941)
+++ PKGBUILD	2020-05-14 15:52:08 UTC (rev 627942)
@@ -1,24 +1,21 @@
-# Maintainer: David Runge <dave at sleepmap.de>
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
 _name=toml
 pkgbase=python-toml
 pkgname=('python-toml' 'python2-toml')
-pkgver=0.10.0
-pkgrel=3
+pkgver=0.10.1
+pkgrel=1
 pkgdesc="A Python library for parsing and creating TOML"
 arch=('any')
 url="https://github.com/uiri/toml"
 license=('MIT')
 makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-pytest' 'python2-pytest')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"
-        "https://raw.githubusercontent.com/uiri/toml/master/test.toml")
-sha512sums=('26f26c38ce9cd48305218c2c34c5a5407b00aefc25a933f044bb7be22c23cfdfa3b8cf2da952d17760c4b9038df62e405fa039cc7b63dd3e94c9c312f04f9182'
-            '47510e59f9e0bdaaf4052fc5edb570a36b8b173ed7b8e5fac52804f6619f409e545ae3c91f838dbaeefe3c7cfd1a835b699164ac631feaa61de971d2381ac246')
+checkdepends=('python-numpy' 'python-pytest' 'python2-numpy' 'python2-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('9dc813f84b56bee6519c70efe49a834d6695c82d429f0b7cc6e6153a1fb14d3fb627dea24df2d2664354f27108389d51475609272d59fc7e4b64a2c17d74f33f')
 
 prepare() {
   mv -v "${_name}-$pkgver" "$pkgbase-$pkgver"
-  cp -v test.toml "$pkgbase-$pkgver"
-  cd "$pkgbase-$pkgver"
 }
 
 build() {
@@ -31,8 +28,8 @@
   cd "$pkgname-$pkgver"
   export PYTHONPATH="../build/lib/:${PYTHONPATH}"
   # disable useless tests
-  py.test tests -k 'not test_invalid_tests and not test_valid_tests'
-  py.test2 tests -k 'not test_invalid_tests and not test_valid_tests'
+  pytest -v tests -k 'not test_invalid_tests and not test_valid_tests'
+  pytest2 -v tests -k 'not test_invalid_tests and not test_valid_tests'
 }
 
 package_python-toml() {


More information about the arch-commits mailing list