googleapis / python-documentai-toolbox

Document AI Toolbox is an SDK for Python that provides utility functions for managing, manipulating, and extracting information from the document response. It creates a "wrapped" document object from JSON files in Cloud Storage, local JSON files, or output directly from the Document AI API.
https://cloud.google.com/document-ai/docs/toolbox
Apache License 2.0
32 stars 13 forks source link

Introduce deprecation warning for python 3.7, google-api-core 1.x and protobuf 3.x #209

Closed holtskinner closed 7 months ago

holtskinner commented 9 months ago

Python 3.7 is now unsupported in the python community. We should update the README to indicate that python 3.7 support will be dropped and also introduce a deprecation warning with the same information.

Similar to:

holtskinner commented 9 months ago

Note: When Python 3.7 support is dropped, this can be removed from all tests:

# try/except added for compatibility with python < 3.8
try:
    from unittest import mock
except ImportError:  # pragma: NO COVER
    import mock

Change to:

from unittest import mock