Deprecation Warnings using Python 3.7 beta
Brought to you by:
ptmcg
Reported to the pip project as https://github.com/pypa/pip/issues/5013:
I created a venv under Python 3.7 and am getting the following:
~/pip/_vendor/pyparsing.py:3226: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
elif isinstance( exprs, collections.Iterable ):
We simply vendor pyparsing, so this should be fixed here and we will pick up the fix when a new release is made.
FWIW this affects setuptools' pkg_resources module as well:
https://github.com/pypa/setuptools/issues/1401
I'm running into this in Pillow tests which depend on Pyroma which depend on Setuptools which vendors Pyparsing.
Something like the attached should fix it. (Sorry, I'm not sure how to submit a PR/patch through Sourceforge/SVN.)
I just spotted the project has moved to GitHub, here's a PR: https://github.com/pyparsing/pyparsing/pull/16
(It might be useful to add a notice about the move on https://sourceforge.net/projects/pyparsing/.)
https://github.com/pyparsing/pyparsing/pull/16 has been merged and released in https://github.com/pyparsing/pyparsing/releases/tag/pyparsing_2.2.1.
This issue can be closed. (If Sourceforge is still active.)
Released in 2.2.1