Package Details: python-asciitree 0.3.3-2

Git Clone URL: https://aur.archlinux.org/python-asciitree.git (read-only, click to copy)
Package Base: python-asciitree
Description: Draws +-- ASCII Trees
Upstream URL: http://github.com/mbr/asciitree
Licenses: MIT
Submitter: flying-sheep
Maintainer: daskol
Last Packager: daskol
Votes: 1
Popularity: 0.000000
First Submitted: 2019-01-02 14:18 (UTC)
Last Updated: 2023-07-11 09:27 (UTC)

Latest Comments

daskol commented on 2023-07-11 09:24 (UTC)

@m040601 There is a missing make dependency python-wheel. You can installed it either manually with pacman -S python-wheel or with makepkg -s. See details in wiki.

m040601 commented on 2023-07-11 06:07 (UTC)

currently fails with,

:: Processing package changes...
(1/3) installing python-installer                  [------------------] 100%
(2/3) installing python-pyproject-hooks            [------------------] 100%
(3/3) installing python-build                      [------------------] 100%
Optional dependencies for python-build
    python-virtualenv: Use virtualenv for build isolation
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
==> Making package: python-asciitree 0.3.3-1 (Tue 11 Jul 2023 07:05:15 AM WEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Missing dependencies:
  -> python-wheel
==> ERROR: Could not resolve all dependencies.
 -> error making: python-asciitree-exit status 8
 -> Failed to install the following packages. Manual intervention is required:
python-asciitree - exit status 8

daskol commented on 2023-06-10 02:28 (UTC)

There are missing makedepends. This patch solves the issue.

diff --git a/PKGBUILD b/PKGBUILD
index 271141a..15b4b4a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,17 +1,27 @@
 # Maintainer: Philipp A. <flying-sheep@web.de>
+# Maintainer: Daniel Bershatsky <bepshatsky@yandex.ru>
 _name=asciitree
 pkgname=python-asciitree
-pkgver=0.3.3 
+pkgver=0.3.3
 pkgrel=1
-pkgdesc='Draws +-- ASCII Trees.'
-arch=(any)
+pkgdesc='Draws +-- ASCII Trees'
+arch=('any')
 url='http://github.com/mbr/asciitree'
-license=(MIT)
-depends=(python)
+license=('MIT')
+depends=('python')
+makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
 source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
 sha256sums=('4aa4b9b649f85e3fcb343363d97564aa1fb62e249677f2e18a96765145cc0f6e')

+build() {
+   cd "$_name-$pkgver"
+    python -m build -n -w
+}
+
 package() {
-   cd "$srcdir/$_name-$pkgver"
-   python setup.py install --root="$pkgdir" --optimize=1 || return 1
+   cd "$_name-$pkgver"
+    python -m installer \
+        --compile-bytecode 1 \
+        --destdir $pkgdir \
+        dist/${_name}-${pkgver}-*.whl
 }

carlosal1015 commented on 2022-09-03 16:40 (UTC) (edited on 2022-09-03 17:01 (UTC) by carlosal1015)

Hi, I have the following message error

==> Making package: python-asciitree 0.3.3-1 (Sat Sep  3 11:39:44 2022)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Entering fakeroot environment...
==> Starting package()...
Traceback (most recent call last):
  File "/tmp/makepkg/python-asciitree/src/asciitree-0.3.3/setup.py", line 6, in <module>
    from setuptools import setup, find_packages
ModuleNotFoundError: No module named 'setuptools'
==> ERROR: A failure occurred in package().
    Aborting...
 -> error making: python-asciitree

python-setuptools and python-wheel are now missing makedependencies.

ejiek commented on 2020-05-07 08:39 (UTC)

I suggest using GitHub releases as a source:

source=($pkgname-$pkgver.tar.gz::"$url/archive/$pkgver.tar.gz")

And there is a dependency missing:

makedepends=(python-setuptools)