Package Details: python-ansiwrap 0.8.4-9

Git Clone URL: https://aur.archlinux.org/python-ansiwrap.git (read-only, click to copy)
Package Base: python-ansiwrap
Description: textwrap, but savvy to ANSI colors and styles
Upstream URL: https://github.com/jonathaneunice/ansiwrap
Licenses: Apache
Submitter: dvzrv
Maintainer: None
Last Packager: cqzw555
Votes: 0
Popularity: 0.000000
First Submitted: 2024-02-26 17:53 (UTC)
Last Updated: 2024-05-11 01:20 (UTC)

Latest Comments

simona commented on 2024-05-11 08:17 (UTC)

/usr/lib/python3.12/site-packages/ansiwrap/core.py:110: SyntaxWarning: invalid escape sequence '['
/usr/lib/python3.12/site-packages/ansiwrap/core.py:110: SyntaxWarning: invalid escape sequence '[' but now ok

Moxon commented on 2024-05-02 20:33 (UTC) (edited on 2024-05-02 20:35 (UTC) by Moxon)

Unfortunately it does not seem to test successfully on python 3.12, module imp has been removed: https://docs.python.org/3/whatsnew/3.12.html#imp

Successfully built ansiwrap-0.8.4-py3-none-any.whl
==> Starting check()...
===================================== test session starts =====================================
platform linux -- Python 3.12.3, pytest-8.1.2, pluggy-1.4.0
rootdir: /tmp/makepkg/python-ansiwrap/src/ansiwrap-20e2e8c78a54bdce947e38c069c5eb9c115423ae
configfile: pytest.ini
plugins: typeguard-4.2.1, anyio-4.3.0
collected 0 items / 1 error                                                                   

=========================================== ERRORS ============================================
___________________________ ERROR collecting test/test_ansiwrap.py ____________________________
ImportError while importing test module '/tmp/makepkg/python-ansiwrap/src/ansiwrap-20e2e8c78a54bdce947e38c069c5eb9c115423ae/test/test_ansiwrap.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
test/test_ansiwrap.py:7: in <module>
    from ansiwrap import *
build/lib/ansiwrap/__init__.py:1: in <module>
    from .core import *
build/lib/ansiwrap/core.py:6: in <module>
    import imp
E   ModuleNotFoundError: No module named 'imp'
====================================== warnings summary =======================================
build/lib/ansiwrap/core.py:110
  /tmp/makepkg/python-ansiwrap/src/ansiwrap-20e2e8c78a54bdce947e38c069c5eb9c115423ae/build/lib/ansiwrap/core.py:110: SyntaxWarning: invalid escape sequence '\['
    s = re.sub('\x1b\[K', '', s)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=================================== short test summary info ===================================
ERROR test/test_ansiwrap.py
!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!
================================= 1 warning, 1 error in 0.09s =================================
==> ERROR: A failure occurred in check().
    Aborting...
 -> error making: python-ansiwrap-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
python-ansiwrap - exit status 4

simona commented on 2024-04-30 09:53 (UTC)

can't compile python-ansicolors