Package Details: python-terminaltables 3.1.10-11

Git Clone URL: https://aur.archlinux.org/python-terminaltables.git (read-only, click to copy)
Package Base: python-terminaltables
Description: Generate simple tables in terminals from a nested list of strings
Upstream URL: https://github.com/matthewdeanmartin/terminaltables
Licenses: MIT
Submitter: dvzrv
Maintainer: noprobelm
Last Packager: noprobelm
Votes: 2
Popularity: 0.006083
First Submitted: 2023-04-13 09:36 (UTC)
Last Updated: 2024-03-11 12:57 (UTC)

Latest Comments

tee commented on 2024-04-16 13:16 (UTC)

This depends or make depends on python-poetry.

==> Starting build()...
* Building wheel...

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 'poetry.masonry'

ERROR Backend 'poetry.masonry.api' is not available.
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: python-terminaltables-exit status 4

When I installed python-poetry, the above error disappeared.

rekman commented on 2024-03-10 22:19 (UTC) (edited on 2024-03-10 22:20 (UTC) by rekman)

Apply this patch to build while upstream #3 remains unresolved. With that patch saved as poetry-core.patch, simply add patch -Np1 < ../poetry-core.patch to prepare().

meanjollies commented on 2023-07-12 22:56 (UTC)

Hi! I do not have any problems with the current upstream, so there's no immediate request on my end to switch. Thanks for maintaining this.

noprobelm commented on 2023-07-10 00:13 (UTC)

Thanks for your comment, meanjollies. I forgot to regenerate the .SRCINFO after my last update in May. I just did so.

As for switching the upstream to the newly maintained version -- I recently inherited this package after it was dropped from the community repository and decided to keep using the unmaintained upstream version until I'm able to do a comprehensive review of the differences between the two and/or someone complained about missing or broken functionality. I just haven't had time to do that review yet.

Do you have any problems with the current upstream? If so I would be compelled to expedite the change, but if not I'm going to leave it this way for a while longer. I'm happy to accommodate you if you're having an issue with something specific.

meanjollies commented on 2023-07-09 22:49 (UTC) (edited on 2023-07-09 22:52 (UTC) by meanjollies)

Hey! Would you be able to generate and push a new .SRCINFO? The current one is outdated/incorrect, as it references pkgrel 10. You may also want to switch the upstream to https://github.com/matthewdeanmartin/terminaltables, since that is the newly maintained version (as noted in the original repo).

noprobelm commented on 2023-05-07 22:45 (UTC)

Agreed dreieck, thanks for the feedback. I updated the PKGBUILD.

dreieck commented on 2023-05-07 15:48 (UTC)

I think you should switch to using python -m build and python -m installer instead of invoking setup.py directly:

/usr/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer, pypa/build or
        other standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!

e.g. (just the idea, not tested with your package):

[...]
makedepends=(
  'python-build'
  'python-installer'
  'python-wheel'
  'python-setuptools'
  [...]
)
[...]
build() {
  [...]
  python -m build --wheel --no-isolation
  # maybe build documentation, ...
  [...]
}

package() {
  [...]
  python -m installer --destdir="$pkgdir" --compile-bytecode=2 dist/*.whl
  [...]
  # Maybe install documentation, license, ...
  [...]
}

Regards!

noprobelm commented on 2023-04-17 17:59 (UTC) (edited on 2023-04-17 18:33 (UTC) by noprobelm)

This package was recently removed from the community repository and is required by a package I regularly use. In the absence of a maintainer, I am assuming that role.

The PKGBUILD was broken at the time of AUR migration. I've updated the following information (see git history for full details of changes):

  • check(): A pytest failure I've yet to determine the root cause of is prohibiting success of the dependency check function of this PKGBUILD. I've temporarily removed this function until I can determine the cause and notify the remote maintainer.

NOTE: This package uses an archived version of terminaltables. The maintained version can be found at https://github.com/matthewdeanmartin/terminaltables. I will consider updating to the forked version in the future after I've determined the differences (if any).