This repository has been archived by the owner on Feb 21, 2023. It is now read-only.
Replace distutils.versions
with packaging.versions
#1306
Labels
Is your feature request related to a problem?
Using
aioredis
as dependency in projects usingsetuptools > 59.5.0
throwDeprecationWarning
for usingStrictVersion
fromdistutils
:This can become a problem if running tests with warning capture option
-w Error
(so that warnings are raised as errors):https://docs.python.org/3/using/cmdline.html#cmdoption-w
Otherwise the used
disutils.versions.StrictVersion
will be removed in later versions ofdistutils
, so it makes sense to replace.Describe the solution you'd like
Replace
disutils.versions.StrictVersion
as suggested inDeprecationWarning
withpackaging.version
Describe alternatives you've considered
I don't see a better alternative.
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: