File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 17
17
18
18
# We must import pyarrow before attempting to load the Cython module.
19
19
import pyarrow as pa # noqa: F401
20
- from packaging .version import parse as _parse_version
21
20
22
21
from pymongoarrow .version import _MIN_LIBBSON_VERSION , __version__ # noqa: F401
23
22
23
+ try :
24
+ from packaging .version import parse as _parse_version
25
+ except ImportError :
26
+ from distutils .version import LooseVersion as _LooseVersion
27
+
28
+ def _parse_version (version ):
29
+ return _LooseVersion (version )
30
+
31
+
24
32
try :
25
33
from pymongoarrow .lib import libbson_version
26
34
except ImportError :
Original file line number Diff line number Diff line change @@ -105,6 +105,10 @@ filterwarnings = [
105
105
" error" ,
106
106
# https://github.com/dateutil/dateutil/issues/1314
107
107
" module:datetime.datetime.utc:DeprecationWarning" ,
108
+ # https://jira.mongodb.org/browse/ARROW-204
109
+ ' ignore:Passing a BlockManager to DataFrame is deprecated and will raise in a future version. Use public APIs instead.' ,
110
+ # https://jira.mongodb.org/browse/ARROW-206
111
+ ' ignore:DatetimeTZBlock is deprecated and will be removed in a future version. Use public APIs instead.'
108
112
]
109
113
110
114
[tool .ruff ]
You can’t perform that action at this time.
0 commit comments