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

Felix Yan felixonmars at gemini.archlinux.org
Sun Feb 13 11:08:16 UTC 2022


    Date: Sunday, February 13, 2022 @ 11:08:15
  Author: felixonmars
Revision: 1133034

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   93 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 48 insertions(+), 45 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-02-13 11:07:31 UTC (rev 1133033)
+++ PKGBUILD	2022-02-13 11:08:15 UTC (rev 1133034)
@@ -1,45 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-softlayer
-pkgver=5.9.8
-pkgrel=1
-pkgdesc="A library for SoftLayer's API"
-arch=('any')
-license=('MIT')
-url='https://github.com/softlayer/softlayer-python'
-depends=('python-six' 'python-ptable' 'python-click' 'python-requests' 'python-prompt_toolkit'
-         'python-pygments' 'python-urllib3')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest-runner' 'python-mock' 'python-testtools' 'tk')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/softlayer/softlayer-python/archive/v$pkgver.tar.gz")
-sha512sums=('3125489e59e810620c10b5a347015ed62c36c97794c30a4657135ff8e7cd0cd631505e8ce406c02559f652c52ecc0e9e597b8a110a3e0097b71233bc290ea0e4')
-
-prepare() {
-  cd softlayer-python-$pkgver
-  sed -i 's/==/>=/' setup.py
-}
-
-build() {
-  cd softlayer-python-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd softlayer-python-$pkgver
-  python setup.py pytest --addopts '-k "not test_edit_perms_on_bad"'
-}
-
-package() {
-  cd softlayer-python-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-
-  # It's only present when tests are enabled, so adding -f
-  rm -rf "$pkgdir"/usr/lib/python3.10/site-packages/tests
-
-  # Prevent collisions with `sl` package; This command is deemed deprecated by
-  # the project anyway
-  rm -f "$pkgdir/usr/bin/sl"
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-softlayer/repos/community-any/PKGBUILD (from rev 1133033, python-softlayer/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-02-13 11:08:15 UTC (rev 1133034)
@@ -0,0 +1,48 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-softlayer
+pkgver=5.9.8
+pkgrel=2
+pkgdesc="A library for SoftLayer's API"
+arch=('any')
+license=('MIT')
+url='https://github.com/softlayer/softlayer-python'
+depends=('python-six' 'python-prettytable' 'python-click' 'python-requests' 'python-prompt_toolkit'
+         'python-pygments' 'python-urllib3')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-mock' 'python-testtools' 'tk')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/softlayer/softlayer-python/archive/v$pkgver.tar.gz"
+         https://github.com/softlayer/softlayer-python/commit/bfcbc022dd0f16c13ad6618c6dfca01ced9c9b7e.patch)
+sha512sums=('3125489e59e810620c10b5a347015ed62c36c97794c30a4657135ff8e7cd0cd631505e8ce406c02559f652c52ecc0e9e597b8a110a3e0097b71233bc290ea0e4'
+            '07400a8b643cc35eb479be36a074e75bf60576c318409b935e7646ef2b055a2eb510b077e3d19ddf2e4ef5071cb658affc0d82a38c25436bc612b307e174be35')
+
+prepare() {
+  cd softlayer-python-$pkgver
+  sed -i 's/==/>=/' setup.py
+  patch -p1 < ../bfcbc022dd0f16c13ad6618c6dfca01ced9c9b7e.patch # replace PTable with prettytable
+}
+
+build() {
+  cd softlayer-python-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd softlayer-python-$pkgver
+  python setup.py pytest --addopts '-k "not test_edit_perms_on_bad"'
+}
+
+package() {
+  cd softlayer-python-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+  # It's only present when tests are enabled, so adding -f
+  rm -rf "$pkgdir"/usr/lib/python3.10/site-packages/tests
+
+  # Prevent collisions with `sl` package; This command is deemed deprecated by
+  # the project anyway
+  rm -f "$pkgdir/usr/bin/sl"
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list