Package Details: python-boltons 25.0.0-4

Git Clone URL: https://aur.archlinux.org/python-boltons.git (read-only, click to copy)
Package Base: python-boltons
Description: Functionality that should be in the standard library. Like builtins, but Boltons.
Upstream URL: https://github.com/mahmoud/boltons
Licenses: BSD-3-Clause
Submitter: jelly
Maintainer: ejedev (stickynotememo)
Last Packager: stickynotememo
Votes: 7
Popularity: 1.03
First Submitted: 2023-12-29 20:25 (UTC)
Last Updated: 2026-05-06 09:03 (UTC)

Latest Comments

1 2 Next › Last »

RubenKelevra commented on 2026-05-07 07:23 (UTC)

Thanks a lot!

stickynotememo commented on 2026-05-07 05:44 (UTC)

@RubenKelevra Patched.

RubenKelevra commented on 2026-05-02 15:29 (UTC)

Doesn't seem to build atm:

==> Making package: python-boltons 25.0.0-3 (Sa 02 Mai 2026 17:27:39 CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
Fetching list of valid trove classifiers                                                                         I-flit.validate
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/usr/lib/python3.14/site-packages/flit/__main__.py", line 5, in <module>
    main()
    ~~~~^^
  File "/usr/lib/python3.14/site-packages/flit/__init__.py", line 200, in main
    main(args.ini_file, formats=set(args.format or []),
    ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         gen_setup_py=gen_setup_py(), use_vcs=sdist_use_vcs())
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/site-packages/flit/build.py", line 46, in main
    sdist_file = sb.build(dist_dir, gen_setup_py=gen_setup_py)
TypeError: SdistBuilder.build() got an unexpected keyword argument 'gen_setup_py'
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'python-boltons-25.0.0-3': 

ejedev commented on 2026-04-20 19:23 (UTC)

@pellet613 Apologies for the delay in fixing this. I implemented your fix. Please let me know if you have any other issues.

pellet613 commented on 2026-04-02 19:35 (UTC)

The check() function fails under pytest 9 with:

pytest.PytestRemovedIn9Warning: The (path: py.path.local) argument is deprecated, please use (collection_path: pathlib.Path)
see https://docs.pytest.org/en/latest/deprecations.html#py-path-local-arguments-for-hooks-replaced-with-pathlib-path

==> ERROR: A failure occurred in check().
    Aborting...

This is a boltons conftest/plugin using the deprecated py.path.local hook argument, which pytest 9 treats as an error. Arch Linux rolling ships pytest 9, so any fresh build hits this.

A workaround for the PKGBUILD would be to add -W ignore::pytest.PytestRemovedIn9Warning to the pytest invocation in check(), or to add filterwarnings = ["ignore::pytest.PytestRemovedIn9Warning"] in pytest.ini/pyproject.toml.

This failure cascades to downstream AUR packages (python-click-extra, meta-package-manager) that depend on python-boltons.

Reproduced on Python 3.14.3, boltons 25.0.0-2, Arch Linux rolling (greyltc/archlinux-aur:yay). CI logs: https://github.com/kdeldycke/meta-package-manager/actions/runs/23897036306/job/69684170316 (search for error making: python-boltons).

anark10n commented on 2025-03-12 07:04 (UTC) (edited on 2025-03-12 07:12 (UTC) by anark10n)

I receive this error when attempting to install:

Traceback (most recent call last):
  File "/usr/bin/pytest", line 8, in <module>
    sys.exit(console_main())
             ~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main
    code = main()
  File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 156, in main
    config = _prepareconfig(args, plugins)
  File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 341, in _prepareconfig
    config = pluginmanager.hook.pytest_cmdline_parse(
        pluginmanager=pluginmanager, args=args
    )
  File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
           ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
           ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall
    raise exception.with_traceback(exception.__traceback__)
  File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 122, in _multicall
    teardown.throw(exception)  # type: ignore[union-attr]
    ~~~~~~~~~~~~~~^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/_pytest/helpconfig.py", line 105, in pytest_cmdline_parse
   config = yield
            ^^^^^
 File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall
   res = hook_impl.function(*args)
  File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 1140, in pytest_cmdline_parse
    self.parse(args)
    ~~~~~~~~~~^^^^^^
 File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 1494, in parse
    self._preparse(args, addopts=addopts)
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 1381, in _preparse
    self.pluginmanager.load_setuptools_entrypoints("pytest11")
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 421, in load_setuptools_entrypoints
    plugin = ep.load()
  File "/usr/lib/python3.13/importlib/metadata/__init__.py", line 179, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1310, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "/usr/lib/python3.13/site-packages/_pytest/assertion/rewrite.py", line 185, in exec_module
    exec(co, module.__dict__)
    ~~~~^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/typeguard/__init__.py", line 4, in <module>
    from ._checkers import TypeCheckerCallable as TypeCheckerCallable
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "/usr/lib/python3.13/site-packages/_pytest/assertion/rewrite.py", line 176, in exec_module
    source_stat, co = _rewrite_test(fn, self.config)
                      ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/_pytest/assertion/rewrite.py", line 356, in _rewrite_test
    tree = ast.parse(source, filename=strfn)
  File "/usr/lib/python3.13/ast.py", line 54, in parse
    return compile(source, filename, mode, flags,
                   _feature_version=feature_version, optimize=optimize)
SyntaxError: source code string cannot contain null bytes
==> ERROR: A failure occurred in check().
    Aborting...
 -> error making: python-boltons-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
python-boltons - exit status 4

micwoj92 commented on 2025-03-04 18:23 (UTC)

It looks good, thanks. From packaging perspective I think it would be better to switch to standard PEP 517 build:

diff --git a/PKGBUILD b/PKGBUILD
index da124ef..0bf0a13 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,14 +9,14 @@ url="https://github.com/mahmoud/boltons"
 license=('BSD-3-Clause')
 arch=('any')
 depends=('python')
-makedepends=('git' 'python-flit' 'python-installer')
+makedepends=('git' 'python-build' 'python-flit-core' 'python-installer')
 checkdepends=('python-pytest')
 source=("git+https://github.com/mahmoud/boltons.git#commit=$_commit")
 sha512sums=('SKIP')

 build() {
   cd boltons
-  python -m flit build
+  python -m build --wheel --no-isolation
 }

 check() {

ejedev commented on 2025-02-27 23:11 (UTC)

@micwoj92 Added in latest pkgrel. Please let me know if there are any other issues.

micwoj92 commented on 2025-02-27 21:55 (UTC)

Please use spdx license identifier.

Dominiquini commented on 2025-02-08 22:30 (UTC)

@ejedev I was able to install this packages with "--nocheck" on the makepkg!