summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Manna2020-12-06 07:58:16 -0800
committerKyle Manna2020-12-06 07:59:51 -0800
commit782fc26428a8b2222ffcc8d37d85944acda3aeec (patch)
treec9fa7054eceeada7ba31fc6fafd051fcab184146
parent4cc06668600cb908bade32ed5ac8cf1eae5bb572 (diff)
downloadaur-782fc26428a8b2222ffcc8d37d85944acda3aeec.tar.gz
release: python-b2sdk v1.2.0-1
* Follow upstream. * Install LICENSE properly. * Improve test clean-up..
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD11
2 files changed, 11 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3e25a3c030c..fe193320263 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = python-b2sdk
pkgdesc = Python library to access B2 cloud storage.
- pkgver = 1.1.4
+ pkgver = 1.2.0
pkgrel = 1
url = https://github.com/Backblaze/b2-sdk-python
arch = any
@@ -10,10 +10,9 @@ pkgbase = python-b2sdk
depends = python-logfury>=0.1.2
depends = python-requests>=2.9.1
depends = python-setuptools
- depends = python-six>=1.10
depends = python-tqdm>=4.5.0
- source = https://github.com/Backblaze/b2-sdk-python/archive/v1.1.4.tar.gz
- sha256sums = 230d88d1368345f0175c1df3c4e8225b4e481b97263ed3bb1e24eb5b9c204a76
+ source = https://github.com/Backblaze/b2-sdk-python/archive/v1.2.0.tar.gz
+ sha256sums = 80d2daeaee38178a4d76922da2e69d7ad1f0d90fccea90d724a38909abb69b27
pkgname = python-b2sdk
diff --git a/PKGBUILD b/PKGBUILD
index 2f5a142a0c7..e3a0f1504e9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=python-b2sdk
_pkgname=b2-sdk-python
-pkgver=1.1.4
+pkgver=1.2.0
pkgrel=1
pkgdesc='Python library to access B2 cloud storage.'
arch=(any)
@@ -13,12 +13,11 @@ depends=('python'
'python-logfury>=0.1.2'
'python-requests>=2.9.1'
'python-setuptools'
- 'python-six>=1.10'
'python-tqdm>=4.5.0'
)
source=(https://github.com/Backblaze/${_pkgname}/archive/v${pkgver}.tar.gz)
-sha256sums=('230d88d1368345f0175c1df3c4e8225b4e481b97263ed3bb1e24eb5b9c204a76')
+sha256sums=('80d2daeaee38178a4d76922da2e69d7ad1f0d90fccea90d724a38909abb69b27')
build() {
cd ${srcdir}/${_pkgname}-${pkgver}
@@ -32,4 +31,10 @@ build() {
package() {
cd ${srcdir}/${_pkgname}-${pkgver}
python setup.py install --root=${pkgdir} --optimize=1
+
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+ # https://wiki.archlinux.org/index.php/Python_package_guidelines
+ local site_packages=$(python -c 'import site; print(site.getsitepackages()[0])')
+ rm -rf "${pkgdir}${site_packages}/test"
}