[arch-commits] Commit in python-jaraco.path/trunk (PKGBUILD)

Felix Yan felixonmars at gemini.archlinux.org
Sun May 15 07:41:58 UTC 2022


    Date: Sunday, May 15, 2022 @ 07:41:57
  Author: felixonmars
Revision: 1207315

upgpkg: python-jaraco.path 3.4.0-1

Modified:
  python-jaraco.path/trunk/PKGBUILD

----------+
 PKGBUILD |   18 ++++++------------
 1 file changed, 6 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-05-15 07:31:04 UTC (rev 1207314)
+++ PKGBUILD	2022-05-15 07:41:57 UTC (rev 1207315)
@@ -1,31 +1,25 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
 pkgname=python-jaraco.path
-pkgver=3.3.1
-pkgrel=2
+pkgver=3.4.0
+pkgrel=1
 pkgdesc="Miscellaneous path functions"
 url="https://github.com/jaraco/jaraco.path"
 license=('MIT')
 arch=('any')
 depends=('python-jaraco')
-makedepends=('python-setuptools-scm' 'python-toml')
+makedepends=('python-build' 'python-installer' 'python-setuptools-scm' 'python-toml' 'python-wheel')
 checkdepends=('python-pytest-black' 'python-pytest-checkdocs' 'python-pytest-cov'
               'python-pytest-enabler' 'python-pytest-flake8' 'python-pytest-mypy'
               'python-pip')
 source=("https://github.com/jaraco/jaraco.path/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('1bdf0fb2ec2070285b4760fc752f7c30317e9076e7eb4bf3abd5dcdd35cbba45f86b8b3c523555afd77c0bf5a47f35146ca22e48e6677c80a62fd9b00affaffe')
+sha512sums=('a9d9cbb605584764ea7ea97a9c8d51a383cb18866787cc20bd08fb5fb2227ea05d8fbf0754d240821530dc493a80634810df1f8446454d5dcca3980eb6144483')
 
 export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
 
-prepare() {
-  cd jaraco.path-$pkgver
-  sed -i '/singledispatch/d' setup.cfg
-  sed -i 's/from singledispatch import singledispatch/from functools import singledispatch/' jaraco/path.py
-}
-
 build() {
   cd jaraco.path-$pkgver
-  python setup.py build
+  python -m build -wn
 }
 
 check() {
@@ -35,7 +29,7 @@
 
 package() {
   cd jaraco.path-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
+  python -m installer --destdir="$pkgdir" dist/*.whl
 
   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
 }



More information about the arch-commits mailing list