Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecation warning #204

Merged
merged 1 commit into from
Aug 7, 2023
Merged

Conversation

Honny1
Copy link
Member

@Honny1 Honny1 commented Jul 26, 2023

This PR fixes:
DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html

Reproducer with tox:

diff --git a/tox.ini b/tox.ini
index 8d55872..5431db5 100644
--- a/tox.ini
+++ b/tox.ini
@@ -17,6 +17,7 @@ commands =
         py.test --cov=openscap_report --cov-append --cov-report=term-missing -m "not integration_test"
         py.test --cov-report=term-missing -m "not unit_test"
 deps =
+    setuptools>=67.6.1
     pytest
     pytest-cov
     jsonschema

Fixes: #203

DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
@Honny1 Honny1 marked this pull request as ready for review July 26, 2023 13:34
@jan-cerny jan-cerny self-assigned this Aug 7, 2023
@jan-cerny jan-cerny merged commit 1b26699 into OpenSCAP:main Aug 7, 2023
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecation Warning
2 participants