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

Eli Schwartz eschwartz at archlinux.org
Thu Jun 17 04:24:27 UTC 2021


    Date: Thursday, June 17, 2021 @ 04:24:27
  Author: eschwartz
Revision: 964562

upgpkg: python-flit 3.2.0-2:

Fix up dependencies on toml; upstream migrated from pytoml to toml, and it's
used in flit_core too.

Also make the tests run using pytest on its own. Gets rid of pytest-cov, which
should never ever be used in packaging. :p

Modified:
  python-flit/trunk/PKGBUILD

----------+
 PKGBUILD |   13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-06-17 01:04:58 UTC (rev 964561)
+++ PKGBUILD	2021-06-17 04:24:27 UTC (rev 964562)
@@ -1,19 +1,20 @@
 # Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
 
 _pkgname=flit
 pkgbase=python-$_pkgname
 pkgname=($pkgbase{,-core})
 pkgver=3.2.0
-pkgrel=1
+pkgrel=2
 pkgdesc='Simplified packaging of Python modules'
 arch=('any')
 url='https://github.com/takluyver/flit'
 license=('BSD')
-depends=('python')
+depends=('python' 'python-toml')
 makedepends=('python-setuptools' 'python-dephell'
-             'python-requests' 'python-docutils' 'python-pytoml')
+             'python-requests' 'python-docutils')
              #'python-build' 'python-install' 'python-pyproject2setuppy'
-checkdepends=('python-pytest-runner' 'python-pytest-cov' 'python-testpath' 'python-responses')
+checkdepends=('python-pytest' 'python-testpath' 'python-responses')
 source=("$pkgbase-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
 sha512sums=('b40768fb4b0b2a2e3116ac790dfa629da5a57cda34b10abb8ce6a8febcc3436795d5122dcfa3db2c6d07d493f00391d2ca7300112561c8ff2a0b04d77c879662')
 
@@ -40,11 +41,11 @@
 check() {
   cd $_pkgname-$pkgver
 
-  python setup.py pytest
+  PYTHONPATH=flit_core python -m pytest
 }
 
 package_python-flit() {
-  depends+=('python-flit-core' 'python-requests' 'python-docutils' 'python-pytoml')
+  depends+=('python-flit-core' 'python-requests' 'python-docutils')
   provides=($_pkgname)
   conflicts=($_pkgname)
 



More information about the arch-commits mailing list