Date: Wednesday, May 18, 2022 @ 10:29:08 Author: daurnimator Revision: 1207777
archrelease: copy trunk to community-any Added: httpie/repos/community-any/PKGBUILD (from rev 1207776, httpie/trunk/PKGBUILD) Deleted: httpie/repos/community-any/PKGBUILD ----------+ PKGBUILD | 103 +++++++++++++++++++++++++++++++++---------------------------- 1 file changed, 56 insertions(+), 47 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-05-18 10:26:36 UTC (rev 1207776) +++ PKGBUILD 2022-05-18 10:29:08 UTC (rev 1207777) @@ -1,47 +0,0 @@ -# Maintainer: Jelle van der Waa <je...@archlinux.org> -# Maintainer: daurnimator <daurnima...@archlinux.org> -# Contributor: Daniel Micay <danielmi...@gmail.com> -# Contributor: Thomas Weißschuh <thomas_weissschuh lavabit com> - -pkgname=httpie -pkgver=2.6.0 -pkgrel=2 -pkgdesc="human-friendly CLI HTTP client for the API era" -url="https://github.com/httpie/httpie" -depends=('python-defusedxml' - 'python-pygments' - 'python-pysocks' - 'python-requests' - 'python-requests-toolbelt' - 'python-charset-normalizer') -makedepends=('python-setuptools') -checkdepends=('python-pytest' - 'python-pytest-httpbin' - 'python-responses') -conflicts=(python-httpie) -replaces=(python-httpie python2-httpie) -license=('BSD') -arch=('any') -source=($pkgname-$pkgver.tar.gz::"https://github.com/httpie/httpie/archive/$pkgver.tar.gz") -sha256sums=('3bcd9a8cb2b11299da12d3af36c095c6d4b665e41c395898a07f1ae4d99fc14a') - -build() { - cd $pkgname-$pkgver - python3 setup.py build -} - -package() { - cd $pkgname-$pkgver - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/httpie/LICENSE" - python3 setup.py install --root="$pkgdir" --optimize=1 - - # Fix upstream, include them in MANIFEST.in and use data_files in setup.py to install them automatically - # TODO: add zsh support - install -Dm644 extras/httpie-completion.bash "$pkgdir"/usr/share/bash-completion/completions/http - install -Dm644 extras/httpie-completion.fish "$pkgdir"/usr/share/fish/vendor_completions.d/http.fish -} - -check() { - cd $pkgname-$pkgver - PYTHONDONTWRITEBYTECODE=1 pytest tests -} Copied: httpie/repos/community-any/PKGBUILD (from rev 1207776, httpie/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-05-18 10:29:08 UTC (rev 1207777) @@ -0,0 +1,56 @@ +# Maintainer: Jelle van der Waa <je...@archlinux.org> +# Maintainer: daurnimator <daurnima...@archlinux.org> +# Contributor: Daniel Micay <danielmi...@gmail.com> +# Contributor: Thomas Weißschuh <thomas_weissschuh lavabit com> + +pkgname=httpie +pkgver=3.2.1 +pkgrel=1 +pkgdesc="human-friendly CLI HTTP client for the API era" +url="https://github.com/httpie/httpie" +depends=('python-charset-normalizer' + 'python-defusedxml' + 'python-multidict' + 'python-pip' + 'python-pygments' + 'python-pysocks' + 'python-requests' + 'python-requests-toolbelt' + 'python-rich') +makedepends=('python-setuptools') +checkdepends=('python-pytest' + 'python-pytest-httpbin' + 'python-pytest-lazy-fixture' + 'python-pytest-mock' + 'python-responses' + 'python-werkzeug') +conflicts=(python-httpie) +replaces=(python-httpie python2-httpie) +license=('BSD') +arch=('any') +source=($pkgname-$pkgver.tar.gz::"https://github.com/httpie/httpie/archive/$pkgver.tar.gz") +sha256sums=('803e1624e005c2f7002802a77ebc687b05375aca76af42639f844405328633eb') + +build() { + cd $pkgname-$pkgver + python3 setup.py build +} + +package() { + cd $pkgname-$pkgver + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/httpie/LICENSE" + python3 setup.py install --root="$pkgdir" --optimize=1 + + # Fix upstream, include them in MANIFEST.in and use data_files in setup.py to install them automatically + # TODO: add zsh support + install -Dm644 extras/httpie-completion.bash "$pkgdir"/usr/share/bash-completion/completions/http + install -Dm644 extras/httpie-completion.fish "$pkgdir"/usr/share/fish/vendor_completions.d/http.fish +} + +check() { + cd $pkgname-$pkgver + PYTHONDONTWRITEBYTECODE=1 pytest \ + -m 'not requires_installation' \ + -k 'not test_stdin_read_warning' \ + tests +}