You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like we're still using some deprecated stuff from pkg_resources, which is understandable because cve-bin-tool is older than the current preferred way for handling certain things. But it's time to refactor and bring ourselves into the future! Here's the warnings:
=============================== warnings summary ===============================
test/test_checkers.py::TestCheckerVersionParser::test_filename_is[apache-httpd-expected_results0]
test/test_checkers.py::TestCheckerVersionParser::test_filename_is[vim-vim-enhanced-expected_results53]
test/test_checkers.py::TestCheckerVersionParser::test_filename_is[ffmpeg-libffmpeg.so-expected_results8]
test/test_checkers.py::TestCheckerVersionParser::test_filename_is[libexpat-libexpat.so-expected_results17]
test/test_checkers.py::TestCheckerVersionParser::test_filename_is[openssh_client-ssh-keyscan-expected_results35]
test/test_checkers.py::TestCheckerVersionParser::test_filename_is[python-python3.8-expected_results44]
test/test_checkers.py::TestCheckerVersionParser::test_filename_is[node-bin/node-expected_results26]
test/test_checkers.py::TestCheckerVersionParser::test_filename_is[bind-libisccc-9.16.37-Debian.so-expected_results62]
/opt/hostedtoolcache/Python/3.10.16/x64/lib/python3.10/site-packages/pbr/git.py:28: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
test/test_checkers.py::TestCheckerVersionParser::test_filename_is[apache-httpd-expected_results0]
test/test_checkers.py::TestCheckerVersionParser::test_filename_is[vim-vim-enhanced-expected_results53]
test/test_checkers.py::TestCheckerVersionParser::test_filename_is[ffmpeg-libffmpeg.so-expected_results8]
test/test_checkers.py::TestCheckerVersionParser::test_filename_is[libexpat-libexpat.so-expected_results17]
test/test_checkers.py::TestCheckerVersionParser::test_filename_is[openssh_client-ssh-keyscan-expected_results35]
test/test_checkers.py::TestCheckerVersionParser::test_filename_is[python-python3.8-expected_results44]
test/test_checkers.py::TestCheckerVersionParser::test_filename_is[node-bin/node-expected_results26]
test/test_checkers.py::TestCheckerVersionParser::test_filename_is[bind-libisccc-9.16.37-Debian.so-expected_results62]
/opt/hostedtoolcache/Python/3.10.16/x64/lib/python3.10/site-packages/pkg_resources/__init__.py:3142: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('google')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)
I don't offhand know what we need to change to, but you should be able to figure it out by searching and reading the docs including the links they provided in the warning message above.
To reproduce
Steps to reproduce the behaviour:
run pytest with longtests enabled: LONG_TESTS=1 pytest test/test_checkers.py
Expected behaviour: no warnings
Actual behaviour: the warnings above apear
cve-bin-tool uses https://www.conventionalcommits.org/ style for commit messages, and we have a test that checks the title of your pull request (PR). A good potential title for this one is in the title of this issue.
You can make an issue auto close by including a comment "fixes #ISSUENUMBER" in your PR comments where ISSUENUMBER is the actual number of the issue. This "links" the issue to the pull request.
Claiming issues:
You do not need to have an issue assigned to you before you work on it. To "claim" an issue either make a linked pull request or comment on the issue saying you'll be working on it.
If someone else has already commented or opened a pull request, assume it is claimed and find another issue to work on.
If it's been more than 1 week without progress, you can ask in a comment if the claimant is still working on it before claiming it yourself (give them at least 3 days to respond before assuming they have moved on).
The text was updated successfully, but these errors were encountered:
Description
It looks like we're still using some deprecated stuff from pkg_resources, which is understandable because cve-bin-tool is older than the current preferred way for handling certain things. But it's time to refactor and bring ourselves into the future! Here's the warnings:
I don't offhand know what we need to change to, but you should be able to figure it out by searching and reading the docs including the links they provided in the warning message above.
To reproduce
Steps to reproduce the behaviour:
LONG_TESTS=1 pytest test/test_checkers.py
Expected behaviour: no warnings
Actual behaviour: the warnings above apear
Anything else?
Feel free to add any other context here.
Short tips for new contributors:
Claiming issues:
The text was updated successfully, but these errors were encountered: