
In 67645a46ebaf29d0447049d8b40f39fef31bfb70 the requirement on setuptools was removed in favor of the version implementation in python-jenkins. However, other code (regsitry.py, xml_config.py) is still using pkg_resources, which leads to errors like this: % jenkins-jobs ERROR:stevedore.extension:Could not load 'delete': No module named 'pkg_resources' ERROR:stevedore.extension:Could not load 'delete-all': No module named 'pkg_resources' ERROR:stevedore.extension:Could not load 'get-plugins-info': No module named 'pkg_resources' ERROR:stevedore.extension:Could not load 'list': No module named 'pkg_resources' ERROR:stevedore.extension:Could not load 'test': No module named 'pkg_resources' ERROR:stevedore.extension:Could not load 'update': No module named 'pkg_resources' Traceback (most recent call last): File "/tmp/tmp.qQ9GsQCSeH/venv/bin/jenkins-jobs", line 8, in <module> sys.exit(main()) ^^^^^^ File "/tmp/tmp.qQ9GsQCSeH/venv/lib64/python3.12/site-packages/jenkins_jobs/cli/entry.py", line 177, in main jjb = JenkinsJobs(argv) ^^^^^^^^^^^^^^^^^ File "/tmp/tmp.qQ9GsQCSeH/venv/lib64/python3.12/site-packages/jenkins_jobs/cli/entry.py", line 60, in __init__ self.parser = create_parser() ^^^^^^^^^^^^^^^ File "/tmp/tmp.qQ9GsQCSeH/venv/lib64/python3.12/site-packages/jenkins_jobs/cli/parser.py", line 112, in create_parser extension_manager.map(parse_subcommand_args, subparser) File "/tmp/tmp.qQ9GsQCSeH/venv/lib64/python3.12/site-packages/stevedore/extension.py", line 276, in map raise NoMatches('No %s extensions found' % self.namespace) stevedore.exception.NoMatches: No jjb.cli.subcommands extensions found I could only reproduce this on Python 3.12, as on 3.11 and earlier a `python -m venv` installs setuptools already (to bootstrap pip?). Fixes: 67645a46ebaf29d0447049d8b40f39fef31bfb70 Change-Id: I679bbfd4b178094585587b5f47d56da37c663b5c Signed-off-by: Evgeni Golov <evgeni@golov.de>
13 lines
434 B
Plaintext
13 lines
434 B
Plaintext
# The order of packages is significant, because pip processes them in the order
|
|
# of appearance. Changing the order has an impact on the overall integration
|
|
# process, which may cause wedges in the gate later.
|
|
six>=1.9.0 # MIT
|
|
PyYAML>=3.13 # MIT
|
|
pbr>=1.8 # Apache-2.0
|
|
stevedore>=1.17.1,<2; python_version < '3.0' # Apache-2.0
|
|
stevedore>=1.17.1; python_version >= '3.0' # Apache-2.0
|
|
python-jenkins>=1.8.2
|
|
fasteners
|
|
Jinja2
|
|
setuptools
|