Package Details: autotrash 0.4.4-2

Git Clone URL: https://aur.archlinux.org/autotrash.git (read-only, click to copy)
Package Base: autotrash
Description: Tool to automatically purge old trashed files
Upstream URL: https://github.com/bneijt/autotrash
Licenses: GPL3
Conflicts: autotrash
Provides: autotrash
Submitter: MithicSpirit
Maintainer: MithicSpirit
Last Packager: MithicSpirit
Votes: 6
Popularity: 0.080822
First Submitted: 2021-01-28 13:40 (UTC)
Last Updated: 2022-03-23 22:57 (UTC)

Latest Comments

thiagowfx commented on 2021-07-11 18:05 (UTC)

You're right, but I figured we could "kill two birds with one stone", as they say. Thanks for the quick fix!

MithicSpirit commented on 2021-07-11 18:03 (UTC)

The only difference between v0.4.2 (current) and v0.4.3 is some metadata for pypi (see https://github.com/bneijt/autotrash/compare/0.4.2...0.4.3 ), so I didn't think an update was necessary for AUR, but I'm updating anyways for the dependency fix.

thiagowfx commented on 2021-07-11 17:30 (UTC)

Also, v0.4.3 is available.

thiagowfx commented on 2021-07-11 17:29 (UTC) (edited on 2021-07-11 17:29 (UTC) by thiagowfx)

python-setuptools needs to be a hard-dependency (depends, not makedepends) otherwise autotrash doesn't work:

autotrash
Traceback (most recent call last):
  File "/usr/bin/autotrash", line 33, in <module>
    sys.exit(load_entry_point('autotrash==0.4.2', 'console_scripts', 'autotrash')())
  File "/usr/bin/autotrash", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.9/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/usr/lib/python3.9/site-packages/autotrash/__init__.py", line 1, in <module>
    from pkg_resources import get_distribution, DistributionNotFound
ModuleNotFoundError: No module named 'pkg_resources'

This is also documented in the wiki:

If the resulting package includes executables which import the pkg_resources module, then setuptools must be additionally specified as a depends in the split package_*() functions; alternatively, if the PKGBUILD only installs the Python package for a single version of Python, setuptools should be moved from makedepends to depends.

See https://wiki.archlinux.org/title/Python_package_guidelines