Package Details: python-rst.linker 2.6.0-1

Git Clone URL: https://aur.archlinux.org/python-rst.linker.git (read-only, click to copy)
Package Base: python-rst.linker
Description: Tools for adding metadata and hyperlinks to reStructuredText
Upstream URL: https://github.com/jaraco/rst.linker
Licenses: MIT
Submitter: yochananmarqos
Maintainer: yochananmarqos
Last Packager: yochananmarqos
Votes: 3
Popularity: 0.015937
First Submitted: 2022-05-24 15:50 (UTC)
Last Updated: 2024-04-24 16:37 (UTC)

Latest Comments

yochananmarqos commented on 2022-05-27 14:41 (UTC) (edited on 2022-05-27 14:41 (UTC) by yochananmarqos)

@RubenKelevra: Please don't crosspost here, it's not an issue with this package. Do not flag packages out of date that are not out of date.

RubenKelevra commented on 2022-05-27 13:05 (UTC)

Doesn't build in a clean chroot because the dependency python-types-python-dateutil doesn't build anymore:

==> Making package: python-types-python-dateutil 2.8.10-1 (Fri May 27 14:58:51 2022)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
* Getting dependencies for wheel...

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/pep517/wrappers.py", line 332, in _call_hook
    raise BackendUnavailable(data.get('traceback', ''))
pep517.wrappers.BackendUnavailable: Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/pep517/in_process/_in_process.py", line 89, in _build_backend
    obj = import_module(mod_path)
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'setuptools'

ERROR Backend 'setuptools.build_meta:__legacy__' is not available.
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Build failed, check /var/lib/paru/aur_chroot/rubenk/build
error: failed to build 'python-types-python-dateutil-2.8.10-1': failed to run: makechrootpkg -r /var/lib/paru/aur_chroot -D /var/lib/paru/aur_chroot -d /var/cache/pacman/pkg/ -- -feA --noconfirm --noprepare --holdver: 

yochananmarqos commented on 2022-05-26 16:41 (UTC)

@GalaxyLJGD: It succeeds in a clean chroot, but since you had other Python packages installed, it picked those up. It should have all the proper test dependencies now.

GalaxyLJGD commented on 2022-05-26 07:24 (UTC) (edited on 2022-05-26 07:49 (UTC) by GalaxyLJGD)

I can't compile the package, the check() does not exit successfully:

$ LANG=C makepkg -CL
==> Making package: python-rst.linker 2.3.0-1 (jue 26 may 2022 03:17:02)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found rst.linker-2.3.0.tar.gz
==> Validating source files with sha256sums...
    rst.linker-2.3.0.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting rst.linker-2.3.0.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
* Getting dependencies for wheel...
running egg_info
writing rst.linker.egg-info/PKG-INFO
writing dependency_links to rst.linker.egg-info/dependency_links.txt
writing requirements to rst.linker.egg-info/requires.txt
writing top-level names to rst.linker.egg-info/top_level.txt
reading manifest file 'rst.linker.egg-info/SOURCES.txt'
adding license file 'LICENSE'
* Building wheel...
running bdist_wheel
running build
running build_py
running egg_info
writing rst.linker.egg-info/PKG-INFO
writing dependency_links to rst.linker.egg-info/dependency_links.txt
writing requirements to rst.linker.egg-info/requires.txt
writing top-level names to rst.linker.egg-info/top_level.txt
reading manifest file 'rst.linker.egg-info/SOURCES.txt'
adding license file 'LICENSE'
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
copying build/lib/rst/__init__.py -> build/bdist.linux-x86_64/wheel/rst
copying build/lib/rst/linker.py -> build/bdist.linux-x86_64/wheel/rst
running install_egg_info
running install_scripts
adding license file "LICENSE" (matched pattern "LICEN[CS]E*")
creating build/bdist.linux-x86_64/wheel/rst.linker-2.3.0.dist-info/WHEEL
creating '/home/galaxyljgd/.cache/yay/python-rst.linker/src/rst.linker-2.3.0/dist/tmprqr7doa4/rst.linker-2.3.0-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'rst/__init__.py'
adding 'rst/linker.py'
adding 'rst.linker-2.3.0.dist-info/LICENSE'
adding 'rst.linker-2.3.0.dist-info/METADATA'
adding 'rst.linker-2.3.0.dist-info/WHEEL'
adding 'rst.linker-2.3.0.dist-info/top_level.txt'
adding 'rst.linker-2.3.0.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Successfully built rst.linker-2.3.0-py3-none-any.whl
==> Starting check()...
============================= test session starts ==============================
platform linux -- Python 3.10.4, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/galaxyljgd/.cache/yay/python-rst.linker/src/rst.linker-2.3.0, configfile: pytest.ini
plugins: flake8-1.0.7, xonsh-0.12.4
collected 6 items

test_all.py ...F..                                                       [100%]

=================================== FAILURES ===================================
_________________________ test_scm_custom_date_format __________________________

scm_defn = {'replace': [{'pattern': '(?m:^((?P<scm_version>\\d+(\\.\\d+){1,2}))\\n-+\\n)', 'with_scm': '\n{text}\nCopyright {rev[timestamp]:%Y}\nReleased {rev[timestamp]:%d-%b}\n'}]}
fake_git = None

    def test_scm_custom_date_format(scm_defn, fake_git):
        with_scm = textwrap.dedent(
            """
            {text}
            Copyright {rev[timestamp]:%Y}
            Released {rev[timestamp]:%d-%b}
            """
        )
        scm_defn['replace'][0]['with_scm'] = with_scm
        repl = rst.linker.Replacer.from_definition(scm_defn)
        changelog = textwrap.dedent(
            """
            1.0
            ---

            Some details
            """
        )
        result = repl.run(changelog)
        assert "Copyright 2015" in result
>       assert "Released 24-Feb" in result
E       AssertionError: assert 'Released 24-Feb' in '\n\n1.0\n---\n\nCopyright 2015\nReleased 24-feb\n\nSome details\n'

test_all.py:115: AssertionError
=========================== short test summary info ============================
FAILED test_all.py::test_scm_custom_date_format - AssertionError: assert 'Rel...
========================= 1 failed, 5 passed in 1.86s ==========================
==> ERROR: A failure occurred in check().
    Aborting...

Edit 1: I think It's related with locales, but I'm not sure.