[arch-commits] Commit in python-clikit/repos/community-any (PKGBUILD PKGBUILD)

Caleb Maclennan alerque at gemini.archlinux.org
Tue Feb 22 20:12:36 UTC 2022


    Date: Tuesday, February 22, 2022 @ 20:12:35
  Author: alerque
Revision: 1136145

archrelease: copy trunk to community-any

Added:
  python-clikit/repos/community-any/PKGBUILD
    (from rev 1136144, python-clikit/trunk/PKGBUILD)
Deleted:
  python-clikit/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   81 ++++++++++++++++++++++++++++---------------------------------
 1 file changed, 38 insertions(+), 43 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-02-22 20:12:28 UTC (rev 1136144)
+++ PKGBUILD	2022-02-22 20:12:35 UTC (rev 1136145)
@@ -1,43 +0,0 @@
-# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
-
-_pkgname=clikit
-pkgname=python-clikit
-pkgver=0.6.2
-pkgrel=5
-pkgdesc="clikit allows you to create beautiful and testable command-line interfaces"
-arch=('any')
-url="https://github.com/sdispater/${_pkgname}"
-license=('MIT')
-depends=('python-crashtest' 'python-pastel' 'python-pylev' 'python-typing_extensions')
-makedepends=('python-dephell')
-checkdepends=('python-pytest-mock')
-source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
-sha256sums=('4bb1d934e0c0a93f25429919242d11d60dcd1d9c65ac096033092d7973cbfc6e')
-b2sums=('b72f245128c698375f97139cf245bdc8c017e3e2d142f6e3183a42620b23a024531e5b14f05163c6defa9ee54c52c19a64932c62484f2ec8da5c75ea1b7d3d27')
-
-prepare() {
-    cd ${_pkgname}-${pkgver}
-
-    # poetry-generated setup.py are fatally broken, see:
-    # https://github.com/sdispater/poetry/issues/866
-    dephell deps convert --from pyproject.toml --to setup.py
-}
-
-build(){
-    cd ${_pkgname}-${pkgver}
-
-    python setup.py build
-}
-
-check() {
-    cd ${_pkgname}-${pkgver}
-
-    PYTHONPATH=$PWD/src python -m pytest
-}
-
-package() {
-    cd ${_pkgname}-${pkgver}
-
-    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-    install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
-}

Copied: python-clikit/repos/community-any/PKGBUILD (from rev 1136144, python-clikit/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-02-22 20:12:35 UTC (rev 1136145)
@@ -0,0 +1,38 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+# Contributor: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=clikit
+pkgname=python-clikit
+pkgver=0.6.2
+pkgrel=6
+pkgdesc='clikit allows you to create beautiful and testable command-line interfaces'
+arch=(any)
+url="https://github.com/sdispater/${_pkgname}"
+license=(MIT)
+depends=(python-crashtest
+         python-pastel
+         python-pylev
+         python-typing_extensions)
+makedepends=(python-{build,installer}
+             python-poetry)
+checkdepends=(python-pytest-mock)
+_archive="$_pkgname-$pkgver"
+source=("$url/archive/$pkgver/$_archive.tar.gz")
+sha256sums=('4bb1d934e0c0a93f25429919242d11d60dcd1d9c65ac096033092d7973cbfc6e')
+b2sums=('b72f245128c698375f97139cf245bdc8c017e3e2d142f6e3183a42620b23a024531e5b14f05163c6defa9ee54c52c19a64932c62484f2ec8da5c75ea1b7d3d27')
+
+build(){
+	cd "$_archive"
+	python -m build -wn
+}
+
+check() {
+	cd "$_archive"
+	PYTHONPATH=$PWD/src python -m pytest
+}
+
+package() {
+	cd "$_archive"
+	python -m installer -d "${pkgdir}" dist/*.whl
+	install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
+}



More information about the arch-commits mailing list