|
21 | 21 | import warnings
|
22 | 22 |
|
23 | 23 | import numpy
|
24 |
| -import packaging.version |
25 | 24 | import pandas
|
26 | 25 | import pandas.api.extensions
|
27 | 26 | from pandas.errors import OutOfBoundsDatetime
|
28 | 27 | import pyarrow
|
29 | 28 | import pyarrow.compute
|
30 | 29 |
|
31 | 30 | from db_dtypes import core
|
| 31 | +from db_dtypes.json import JSONArray, JSONArrowType, JSONDtype |
32 | 32 | from db_dtypes.version import __version__
|
33 | 33 |
|
34 | 34 | from . import _versions_helpers
|
|
46 | 46 | # nanosecond precision when boxing scalars.
|
47 | 47 | _NP_BOX_DTYPE = "datetime64[us]"
|
48 | 48 |
|
49 |
| -from db_dtypes.json import JSONArray, JSONArrowType, JSONDtype |
50 | 49 |
|
51 | 50 | @pandas.api.extensions.register_extension_dtype
|
52 | 51 | class TimeDtype(core.BaseDatetimeDtype):
|
@@ -342,15 +341,14 @@ def __sub__(self, other):
|
342 | 341 | sys_major, sys_minor, sys_micro = _versions_helpers.extract_runtime_version()
|
343 | 342 | if sys_major == 3 and sys_minor in (7, 8):
|
344 | 343 | warnings.warn(
|
345 |
| - "The python-bigquery library will stop supporting Python 3.7 " |
346 |
| - "and Python 3.8 in a future major release expected in Q4 2024. " |
| 344 | + "The python-bigquery library as well as the python-db-dtypes-pandas library no " |
| 345 | + "longer supports Python 3.7 and Python 3.8. " |
347 | 346 | f"Your Python version is {sys_major}.{sys_minor}.{sys_micro}. We "
|
348 | 347 | "recommend that you update soon to ensure ongoing support. For "
|
349 | 348 | "more details, see: [Google Cloud Client Libraries Supported Python Versions policy](https://cloud.google.com/python/docs/supported-python-versions)",
|
350 |
| - PendingDeprecationWarning, |
| 349 | + FutureWarning, |
351 | 350 | )
|
352 | 351 |
|
353 |
| - |
354 | 352 | if not JSONArray or not JSONDtype:
|
355 | 353 | __all__ = [
|
356 | 354 | "__version__",
|
|
0 commit comments