ros2 / ros2cli

ROS 2 command line interface tools
Apache License 2.0
173 stars 159 forks source link

flake8: DeprecationWarning: SelectableGroups dict interface is deprecated. #867

Closed fujitatomoya closed 10 months ago

fujitatomoya commented 10 months ago

Bug report

Required Info:

Steps to reproduce issue

root@tomoyafujita:~/ros2_ws/colcon_ws# colcon test --event-handlers console_direct+ --packages-select ros2component
Starting >>> ros2component
============================= test session starts ==============================
platform linux -- Python 3.10.12, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
cachedir: /root/ros2_ws/colcon_ws/build/ros2component/.pytest_cache
rootdir: /root/ros2_ws/colcon_ws/src/ros2/ros2cli, configfile: pytest.ini
plugins: ament-xmllint-0.16.0, ament-copyright-0.16.0, ament-pep257-0.16.0, ament-flake8-0.16.0, ament-lint-0.16.0, rerunfailures-10.2, cov-3.0.0, mock-3.6.1, repeat-0.9.1, colcon-core-0.15.0, timeout-2.1.0
timeout: 900.0s
timeout method: thread
timeout func_only: False
collecting ...                              
collected 6 items                                                              

test/test_api.py ..                                                      [ 33%]
test/test_copyright.py .                                                 [ 50%]
test/test_flake8.py .                                                    [ 66%]
test/test_pep257.py .                                                    [ 83%]
test/test_xmllint.py .                                                   [100%]
-- generated xml file: /root/ros2_ws/colcon_ws/build/ros2component/pytest.xml --

=============================== warnings summary ===============================
ros2component/test/test_flake8.py::test_flake8
ros2component/test/test_flake8.py::test_flake8
  /usr/lib/python3/dist-packages/flake8/plugins/manager.py:261: DeprecationWarning: SelectableGroups dict interface is deprecated. Use select.
    eps = importlib_metadata.entry_points().get(self.namespace, ())

-- Docs: https://docs.pytest.org/en/stable/warnings.html
======================== 6 passed, 2 warnings in 1.50s =========================
--- stderr: ros2component                   

=============================== warnings summary ===============================
ros2component/test/test_flake8.py::test_flake8
ros2component/test/test_flake8.py::test_flake8
  /usr/lib/python3/dist-packages/flake8/plugins/manager.py:261: DeprecationWarning: SelectableGroups dict interface is deprecated. Use select.
    eps = importlib_metadata.entry_points().get(self.namespace, ())

-- Docs: https://docs.pytest.org/en/stable/warnings.html
---
Finished <<< ros2component [2.18s]

Summary: 1 package finished [3.07s]
  1 package had stderr output: ros2component

Expected behavior

No warning messages.

Actual behavior

/usr/lib/python3/dist-packages/flake8/plugins/manager.py:261: DeprecationWarning: SelectableGroups dict interface is deprecated.

Additional information

https://bugs.launchpad.net/ubuntu/+source/python-flake8/+bug/1968072

fujitatomoya commented 10 months ago

closing in favor of https://github.com/ros2/ros2cli/pull/868