Date: Tuesday, February 28, 2023 @ 09:27:54
  Author: alerque
Revision: 1405584

archrelease: copy trunk to community-testing-any

Deleted:
  python-poetry/repos/community-testing-any/PKGBUILD
  python-poetry/repos/community-testing-any/poetry-completions-generator

------------------------------+
 PKGBUILD                     |   86 -----------------------------------------
 poetry-completions-generator |   15 -------
 2 files changed, 101 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-02-28 09:23:45 UTC (rev 1405583)
+++ PKGBUILD    2023-02-28 09:27:54 UTC (rev 1405584)
@@ -1,86 +0,0 @@
-# Maintainer: Caleb Maclennan <[email protected]>
-# Contributor: David JoaquĆ­n Shourabi Porcel <[email protected]>
-# Contributor: Sven-Hendrik Haase <[email protected]>
-# Contributor: Eli Schwartz <[email protected]>
-
-BUILDENV+=(!check)
-
-_pkgname=poetry
-pkgname=python-poetry
-pkgver=1.4.0
-pkgrel=1
-pkgdesc='Python dependency management and packaging made easy'
-arch=(any)
-url=https://python-poetry.org
-license=(MIT)
-_deps=(cachecontrol
-       cachy
-       cleo
-       crashtest
-       dulwich
-       html5lib
-       jsonschema
-       keyring
-       lockfile
-       packaging
-       pexpect
-       pkginfo
-       platformdirs
-       poetry-core
-       poetry-plugin-export
-       requests
-       requests-toolbelt
-       shellingham
-       tomli
-       tomlkit
-       urllib3
-       virtualenv)
-depends=("${_deps[@]/#/python-}")
-makedepends=(python-{build,installer})
-checkdepends=(git
-              python-httpretty
-              python-pytest
-              python-pytest-mock)
-provides=(poetry)
-_archive="$_pkgname-$pkgver"
-source=("https://github.com/$pkgname/$_pkgname/archive/$pkgver/$_archive.tar.gz";
-        poetry-completions-generator)
-sha256sums=('0102c16680c6756d5d3377d5a796d6e03e19e3e64fd8cbf1198ab9d6a3f84dfc'
-            'e44c71a3b804b5c2bf07573ed465aee275a5844f10e37ee63c7395c9213a2b6d')
-
-prepare() {
-       cd "$_archive"
-       install -m0755 -t ./ ../poetry-completions-generator
-       # Unpin crashtest which we have packaged at 0.4.0
-       # https://bugs.archlinux.org/task/75733
-       sed -i -e '/^crashtest/s/\^/>=/' pyproject.toml
-}
-
-build() {
-       cd "$_archive"
-       python -m build -wn
-}
-
-check() {
-       cd "$_archive/src"
-       export PYTHONPATH="$PWD"
-       pytest
-}
-
-package() {
-       cd "$_archive"
-       python -m installer -d "$pkgdir" dist/*.whl
-       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???
-       set -o pipefail
-       ./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"
-}

Deleted: poetry-completions-generator
===================================================================
--- poetry-completions-generator        2023-02-28 09:23:45 UTC (rev 1405583)
+++ poetry-completions-generator        2023-02-28 09:27:54 UTC (rev 1405584)
@@ -1,15 +0,0 @@
-#!/usr/bin/python3
-
-# This is a dummy script that fakes its own sys.argv[0] to make the completions
-# subcommand do the correct thing when run from the build directory. cleo's
-# completion generator uses this to generate completions for sys.argv[0] as 
well
-# as (???) os.path.join(os.getcwd(), sys.argv[0]) for mysterious reasons.
-#
-# We don't want to complete 'poetry/__main__.py'....
-
-import sys
-from poetry.console.application import main
-
-sys.argv = ['poetry', 'completions', sys.argv.pop()]
-
-main()

Reply via email to