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
Several deprecation warnings are occurring in our test suite related to version comparisons:
../yellowbrick/style/colors.py:35
/Users/lwgray/dev/yellowbrick/yellowbrick/style/colors.py:35: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
mpl_ge_150 = LooseVersion(mpl.__version__) >= "1.5.0"
../../../opt/anaconda3/envs/yb/lib/python3.13/site-packages/setuptools/_distutils/version.py:336
/Users/lwgray/opt/anaconda3/envs/yb/lib/python3.13/site-packages/setuptools/_distutils/version.py:336: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
other = LooseVersion(other)
../yellowbrick/style/rcmod.py:31
/Users/lwgray/dev/yellowbrick/yellowbrick/style/rcmod.py:31: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
mpl_ge_150 = LooseVersion(mpl.__version__) >= "1.5.0"
These warnings indicate we need to:
Replace deprecated LooseVersion with packaging.version
Update our minimum dependencies to modern versions
Proposed Changes
Version Comparison Fix
Replace LooseVersion with packaging.version in affected files:
Update documentation to reflect new minimum versions
Add migration notes to changelog
Breaking Changes
This will increase the minimum required versions of several core dependencies. Users will need to upgrade their environments to use newer versions of the package.
Additional Notes
The version checks for Matplotlib 1.5.0 seem outdated since we're requiring 3.6.0+
Consider removing legacy compatibility code for very old Matplotlib versions
The warning in setuptools/_distutils/version.py is from a dependency and should resolve with updates
The key differences in this revised issue are:
1. Actual warning messages with file locations and line numbers
2. Specific files that need to be changed
3. More precise tasks based on the actual warnings
4. Note about the setuptools warning coming from a dependency
@DistrictDataLabs/team-oz-maintainers
The text was updated successfully, but these errors were encountered:
Description
Several deprecation warnings are occurring in our test suite related to version comparisons:
These warnings indicate we need to:
LooseVersion
withpackaging.version
Proposed Changes
Version Comparison Fix
Replace
LooseVersion
withpackaging.version
in affected files:Dependency Updates
Tasks
LooseVersion
deprecation in colors.pyLooseVersion
deprecation in rcmod.pyBreaking Changes
This will increase the minimum required versions of several core dependencies. Users will need to upgrade their environments to use newer versions of the package.
Additional Notes
Labels: dependencies, deprecation-warning, breaking-change, maintenance
The text was updated successfully, but these errors were encountered: