[arch-commits] Commit in python-jaraco.path/repos (2 files)

Felix Yan felixonmars at archlinux.org
Wed Mar 3 00:02:48 UTC 2021


    Date: Wednesday, March 3, 2021 @ 00:02:48
  Author: felixonmars
Revision: 878676

archrelease: copy trunk to community-any

Added:
  python-jaraco.path/repos/community-any/
  python-jaraco.path/repos/community-any/PKGBUILD
    (from rev 878675, python-jaraco.path/trunk/PKGBUILD)

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

Copied: python-jaraco.path/repos/community-any/PKGBUILD (from rev 878675, python-jaraco.path/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2021-03-03 00:02:48 UTC (rev 878676)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-jaraco.path
+pkgver=3.3.1
+pkgrel=1
+pkgdesc="Miscellaneous path functions"
+url="https://github.com/jaraco/jaraco.path"
+license=('MIT')
+arch=('any')
+depends=('python-jaraco')
+makedepends=('python-setuptools-scm')
+checkdepends=('python-pytest-black' 'python-pytest-checkdocs' 'python-pytest-cov'
+              'python-pytest-enabler' 'python-pytest-flake8' 'python-pytest-mypy')
+source=("https://github.com/jaraco/jaraco.path/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('1bdf0fb2ec2070285b4760fc752f7c30317e9076e7eb4bf3abd5dcdd35cbba45f86b8b3c523555afd77c0bf5a47f35146ca22e48e6677c80a62fd9b00affaffe')
+
+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
+}
+
+check() {
+  cd jaraco.path-$pkgver
+  python -m pytest
+}
+
+package() {
+  cd jaraco.path-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list