Skip to content

Commit

Permalink
chore: optional deps should include fastexcel (#14907)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-beedie committed Mar 8, 2024
1 parent c6f37cf commit d80d990
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 22 deletions.
35 changes: 18 additions & 17 deletions py-polars/polars/meta/versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,30 @@ def show_versions() -> None:
--------
>>> pl.show_versions() # doctest: +SKIP
--------Version info---------
Polars: 0.19.16
Polars: 0.20.14
Index type: UInt32
Platform: macOS-14.1.1-arm64-arm-64bit
Python: 3.11.6 (main, Oct 2 2023, 13:45:54) [Clang 15.0.0 (clang-1500.0.40.1)]
Platform: macOS-14.3.1-arm64-arm-64bit
Python: 3.11.8 (main, Feb 6 2024, 21:21:21) [Clang 15.0.0 (clang-1500.1.0.2.5)]
----Optional dependencies----
adbc_driver_manager: 0.8.0
adbc_driver_manager: 0.10.0
cloudpickle: 3.0.0
connectorx: 0.3.2
deltalake: 0.13.0
fsspec: 2023.10.0
hvplot: 0.9.1
gevent: 23.9.1
matplotlib: 3.8.2
numpy: 1.26.2
deltalake: 0.16.0
fastexcel: 0.9.1
fsspec: 2023.12.2
gevent: 24.2.1
hvplot: 0.9.2
matplotlib: 3.8.3
numpy: 1.26.4
openpyxl: 3.1.2
pandas: 2.1.3
pyarrow: 14.0.1
pydantic: 2.5.2
pyiceberg: 0.5.1
pandas: 2.2.1
pyarrow: 15.0.0
pydantic: 2.6.3
pyiceberg: 0.6.0
pyxlsb: 1.0.10
sqlalchemy: 2.0.23
xlsx2csv: 0.8.1
xlsxwriter: 3.1.9
sqlalchemy: 2.0.28
xlsx2csv: 0.8.2
xlsxwriter: 3.2.0
""" # noqa: W505
# Note: we import 'platform' here (rather than at the top of the
# module) as a micro-optimization for polars' initial import
Expand Down
7 changes: 4 additions & 3 deletions py-polars/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,18 @@ Changelog = "https://github.com/pola-rs/polars/releases"

[project.optional-dependencies]
# NOTE: keep this list in sync with show_versions() and requirements-dev.txt
adbc = ["adbc_driver_sqlite"]
adbc = ["adbc_driver_manager", "adbc_driver_sqlite"]
cloudpickle = ["cloudpickle"]
connectorx = ["connectorx >= 0.3.2"]
deltalake = ["deltalake >= 0.14.0"]
fastexcel = ["fastexcel >= 0.9"]
fsspec = ["fsspec"]
gevent = ["gevent"]
plot = ["hvplot >= 0.9.1"]
matplotlib = ["matplotlib"]
numpy = ["numpy >= 1.16.0"]
openpyxl = ["openpyxl >= 3.0.0"]
pandas = ["pyarrow >= 7.0.0", "pandas"]
plot = ["hvplot >= 0.9.1"]
pyarrow = ["pyarrow >= 7.0.0"]
pydantic = ["pydantic"]
pyiceberg = ["pyiceberg >= 0.5.0"]
Expand All @@ -59,7 +60,7 @@ timezone = ["backports.zoneinfo; python_version < '3.9'", "tzdata; platform_syst
xlsx2csv = ["xlsx2csv >= 0.8.0"]
xlsxwriter = ["xlsxwriter"]
all = [
"polars[pyarrow,pandas,numpy,fsspec,plot,connectorx,xlsx2csv,deltalake,timezone,pydantic,pyiceberg,sqlalchemy,xlsxwriter,adbc,cloudpickle,gevent]",
"polars[adbc,cloudpickle,connectorx,deltalake,fastexcel,fsspec,gevent,numpy,pandas,plot,pyarrow,pydantic,pyiceberg,sqlalchemy,timezone,xlsx2csv,xlsxwriter]",
]

[tool.maturin]
Expand Down
5 changes: 3 additions & 2 deletions py-polars/requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
# -----

maturin
patchelf; platform_system == 'Linux' # Extra dependency for maturin, only for Linux
# extra dependency for maturin (linux-only)
patchelf; platform_system == 'Linux'

# ------------
# DEPENDENCIES
Expand Down Expand Up @@ -36,7 +37,7 @@ s3fs[boto3]
# Spreadsheet
ezodf
lxml
fastexcel>=0.8.0
fastexcel>=0.9
openpyxl
pyxlsb
xlsx2csv
Expand Down

0 comments on commit d80d990

Please sign in to comment.