summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorChris Severance2020-08-18 01:11:20 -0400
committerChris Severance2020-08-18 01:11:20 -0400
commit4546882a2a553e1daf0b881f0da7bf0ba1f184ac (patch)
tree7d067337f47873a9cef3f6055eac1c8511312cc2 /PKGBUILD
parent62d9b5219307f0cbde9b7504c1aad2a29e838b0e (diff)
downloadaur-4546882a2a553e1daf0b881f0da7bf0ba1f184ac.tar.gz
autu: Update to 1.17.44-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD141
1 files changed, 117 insertions, 24 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 4ab1aa570cb..136bfe28b75 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,36 +1,129 @@
-# Maintainer: Andrea Scarpino <andrea at archlinux.org>
-# Contributor: Jonathan Steel <jsteel at archlinux.org>
-# Contributor: Chris Severance aur.severach AatT spamgourmet.com
-# Contributor: Ainola
+# Maintainer: Chris Severance aur.severach AatT spamgourmet.com
+# Maintainer: Ainola
# Contributor: Chris Fordham
-pkgname=python2-botocore
-pkgver=1.13.39
+# This package is designed so that these PKGBUILD are easy to sync with Midnight Commander:
+# aws-cli & aws-cli-git
+# python-botocore & python-botocore-git
+
+# Note: the primary use of this package is with aws-cli
+
+# Use mcdiff to watch for changes
+_fn_foobar() {
+local _foobar="
+#requirements-docs.txt
+docutils>=0.10,<0.16
+Sphinx>=1.1.3,<1.3
+guzzle_sphinx_theme>=0.7.10,<0.8
+
+#requirements.txt
+tox>=2.5.0,<3.0.0
+nose==1.3.7
+mock==1.3.0
+wheel==0.24.0
+docutils>=0.10,<0.16
+behave==1.2.5
+jsonschema==2.5.1
+
+#setup.py
+requires = [
+ 'jmespath>=0.7.1,<1.0.0',
+ 'docutils>=0.10,<0.16',
+ 'python-dateutil>=2.1,<3.0.0',
+]
+
+
+if sys.version_info[:2] == (3, 4):
+ # urllib3 dropped support for python 3.4 in point release 1.25.8
+ requires.append('urllib3>=1.20,<1.25.8')
+else:
+ requires.append('urllib3>=1.20,<1.26')
+"
+}
+unset -f _fn_foobar
+
+set -u
+_pyver="python2"
+_pybase='botocore'
+pkgname="${_pyver}-${_pybase}"
+pkgver=1.17.44
pkgrel=1
-pkgdesc='A low-level interface to a growing number of Amazon Web Services'
+pkgdesc='A low-level interface to a number of Amazon Web Services. This is the foundation for the AWS CLI as well as boto3'
arch=('any')
-url="https://github.com/boto/botocore"
-license=('Apache')
-depends=('python2-dateutil' 'python2-jmespath' 'python2-docutils' 'python2-urllib3')
-makedepends=('python2-setuptools')
-source=($pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz
- $pkgname-cap-dateutil-version.patch::https://github.com/boto/botocore/commit/e87e7a745f.patch)
-md5sums=('5d41b0a0ce8aba26f6c1c5b66e9494d9'
- '11307e5c6eddd77cc5ea4be17550a4a7')
-
-prepare() {
- cd botocore-$pkgver
- patch -Rp1 -i ../$pkgname-cap-dateutil-version.patch
+url="https://github.com/boto/${_pybase}"
+license=('Apache') # Apache License 2.0
+_pydepends=( # See setup.py, README.rst, and requirements.txt for version dependencies
+ # setup.py
+ "${_pyver}-dateutil"'>=2.1' #,'<3.0.0'}
+ "${_pyver}-jmespath"'>=0.7.1' #,'<1.0.0'}
+ "${_pyver}-docutils>=0.10" #,'0.16'}
+ "${_pyver}-urllib3"'>=1.20' #,'<1.26'}
+
+ # requirements.txt
+ "${_pyver}-tox"'>=2.5.0' #,'<3.0.0'}
+ "${_pyver}-nose>=1.3.7"
+ "${_pyver}-mock>=1.3.0"
+ "${_pyver}-wheel>=0.24.0"
+ "${_pyver}-docutils"'>=0.10' #,'<0.16'}
+ "${_pyver}-behave>=1.2.5"
+ "${_pyver}-jsonschema>=2.5.1"
+
+ # requirements-docs.txt
+ "${_pyver}-sphinx"'>=1.1.3' # ,'<1.3'}
+ "${_pyver}-guzzle-sphinx-theme"'>=0.7.10' #,'<0.8'}
+
+ # old but still required
+ #"${_pyver}-bcdoc<0.15.0"
+ "${_pyver}-six>=1.1.0"
+)
+depends=("${_pyver}" "${_pydepends[@]}")
+makedepends=("${_pyver}" "${_pyver}-distribute") # same as python-setuptools
+options=('!strip')
+source=("${_pybase}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
+sha256sums=('07e902e82963b98af99606fc58f2d04dfec5b2768209477ac1642c4ee1550574')
+
+if [ "${pkgname%-git}" != "${pkgname}" ]; then # this is easily done with case
+ _srcdir="${_pybase}"
+ makedepends+=('git')
+ provides+=("${pkgname%-git}=${pkgver%%.r*}")
+ conflicts+=("${pkgname%-git}")
+ source=("${_srcdir}::git+${url}.git")
+ :;sha256sums=('SKIP')
+pkgver() {
+ set -u
+ cd "${_srcdir}"
+ printf '%s.r%s.g%s' "$(sed -ne "s:__version__ = '\(.*\)'"'$:\1:p' 'botocore/__init__.py')" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" # "
+ set +u
}
+else
+ _srcdir="${_pybase}-${pkgver}"
+# _verwatch=("${url}/releases" "${url#*github.com}/archive/\(.*\)\.tar\.gz" 'l')
+fi
build() {
- cd botocore-$pkgver
- python2 setup.py build
+ set -u
+ cd "${_srcdir}"
+ ${_pyver} setup.py build
+ set +u
+}
+
+check() {
+ set -u
+ cd "${_srcdir}"
+ # If pip is installed, some package tests download missing packages. We can't allow that.
+ #${_pyver} setup.py test --verbose
+ set +u
}
package() {
- cd botocore-$pkgver
- python2 setup.py install --root="$pkgdir" --optimize=1
- install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ set -u
+ #depends=("${_pyver}" "${_pydepends[@]}")
+ cd "${_srcdir}"
+ ${_pyver} setup.py install --root="${pkgdir}" --optimize=1
+ install -Dpm644 'README.rst' 'requirements.txt' -t "${pkgdir}/usr/share/doc/${pkgname%-git}/"
+ install -Dpm644 'LICENSE.txt' "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE"
+ set +u
}
+set +u
+# vim:set ts=2 sw=2 et: