Bug 46305

Summary: Не работает утилита keyring
Product: Sisyphus Reporter: Alexander Makeenkov <amakeenk>
Component: python3-module-keyringAssignee: Grigory Ustinov <grenka>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: ancieg, antohami, cas, cow, evg, george, grenka, imz, kotopesutility, lav, nbr, qa_viy, rider, sem, shaba, sin, slev, toni, vitty, viy
Version: unstable   
Hardware: x86_64   
OS: Linux   

Description Alexander Makeenkov 2023-05-30 14:23:13 MSK
Версия пакета:
python3-module-keyring-23.14.0-alt2

Шаги воспроизведения:
# apt-get install python3-module-keyring
$ keyring --help
$ keyring

Получаемый результат:
Traceback (most recent call last):
  File "/usr/bin/keyring", line 9, in <module>
    sys.exit(main())
  File "/usr/lib/python3/site-packages/keyring/cli.py", line 132, in main
    cli = CommandLineTool()
  File "/usr/lib/python3/site-packages/keyring/cli.py", line 51, in __init__
    completion.install(self.parser)
  File "/usr/lib/python3/site-packages/keyring/completion.py", line 49, in install
    install_completion(parser)
  File "/usr/lib/python3/site-packages/keyring/completion.py", line 39, in install_completion
    zsh=files(__package__).joinpath('backend_complete.zsh').read_text(),
  File "/usr/lib64/python3.10/pathlib.py", line 1134, in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
  File "/usr/lib64/python3.10/pathlib.py", line 1119, in open
    return self._accessor.open(self, mode, buffering, encoding, errors,
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/site-packages/keyring/backend_complete.zsh'

В p10 не воспроизводится (python3-module-keyring-21.8.0-alt1)
Comment 1 Anton Zhukharev 2023-05-30 15:41:15 MSK
Note: https://github.com/jaraco/keyring/issues/621

> I think the problem is that backend_complete.zsh is not included in the wheel when it's built from GitHub archive with SETUPTOOLS_SCM_PRETEND_VERSION.
Comment 2 Repository Robot 2023-05-30 16:38:18 MSK
python3-module-keyring-23.14.0-alt3 -> sisyphus:

 Tue May 30 2023 Anton Zhukharev <ancieg@altlinux> 23.14.0-alt3
 - Don't use SETUPTOOLS_SCM_PRETEND_VERSION (Closes: #46305).