Drop pkg_resources and nose; migrate to modern Python 3.12 stack#46
Open
SarthakYadav wants to merge 1 commit intoDCASE-REPO:masterfrom
Open
Drop pkg_resources and nose; migrate to modern Python 3.12 stack#46SarthakYadav wants to merge 1 commit intoDCASE-REPO:masterfrom
SarthakYadav wants to merge 1 commit intoDCASE-REPO:masterfrom
Conversation
- replace runtime pkg_resources usage with importlib.metadata/resources + packaging - keep public utility entry points compatible (check_installation/check_pkg_resources/Example paths) - migrate tests from nose to pytest and update test config/docs/deps - fix Python 3.12/runtime API drift (scipy windows, pyparsing, msgpack, random.shuffle, rtU mode) - preserve msgpack serialization compatibility via fallback loading paths - add/update minimum dependency versions required by new code paths
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reference Issue
N/A
What does this implement/fix? Explain your changes.
Any other comments?
This PR is motivated by issues I experienced yesterday in a new python environment, when
dcase_utilimport suddenly stopped working with the errorpkg_resourcenot found.On digging, I found that this is due to the
pkg_resourceAPI being deprecated from the latestsetuptools. While pinning setuptools to versions <81 works as a workaround, in the long term, it didn't seem like the correct fix.dcase_utilis a crucial dependency in my workflow, so I decided to try and fix it. All tests are passing.Full disclosure: a large part of the changes was made using AI. I manually verified that tests were not relaxed to "make things work".