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

Felix Yan felixonmars at archlinux.org
Wed Dec 23 20:58:59 UTC 2020


    Date: Wednesday, December 23, 2020 @ 20:58:58
  Author: felixonmars
Revision: 785216

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   79 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 41 insertions(+), 38 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-12-23 20:58:55 UTC (rev 785215)
+++ PKGBUILD	2020-12-23 20:58:58 UTC (rev 785216)
@@ -1,38 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-softlayer
-pkgver=5.9.2
-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')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/softlayer/softlayer-python/archive/v$pkgver.tar.gz")
-sha512sums=('9ae24ad3c5505268efa216d7cd286954c83de5760452a68c1c666a1ba0719789ddc5f999c2a1be6f90915bac74f4269bda924b5799ca41a72be82f827e12965c')
-
-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
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-softlayer/repos/community-any/PKGBUILD (from rev 785214, python-softlayer/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-12-23 20:58:58 UTC (rev 785216)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-softlayer
+pkgver=5.9.2
+pkgrel=2
+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')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/softlayer/softlayer-python/archive/v$pkgver.tar.gz")
+sha512sums=('9ae24ad3c5505268efa216d7cd286954c83de5760452a68c1c666a1ba0719789ddc5f999c2a1be6f90915bac74f4269bda924b5799ca41a72be82f827e12965c')
+
+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.9/site-packages/tests
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list