[arch-commits] Commit in python-poetry/repos/community-any (4 files)

Caleb Maclennan alerque at gemini.archlinux.org
Wed Aug 31 08:06:17 UTC 2022


    Date: Wednesday, August 31, 2022 @ 08:06:17
  Author: alerque
Revision: 1289125

archrelease: copy trunk to community-any

Added:
  python-poetry/repos/community-any/PKGBUILD
    (from rev 1289124, python-poetry/trunk/PKGBUILD)
  python-poetry/repos/community-any/poetry-completions-generator
    (from rev 1289124, python-poetry/trunk/poetry-completions-generator)
Deleted:
  python-poetry/repos/community-any/PKGBUILD
  python-poetry/repos/community-any/poetry-completions-generator

------------------------------+
 PKGBUILD                     |  151 ++++++++++++++++++++---------------------
 poetry-completions-generator |   30 ++++----
 2 files changed, 92 insertions(+), 89 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-31 08:06:08 UTC (rev 1289124)
+++ PKGBUILD	2022-08-31 08:06:17 UTC (rev 1289125)
@@ -1,74 +0,0 @@
-# Maintainer: Caleb Maclennan <caleb at alerque.com>
-# Contributor: Sven-Hendrik Haase <svenstaro at gmail.com>
-# Contributor: Eli Schwartz <eschwartz at archlinux.org>
-
-BUILDENV+=(!check)
-
-_pkgname=poetry
-pkgname=python-poetry
-pkgver=1.2.0
-pkgrel=1
-pkgdesc='Python dependency management and packaging made easy'
-arch=(any)
-url=https://python-poetry.org
-license=(MIT)
-_deps=(cachecontrol
-       cachy
-       cleo
-       html5lib
-       keyring
-       lockfile
-       packaging
-       pexpect
-       pkginfo
-       poetry-core
-       requests
-       requests-toolbelt
-       shellingham
-       tomlkit
-       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=('a5a9531e52bcfc3f93d1c378e1b41c2256e9b1378a044f0b4787e91744d35f78'
-            '970225289188ea8dc49fbec8a2bfe0c891aee80ff56ba6e69bdd8afef8bccab6')
-
-prepare() {
-	cd "$_archive"
-	install -m0755 -t ./ ../poetry-completions-generator
-}
-
-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???
-	./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"
-}

Copied: python-poetry/repos/community-any/PKGBUILD (from rev 1289124, python-poetry/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-08-31 08:06:17 UTC (rev 1289125)
@@ -0,0 +1,77 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+# Contributor: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Contributor: Eli Schwartz <eschwartz at archlinux.org>
+
+BUILDENV+=(!check)
+
+_pkgname=poetry
+pkgname=python-poetry
+pkgver=1.2.0
+pkgrel=2
+pkgdesc='Python dependency management and packaging made easy'
+arch=(any)
+url=https://python-poetry.org
+license=(MIT)
+_deps=(cachecontrol
+       cachy
+       cleo
+       html5lib
+       keyring
+       lockfile
+       packaging
+       pexpect
+       pkginfo
+       poetry-core
+       requests
+       requests-toolbelt
+       shellingham
+       tomlkit
+       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=('a5a9531e52bcfc3f93d1c378e1b41c2256e9b1378a044f0b4787e91744d35f78'
+            '970225289188ea8dc49fbec8a2bfe0c891aee80ff56ba6e69bdd8afef8bccab6')
+
+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???
+	./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	2022-08-31 08:06:08 UTC (rev 1289124)
+++ poetry-completions-generator	2022-08-31 08:06:17 UTC (rev 1289125)
@@ -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 import main
-
-sys.argv = ['poetry', 'completions', sys.argv.pop()]
-
-main()

Copied: python-poetry/repos/community-any/poetry-completions-generator (from rev 1289124, python-poetry/trunk/poetry-completions-generator)
===================================================================
--- poetry-completions-generator	                        (rev 0)
+++ poetry-completions-generator	2022-08-31 08:06:17 UTC (rev 1289125)
@@ -0,0 +1,15 @@
+#!/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 import main
+
+sys.argv = ['poetry', 'completions', sys.argv.pop()]
+
+main()



More information about the arch-commits mailing list