Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pyarrow dependency #182

Merged
merged 3 commits into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ dependencies = [
"numpy>=1.21",
"pandas",
"pyarrow",
# TODO: once we no longer support Python 3.7, remove this and pin to pyarrow >= 14.0.1
# https://github.com/single-cell-data/TileDB-SOMA/issues/1926
"pyarrow-hotfix",
"scipy",
"typing-extensions>=4.1", # For LiteralString
]
Expand Down Expand Up @@ -56,5 +59,5 @@ warn_redundant_casts = true

[[tool.mypy.overrides]]
# These dependencies do not currently have canonical type stubs.
module = ["anndata", "numba", "pandas", "pyarrow", "scipy"]
module = ["anndata", "numba", "pandas", "pyarrow", "pyarrow_hotfix", "scipy"]
ignore_missing_imports = true
1 change: 1 addition & 0 deletions python-spec/requirements-py3.10.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ numpy==1.25.2
packaging==23.1
pandas==2.1.1
pyarrow==13.0.0
pyarrow_hotfix==0.6.0
python-dateutil==2.8.2
pytz==2023.3.post1
scipy==1.11.3
Expand Down
1 change: 1 addition & 0 deletions python-spec/requirements-py3.7.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ numpy==1.21.6
packaging==23.1
pandas==1.3.5
pyarrow==12.0.1
pyarrow_hotfix==0.6.0
python-dateutil==2.8.2
pytz==2023.3.post1
scipy==1.7.3
Expand Down
1 change: 1 addition & 0 deletions python-spec/requirements-py3.8-lint.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ pathspec==0.11.2
platformdirs==3.10.0
pre-commit==3.4.0
pyarrow==13.0.0
pyarrow_hotfix==0.6.0
python-dateutil==2.8.2
pytz==2023.3.post1
PyYAML==6.0.1
Expand Down
1 change: 1 addition & 0 deletions python-spec/requirements-py3.8.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ numpy==1.24.4
packaging==23.1
pandas==2.0.3
pyarrow==13.0.0
pyarrow_hotfix==0.6.0
python-dateutil==2.8.2
pytz==2023.3.post1
scipy==1.10.1
Expand Down
1 change: 1 addition & 0 deletions python-spec/requirements-py3.9.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ numpy==1.25.2
packaging==23.1
pandas==2.1.1
pyarrow==13.0.0
pyarrow_hotfix==0.6.0
python-dateutil==2.8.2
pytz==2023.3.post1
rsa==4.7.2
Expand Down
5 changes: 5 additions & 0 deletions python-spec/src/somacore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@

from typing import Tuple, Union

# TODO: once we no longer support Python 3.7, remove this and pin to pyarrow >= 14.0.1
# https://github.com/single-cell-data/TileDB-SOMA/issues/1926
# ruff: noqa
import pyarrow_hotfix

from .base import SOMAObject
from .collection import Collection
from .data import DataFrame
Expand Down