[arch-commits] Commit in python-poetry/trunk (PKGBUILD)
Caleb Maclennan
alerque at gemini.archlinux.org
Wed Jan 5 17:54:27 UTC 2022
Date: Wednesday, January 5, 2022 @ 17:54:27
Author: alerque
Revision: 1093311
upgpkg: python-poetry 1.1.12-3; fix upstream URLs and restyle some code
Modified:
python-poetry/trunk/PKGBUILD
----------+
PKGBUILD | 26 ++++++++++++++------------
1 file changed, 14 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-01-05 17:42:22 UTC (rev 1093310)
+++ PKGBUILD 2022-01-05 17:54:27 UTC (rev 1093311)
@@ -5,10 +5,10 @@
_pkgname=poetry
pkgname=python-poetry
pkgver=1.1.12
-pkgrel=2
+pkgrel=3
pkgdesc='Python dependency management and packaging made easy'
arch=(any)
-url='https://poetry.eustace.io'
+url=https://python-poetry.org
license=(MIT)
_deps=(cachecontrol
cachy
@@ -33,7 +33,7 @@
python-pytest-mock)
provides=(poetry)
_archive="$_pkgname-$pkgver"
-source=("$_archive.tar.gz::https://github.com/sdispater/$_pkgname/archive/$pkgver.tar.gz"
+source=("https://github.com/$pkgname/$_pkgname/archive/$pkgver/$_archive.tar.gz"
0001-Suppress-dependency-versions-which-are-known-to-be-t.patch
0001-tests-cleanup-cache-and-http-usage.patch
poetry-completions-generator)
@@ -50,6 +50,7 @@
# See: https://github.com/python-poetry/poetry/issues/1645
patch -p1 -i ../0001-tests-cleanup-cache-and-http-usage.patch
dephell deps convert --from pyproject.toml --to setup.py
+ install -m0755 -t ./ ../poetry-completions-generator
}
build() {
@@ -68,16 +69,17 @@
package() {
cd "$_archive"
- python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
- install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
# install completions, which for some crazy reason hardcode the filename
# used to invoke which is __main__.py if we use python -m poetry, and also
# adds the full directory path???
- install -m755 "${srcdir}"/poetry-completions-generator ./poetry-completions-generator
- ./poetry-completions-generator completions bash | sed "\|${srcdir}|d" | \
- install -Dm644 /dev/stdin "${pkgdir}"/usr/share/bash-completion/completions/poetry
- ./poetry-completions-generator completions zsh | sed "\|${srcdir}|d" | \
- install -Dm644 /dev/stdin "${pkgdir}"/usr/share/zsh/site-functions/_poetry
- ./poetry-completions-generator completions fish | \
- install -Dm644 /dev/stdin "${pkgdir}"/usr/share/fish/vendor_completions.d/poetry.fish
+ ./poetry-completions-generator completions bash |
+ sed "#$srcdir#d" |
+ install -Dm644 /dev/stdin "$pkgdir/usr/share/bash-completion/completions/poetry"
+ ./poetry-completions-generator completions zsh |
+ sed "#$srcdir#d" |
+ install -Dm644 /dev/stdin "$pkgdir/usr/share/zsh/site-functions/_poetry"
+ ./poetry-completions-generator completions fish |
+ install -Dm644 /dev/stdin "$pkgdir/usr/share/fish/vendor_completions.d/poetry.fish"
}
More information about the arch-commits
mailing list