Date: Wednesday, March 1, 2023 @ 08:53:48
Author: grawlinson
Revision: 1405789
archrelease: copy trunk to community-any
Added:
python-prompt_toolkit/repos/community-any/PKGBUILD
(from rev 1405788, python-prompt_toolkit/trunk/PKGBUILD)
Deleted:
python-prompt_toolkit/repos/community-any/PKGBUILD
----------+
PKGBUILD | 91 +++++++++++++++++++++++++++++++++++++------------------------
1 file changed, 56 insertions(+), 35 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-03-01 08:53:02 UTC (rev 1405788)
+++ PKGBUILD 2023-03-01 08:53:48 UTC (rev 1405789)
@@ -1,35 +0,0 @@
-# Maintainer: Kyle Keen <[email protected]>
-# Maintainer: Morten Linderud <[email protected]>
-# Contributor: Andy Weidenbaum <[email protected]>
-
-pkgname=python-prompt_toolkit
-_name=prompt_toolkit
-pkgver=3.0.37
-pkgrel=1
-pkgdesc="Library for building powerful interactive command lines in Python"
-arch=('any')
-depends=('python-pygments'
- 'python-wcwidth')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest')
-url="https://github.com/jonathanslenders/python-prompt-toolkit"
-license=('BSD')
-options=(!emptydirs)
-source=("https://files.pythonhosted.org/packages/source/p/$_name/$_name-$pkgver.tar.gz")
-sha256sums=('d5d73d4b5eb1a92ba884a88962b157f49b71e06c4348b417dd622b25cdd3800b')
-
-build() {
- cd "$_name-$pkgver"
- python setup.py build
-}
-
-check() {
- cd "$_name-$pkgver"
- PYTHONPATH=src PYTHONDONTWRITEBYTECODE=1 python -m pytest
-}
-
-package() {
- cd "$_name-$pkgver"
- python setup.py install --root="$pkgdir" --optimize=1
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
Copied: python-prompt_toolkit/repos/community-any/PKGBUILD (from rev 1405788,
python-prompt_toolkit/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-03-01 08:53:48 UTC (rev 1405789)
@@ -0,0 +1,56 @@
+# Maintainer: Morten Linderud <[email protected]>
+# Maintainer: George Rawlinson <[email protected]>
+# Contributor: Kyle Keen <[email protected]>
+# Contributor: Andy Weidenbaum <[email protected]>
+
+pkgname=python-prompt_toolkit
+_name=prompt_toolkit
+pkgver=3.0.38
+pkgrel=1
+pkgdesc='Library for building powerful interactive command lines in Python'
+arch=('any')
+url='https://github.com/jonathanslenders/python-prompt-toolkit'
+license=('BSD')
+depends=(
+ 'python'
+ 'python-pygments'
+ 'python-wcwidth'
+)
+makedepends=(
+ 'git'
+ 'python-build'
+ 'python-installer'
+ 'python-wheel'
+ 'python-setuptools'
+)
+checkdepends=('python-pytest')
+_commit='960df477c31adf53a3fff98a5c212c71fbfd7a3e'
+source=("$pkgname::git+$url#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+
+ git describe --tags | sed 's/^v//'
+}
+
+build() {
+ cd "$pkgname"
+
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd "$pkgname"
+
+ PYTHONPATH=build/lib pytest -v
+}
+
+package() {
+ cd "$pkgname"
+
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ # license
+ install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}