pytoolz / toolz

A functional standard library for Python.
http://toolz.readthedocs.org/
Other
4.71k stars 263 forks source link

Importing toolz with 0.11 triggers an internal deprecation warning #500

Closed Cadair closed 4 years ago

Cadair commented 4 years ago

I have our CI set to error on all warnings and I noticed that when you import toolz 0.11 you raise a deprecation warning about importing your compatibility module.

$ python -W error
Python 3.8.5 (default, Sep  5 2020, 10:50:12) 
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import toolz
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/stuart/.virtualenvs/sunpy-dev/lib/python3.8/site-packages/toolz/__init__.py", line 3, in <module>
    from .functoolz import *
  File "/home/stuart/.virtualenvs/sunpy-dev/lib/python3.8/site-packages/toolz/functoolz.py", line 9, in <module>
    from .compatibility import PYPY
  File "/home/stuart/.virtualenvs/sunpy-dev/lib/python3.8/site-packages/toolz/compatibility.py", line 2, in <module>
    warnings.warn("The toolz.compatibility module is no longer "
DeprecationWarning: The toolz.compatibility module is no longer needed in Python 3 and has been deprecated. Please import these utilities directly from the standard library. This module will be removed in a future release.
eriknw commented 4 years ago

Oops! toolz 0.11.1 was just released to fix this.

Cadair commented 4 years ago

Thanks for the quick turn around :smile:

jakirkham commented 4 years ago

Just merged the conda-forge update PR ( https://github.com/conda-forge/toolz-feedstock/pull/15 ). So should be available soonish (typically 30mins to mirror to CDN).