Package Details: python-wrapt-timeout-decorator 1.4.1-4

Git Clone URL: https://aur.archlinux.org/python-wrapt-timeout-decorator.git (read-only, click to copy)
Package Base: python-wrapt-timeout-decorator
Description: Powerful Timeout Decorator that can be used safely on classes, methods, class methods
Upstream URL: https://github.com/bitranox/wrapt_timeout_decorator
Licenses: MIT
Submitter: GPereira
Maintainer: GPereira (pirofti)
Last Packager: pirofti
Votes: 1
Popularity: 0.28
First Submitted: 2023-05-08 12:46 (UTC)
Last Updated: 2024-02-25 14:00 (UTC)

Latest Comments

pirofti commented on 2024-02-25 14:01 (UTC)

Right. Fixed. Thank you!

patlefort commented on 2024-02-25 13:04 (UTC) (edited on 2024-02-25 13:05 (UTC) by patlefort)

You also need python-setuptools-scm or else you get:

Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/pyproject_hooks/_impl.py", line 321, in _call_hook
    raise BackendUnavailable(data.get('traceback', ''))
pyproject_hooks._impl.BackendUnavailable: Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 77, in _build_backend
    obj = import_module(mod_path)
          ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1126, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'setuptools'

ERROR Backend 'setuptools.build_meta' is not available.

Also python-setuptools isn't sufficient or it will complain about missing setuptools-scm.

pirofti commented on 2024-02-25 11:05 (UTC) (edited on 2024-02-25 11:05 (UTC) by pirofti)

Thank you @patlefort, I forgot to modify makedpends!

I added only the ones mentioned in the wiki.

patlefort commented on 2024-02-24 09:25 (UTC)

Hi, makedepends should be: 'python-build' 'python-setuptools-scm' 'python-wheel' 'python-installer'.

pirofti commented on 2024-02-23 23:13 (UTC)

Thank you, I pushed the changes. Have a nice vacation!

GPereira commented on 2024-02-23 22:59 (UTC)

Thank you @pirofti . I am on vacation at the moment so I've added you as co-maintainer if you want to contribute to this package by pushing a commit with that change.

pirofti commented on 2024-02-23 22:30 (UTC)

This package does not install anything. The following is needed to actually get the files in site-packages:

diff --git PKGBUILD PKGBUILD
index f99a791..a78a5cb 100644
--- PKGBUILD
+++ PKGBUILD
@@ -24,7 +24,12 @@ test() {
        make test
 }

+build() {
+  cd "$srcdir/$_name-$pkgver"
+  python -m build --wheel --no-isolation
+}
+
 package() {
-       cd "$srcdir/$_name-$pkgver"
-       make install
+  cd "$srcdir/$_name-$pkgver"
+  python -m installer --destdir="$pkgdir" dist/*.whl
 }