Skip to content

Commit

Permalink
Added python-cdsapi to automation
Browse files Browse the repository at this point in the history
  • Loading branch information
DreamingRaven committed Aug 18, 2024
1 parent bd9282f commit 6e3ceef
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
17 changes: 17 additions & 0 deletions python-cdsapi/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
pkgbase = python-cdsapi
pkgdesc = Copernicus Common Data Store API (was Climate Data Store)
pkgver = 0.7.0
pkgrel = 1
url = https://github.com/ecmwf/cdsapi
arch = x86_64
arch = armv7l
arch = armv7h
arch = aarch64
license = apache
makedepends = python-setuptools
depends = python-tqdm
depends = python-requests
source = https://files.pythonhosted.org/packages/source/c/cdsapi/cdsapi-0.7.0.tar.gz
b2sums = 2a954e36114120236185739b66351fc2a4108d34b1dda0d86b4fda0281810ff09fb601221d7d4a5a3cadf1ddb799b51789b8ae1a7fcaeec9e897f831c1106857

pkgname = python-cdsapi
28 changes: 28 additions & 0 deletions python-cdsapi/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Maintainer: George Raven <GeorgeRavenCommunity PLUS pythoncdsapi AT pm DOT me>

pkgname=python-cdsapi
_name=${pkgname#python-}
pkgdesc="Copernicus Common Data Store API (was Climate Data Store)"
pkgver=0.7.0 # renovate: datasource=github-tags depName=ecmwf/cdsapi
pkgrel=1
arch=('x86_64' 'armv7l' 'armv7h' 'aarch64')
url="https://github.com/ecmwf/cdsapi"
license=('apache')
conflicts=()
provides=()
depends=("python-tqdm" "python-requests")
makedepends=('python-setuptools')
source=(
https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz
)
b2sums=('2a954e36114120236185739b66351fc2a4108d34b1dda0d86b4fda0281810ff09fb601221d7d4a5a3cadf1ddb799b51789b8ae1a7fcaeec9e897f831c1106857')

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

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

0 comments on commit 6e3ceef

Please sign in to comment.