Date: Friday, August 26, 2022 @ 17:48:12 Author: felixonmars Revision: 1283482
archrelease: copy trunk to community-any Added: python-softlayer/repos/community-any/PKGBUILD (from rev 1283481, python-softlayer/trunk/PKGBUILD) Deleted: python-softlayer/repos/community-any/PKGBUILD ----------+ PKGBUILD | 93 +++++++++++++++++++++++++++++-------------------------------- 1 file changed, 45 insertions(+), 48 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-08-26 17:47:56 UTC (rev 1283481) +++ PKGBUILD 2022-08-26 17:48:12 UTC (rev 1283482) @@ -1,48 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgname=python-softlayer -pkgver=5.9.9 -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') -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=('3391605664f46616f771f0337cbc4c5e5c88a80c84849bc83bf4105ecf1e591315c94d8b18bde76b34d2b4f98c1e5f7890a3cd204796e9af14a6eab01697cc78' - '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: Copied: python-softlayer/repos/community-any/PKGBUILD (from rev 1283481, python-softlayer/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-08-26 17:48:12 UTC (rev 1283482) @@ -0,0 +1,45 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=python-softlayer +pkgver=6.1.0 +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-mock' 'python-testtools' 'python-softlayer-zeep' 'tk') +source=("$pkgname-$pkgver.tar.gz::https://github.com/softlayer/softlayer-python/archive/v$pkgver.tar.gz") +sha512sums=('4b95cd11a0767956b4a63e34cde03ecbbdb5b9c1e35097ff59c32c3ecfb778fb32bf589c3ef7ee6e4ce4767b89b604e8fe0ddf6ef2af9cf0bd72cc12198b1f44') + +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: