[arch-commits] Commit in python-testpath/repos/community-any (PKGBUILD PKGBUILD)

Antonio Rojas arojas at gemini.archlinux.org
Fri Oct 1 21:49:58 UTC 2021


    Date: Friday, October 1, 2021 @ 21:49:58
  Author: arojas
Revision: 1026643

archrelease: copy trunk to community-any

Added:
  python-testpath/repos/community-any/PKGBUILD
    (from rev 1026642, python-testpath/trunk/PKGBUILD)
Deleted:
  python-testpath/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   73 ++++++++++++++++++++++---------------------------------------
 1 file changed, 27 insertions(+), 46 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-10-01 21:49:48 UTC (rev 1026642)
+++ PKGBUILD	2021-10-01 21:49:58 UTC (rev 1026643)
@@ -1,46 +0,0 @@
-# Maintainer: Kyle Keen <keenerd at gmail.com>
-# Contributor: Philipp A. <flying-sheep at web.de>
-_name=testpath
-pkgname=python-testpath
-pkgver=0.4.4
-pkgrel=3
-pkgdesc='Test utilities for code working with files and commands'
-arch=('any')
-url="https://pypi.python.org/pypi/testpath"
-license=('MIT')
-depends=('python')
-#makedepends=('python-pip')
-_wheel="$_name-$pkgver-py2.py3-none-any.whl"
-# both sources because the WHL doesn't come with a license
-source=("$pkgname-$pkgver.tgz::https://github.com/jupyter/testpath/archive/$pkgver.tar.gz"
-        "https://files.pythonhosted.org/packages/py2.py3/t/$_name/$_wheel")
-#noextract=("$_wheel")
-md5sums=('4d7795541fccebd2be9818aead36caf1'
-         '5e03fa02495b35f9c33a3303ebe10349')
-
-prepare() {
-  cd "$srcdir"
-  rm testpath/cli*.exe
-  sed -i '/cli-32.exe/d' testpath-$pkgver.dist-info/RECORD
-  sed -i '/cli-64.exe/d' testpath-$pkgver.dist-info/RECORD
-  sed -i 's/shutil.copy(src, dst)/return/' testpath/commands.py
-}
-
-package() {
-  #pip install --compile --no-deps --root="$pkgdir" "$_wheel"
-  # not using pip here because it installs windows junk
-
-  cd "$srcdir/testpath"
-  for _i in ./*; do
-    install -Dm644 $_i "$pkgdir/usr/lib/python3.9/site-packages/testpath/$_i"
-  done
-
-  _dist="testpath-$pkgver.dist-info"
-  cd "$srcdir/$_dist"
-  for _i in ./*; do
-    install -Dm644 $_i "$pkgdir/usr/lib/python3.9/site-packages/$_dist/$_i"
-  done
-
-  cd "$srcdir/testpath-$pkgver"
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}

Copied: python-testpath/repos/community-any/PKGBUILD (from rev 1026642, python-testpath/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-10-01 21:49:58 UTC (rev 1026643)
@@ -0,0 +1,27 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: Philipp A. <flying-sheep at web.de>
+_name=testpath
+pkgname=python-testpath
+pkgver=0.5.0
+pkgrel=1
+pkgdesc='Test utilities for code working with files and commands'
+arch=('any')
+url="https://pypi.python.org/pypi/testpath"
+license=('MIT')
+depends=('python')
+#makedepends=('python-pip')
+_wheel="$_name-$pkgver-py2.py3-none-any.whl"
+source=("https://pypi.io/packages/source/t/$_name/$_name-$pkgver.tar.gz")
+md5sums=('b3a41d75aadeab905f7014a3189e852b')
+
+prepare() {
+  cd "$_name-$pkgver"
+  rm testpath/cli*.exe
+}
+
+package() {
+  cd "$_name-$pkgver"
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list