diff options
author | Carlos Aznarán Laos | 2022-01-21 09:15:31 -0500 |
---|---|---|
committer | Carlos Aznarán Laos | 2022-01-21 09:15:31 -0500 |
commit | 7a36a40c9df09f5b1edf1229b7ffa6531117f900 (patch) | |
tree | c8767a97aebefa1f7a24983b6e52a751354c15bd | |
parent | c96c2dd01f8190e80aa6f67617f964ee26b01363 (diff) | |
download | aur-7a36a40c9df09f5b1edf1229b7ffa6531117f900.tar.gz |
Drop python2 support
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | LICENSE.txt | 21 | ||||
-rw-r--r-- | PKGBUILD | 58 |
3 files changed, 23 insertions, 77 deletions
@@ -1,22 +1,13 @@ pkgbase = python-mailjet - pkgdesc = Official Mailjet Python Wrapper - pkgver = 1.3.3 + pkgdesc = Mailjet V3 API wrapper + pkgver = 1.3.4 pkgrel = 1 - url = https://pypi.org/project/mailjet-rest/ + url = https://pypi.org/project/mailjet-rest arch = any license = MIT makedepends = python-setuptools - makedepends = python2-setuptools - makedepends = python-requests - makedepends = python2-requests - source = https://files.pythonhosted.org/packages/69/04/a92885c635ca412c8f5bdf3d11da6f619bbd4bce45c4e28189eeef10bd6a/mailjet_rest-1.3.3.tar.gz - source = LICENSE.txt - sha256sums = f14424df10c30083491dcaa5902ff9b159af82bca261af5e7b2213afdcf7a11c - sha256sums = 104cc6b013a00cb45959c7caa51e996f5b782cfffb7995eb57ebf44147194674 - -pkgname = python-mailjet depends = python-requests + source = https://pypi.org/packages/source/m/mailjet_rest/mailjet_rest-1.3.4.tar.gz + sha512sums = ca0ff352b52aa836aa2e2bdeee213dad7f4101c123221b66fb1b1ad02f993d2413bc054328888313f0373fbe9104e66b7b242f18e42489590c2448e410284d6a -pkgname = python2-mailjet - depends = python2-requests - +pkgname = python-mailjet diff --git a/LICENSE.txt b/LICENSE.txt deleted file mode 100644 index f44502d03556..000000000000 --- a/LICENSE.txt +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014 starenka - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE.
\ No newline at end of file @@ -1,48 +1,24 @@ -# Maintainer: Pierre Chapuis <catwell@archlinux.us> - -pkgname=("python-mailjet" "python2-mailjet") -pkgver=1.3.3 +# Contributor: Pierre Chapuis <catwell@archlinux.us> +_base=mailjet-rest +pkgname=python-${_base/-*/} +pkgver=1.3.4 pkgrel=1 -pkgdesc="Official Mailjet Python Wrapper" -arch=("any") -url="https://pypi.org/project/mailjet-rest/" +pkgdesc="Mailjet V3 API wrapper" +arch=(any) +url="https://pypi.org/project/${_base}" license=("MIT") -makedepends=( - "python-setuptools" "python2-setuptools" - "python-requests" "python2-requests" -) -source=( - "https://files.pythonhosted.org/packages/69/04/a92885c635ca412c8f5bdf3d11da6f619bbd4bce45c4e28189eeef10bd6a/mailjet_rest-$pkgver.tar.gz" - "LICENSE.txt" -) -sha256sums=( - "f14424df10c30083491dcaa5902ff9b159af82bca261af5e7b2213afdcf7a11c" - "104cc6b013a00cb45959c7caa51e996f5b782cfffb7995eb57ebf44147194674" -) +depends=(python-requests) +makedepends=(python-setuptools) +source=(https://pypi.org/packages/source/${_base::1}/${_base/-/_}/${_base/-/_}-${pkgver}.tar.gz) +sha512sums=('ca0ff352b52aa836aa2e2bdeee213dad7f4101c123221b66fb1b1ad02f993d2413bc054328888313f0373fbe9104e66b7b242f18e42489590c2448e410284d6a') build() { - cd "$srcdir" - rm -rf python{2,3}-build - for builddir in python{2,3}-build; do - cp -r "mailjet_rest-$pkgver" "$builddir" - pushd "$builddir" - "${builddir%-build}" setup.py build - popd - done -} - -package_python-mailjet() { - depends=("python-requests") - cd "$srcdir/python3-build" - python3 setup.py install --root="$pkgdir" -O1 - install -Dm644 "$srcdir/LICENSE.txt" \ - "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + cd ${_base/-/_}-${pkgver} + export PYTHONHASHSEED=0 + python setup.py build } -package_python2-mailjet() { - depends=("python2-requests") - cd "$srcdir/python2-build" - python2 setup.py install --root="$pkgdir" -O1 - install -Dm644 "$srcdir/LICENSE.txt" \ - "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +package() { + cd ${_base/-/_}-${pkgver} + PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build } |