Package Details: python-boltons 25.0.0-2

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
Last Packager: ejedev
Votes: 5
Popularity: 0.26
First Submitted: 2023-12-29 20:25 (UTC)
Last Updated: 2025-02-27 23:10 (UTC)

Latest Comments

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!

ejedev commented on 2025-02-08 22:13 (UTC)

@Dominiquini I am unfortunately unable to replicate this on my machine or in a test container/VM. Will continue to try and look into it.

Dominiquini commented on 2025-02-08 12:46 (UTC) (edited on 2025-02-08 12:50 (UTC) by Dominiquini)

============================================================ ERRORS ============================================================

______ ERROR collecting tests/test_fileutils.py ______ ImportError while importing test module '/home/liveuser/.cache/yay/python-boltons/src/boltons/tests/test_fileutils.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.13/importlib/init.py:88: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_fileutils.py:9: in <module> from boltons.strutils import removeprefix E ImportError: cannot import name 'removeprefix' from 'boltons.strutils' (/usr/lib/python3.13/site-packages/boltons/strutils.py)

======================================================= warnings summary =======================================================

tests/conftest.py:8 /home/liveuser/.cache/yay/python-boltons/src/boltons/tests/conftest.py:8: 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 def pytest_ignore_collect(path, config):

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

=================================================== short test summary info ====================================================

ERROR tests/test_fileutils.py

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

================================================= 1 warning, 1 error in 0.77s ==================================================

Dominiquini commented on 2024-11-04 00:03 (UTC)

@ejedev: Python 3.12.7 (Installed from the default repositories (core). I'm using EndeavourOS!

ejedev commented on 2024-11-03 19:57 (UTC)

@Dominiquini I just tried building in a fresh archlinux Docker container (Python 3.12.7, pytest-8.3.3) and haven't been able to replicate this issue. What version of Python are you using?

Dominiquini commented on 2024-11-02 18:46 (UTC) (edited on 2024-11-02 18:47 (UTC) by Dominiquini)

=== short test summary info ===

FAILED tests/test_typeutils.py::test_sentinel_copy - AssertionError: assert Sentinel('test') is Sentinel('test')

FAILED tests/test_iterutils.py::test_research_custom_enter - TypeError: research() got an unexpected keyword argument 'enter'

FAILED tests/test_fileutils.py::test_iter_find_files - TypeError: iter_find_files() got an unexpected keyword argument 'max_depth'

=== 3 failed, 416 passed, 2 warnings in 2.80s ===

==> 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