Date: Friday, January 6, 2023 @ 12:56:44
  Author: alerque
Revision: 1378596

upgpkg: python-poetry 1.3.1-3; fix completions, closs FS#76996

Modified:
  python-poetry/trunk/PKGBUILD
  python-poetry/trunk/poetry-completions-generator

------------------------------+
 PKGBUILD                     |    6 ++++--
 poetry-completions-generator |    2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-06 12:52:07 UTC (rev 1378595)
+++ PKGBUILD    2023-01-06 12:56:44 UTC (rev 1378596)
@@ -1,4 +1,5 @@
 # Maintainer: Caleb Maclennan <[email protected]>
+# Contributor: David JoaquĆ­n Shourabi Porcel <[email protected]>
 # Contributor: Sven-Hendrik Haase <[email protected]>
 # Contributor: Eli Schwartz <[email protected]>
 
@@ -7,7 +8,7 @@
 _pkgname=poetry
 pkgname=python-poetry
 pkgver=1.3.1
-pkgrel=2
+pkgrel=3
 pkgdesc='Python dependency management and packaging made easy'
 arch=(any)
 url=https://python-poetry.org
@@ -45,7 +46,7 @@
 
source=("https://github.com/$pkgname/$_pkgname/archive/$pkgver/$_archive.tar.gz";
         poetry-completions-generator)
 sha256sums=('ea86fe2bac5d37f7c31d24acf758796b8e6cdbe1e391a77afe2acd4c491fa29d'
-            '970225289188ea8dc49fbec8a2bfe0c891aee80ff56ba6e69bdd8afef8bccab6')
+            'e44c71a3b804b5c2bf07573ed465aee275a5844f10e37ee63c7395c9213a2b6d')
 
 prepare() {
        cd "$_archive"
@@ -73,6 +74,7 @@
        # 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???
+       set -o pipefail
        ./poetry-completions-generator completions bash |
                sed "#$srcdir#d" |
                install -Dm644 /dev/stdin 
"$pkgdir/usr/share/bash-completion/completions/poetry"

Modified: poetry-completions-generator
===================================================================
--- poetry-completions-generator        2023-01-06 12:52:07 UTC (rev 1378595)
+++ poetry-completions-generator        2023-01-06 12:56:44 UTC (rev 1378596)
@@ -8,7 +8,7 @@
 # We don't want to complete 'poetry/__main__.py'....
 
 import sys
-from poetry.console import main
+from poetry.console.application import main
 
 sys.argv = ['poetry', 'completions', sys.argv.pop()]
 

Reply via email to