requirements/openstack_requirements
Dr. Jens Harbott c7d98564d0 Fix pkg_resources exception handling for py312
The exception that is generated on parsing errors has changed in Python
3.12, match on the generic ValueError instead. Also switch to using
the simpler assertRaises() call instead of explicitly dealing with
exceptions.

Note that this is just a temporary workaround, we should really move
away for using pkg_resources completely, see [0] and [1].

[0] https://setuptools.pypa.io/en/latest/pkg_resources.html
[1] https://importlib-resources.readthedocs.io/en/latest/migration.html

Change-Id: I20422194f6fc6d1c4ba49da754a2c3aab99a282c
2024-06-20 03:22:07 +00:00
..
cmds Improve terminology in the requirements tree 2024-05-14 10:08:34 +02:00
tests Fix pkg_resources exception handling for py312 2024-06-20 03:22:07 +00:00
__init__.py Move tests into openstack_requirements. 2015-06-08 22:07:01 +12:00
check.py Improve terminology in the requirements tree 2024-05-14 10:08:34 +02:00
constraints.py Improve terminology in the requirements tree 2024-05-14 10:08:34 +02:00
project_config.py Update project-config validation 2017-10-25 12:22:43 +00:00
project.py Remove six 2024-01-24 15:49:09 +01:00
requirement.py mark regex as regex for pycodestyle 2019-12-13 23:17:32 -06:00
utils.py Update code to use a std. read_requirements_file() 2022-08-08 17:30:16 -05:00