You are not logged in.

#1 2021-08-19 07:24:30

Patschke
Member
Registered: 2021-08-19
Posts: 2

[Solved] Review my first pkgbuild (python-ibmcloudant)

Hi,

I'd like to kindly ask for a review of my first two pkgbuild I want to push to the AUR.

# Contributor: Patrick Mischke

pkgname='python-ibmcloudant'
_name='ibmcloudant'
pkgver=0.0.35
pkgrel=1
pkgdesc="Python Library for Cloudant and CouchDB Access"
url="https://github.com/IBM/cloudant-python-sdk"
depends=('python-requests' 'python-dateutils' 'python-websocket-client' 'python-jproperties' 'python-ibm-cloud-sdk-core')
makedepends=('python-setuptools')
license=('Apache')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('95a4d08433e787371e560297977155320b8217b2e971043b98bff67a7415c251')

build() {
  cd "$_name-$pkgver"
  python setup.py build
}

package() {
  cd "$_name-$pkgver"
  python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
}

The python-cloudant package is deprecated (https://github.com/cloudant/python-cloudant) and users are asked to migrate to the ibmcloudant package - therefore it seemed useful for me to have it available on the AUR. I am not associated with IBM, but as they use the Apache license that should not matter.

Thanks for your feedback!

Last edited by Patschke (2021-08-19 11:57:45)

Offline

#2 2021-08-19 08:38:22

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,390
Website

Re: [Solved] Review my first pkgbuild (python-ibmcloudant)

Looks fine.

Offline

#3 2021-08-19 09:05:51

loqs
Member
Registered: 2014-03-06
Posts: 17,369

Re: [Solved] Review my first pkgbuild (python-ibmcloudant)

requirements.txt lists python_dateutil rather than python_dateutils as listed in the PKGBUILD.

Offline

#4 2021-08-19 11:57:06

Patschke
Member
Registered: 2021-08-19
Posts: 2

Re: [Solved] Review my first pkgbuild (python-ibmcloudant)

Good catch with the typo in dateutil. python-ibm-cloud-sdk-core doesn't exist as an package yet, so I'll create that with the same scheme as well.

Thanks for the responses!

Offline

Board footer

Powered by FluxBB