Date: Thursday, February 9, 2023 @ 22:07:32
Author: felixonmars
Revision: 1399140
archrelease: copy trunk to community-any
Added:
python-softlayer/repos/community-any/PKGBUILD
(from rev 1399139, python-softlayer/trunk/PKGBUILD)
Deleted:
python-softlayer/repos/community-any/PKGBUILD
----------+
PKGBUILD | 92 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 47 insertions(+), 45 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-02-09 22:07:20 UTC (rev 1399139)
+++ PKGBUILD 2023-02-09 22:07:32 UTC (rev 1399140)
@@ -1,45 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-
-pkgname=python-softlayer
-pkgver=6.1.3
-pkgrel=1
-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' 'python-rich')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest' 'python-testtools' 'python-softlayer-zeep' 'tk')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/softlayer/softlayer-python/archive/v$pkgver.tar.gz")
-sha512sums=('6690cf34f1cdf197e4ce320149b94031cb0611c92bb3ccef3c6ee265bb9810834f0d339f2a5f12b9d4d7dfabd85ab1d4a0d08dda109ebc5c610a14819faee0da')
-
-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 -m pytest
-}
-
-package() {
- cd softlayer-python-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
- install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
-
- # 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 1399139,
python-softlayer/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-02-09 22:07:32 UTC (rev 1399140)
@@ -0,0 +1,47 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-softlayer
+pkgver=6.1.4
+_commit=0e656572a605dcb5c2f34d0f6a5c13d0589f396e
+pkgrel=1
+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' 'python-rich')
+makedepends=('git' 'python-setuptools')
+checkdepends=('python-pytest' 'python-testtools' 'python-softlayer-zeep' 'tk')
+source=("git+https://github.com/softlayer/softlayer-python.git#commit=$_commit")
+sha512sums=('SKIP')
+
+prepare() {
+ cd softlayer-python
+ sed -i 's/==/>=/' setup.py
+}
+
+build() {
+ cd softlayer-python
+ python setup.py build
+}
+
+check() {
+ cd softlayer-python
+ python -m pytest
+}
+
+package() {
+ cd softlayer-python
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+
+ # It's only present when tests are enabled, so adding -f
+ local python_version=$(python -c 'import sys; print(".".join(map(str,
sys.version_info[:2])))')
+ rm -rf "$pkgdir"/usr/lib/python${python_version}/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: