From ec971231e03d85b9bb8f4ee7994ea27dfecad8c9 Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Wed, 6 Nov 2024 17:56:23 +0800 Subject: [PATCH 1/2] Add PyArrow as an optional dependency --- .github/workflows/ci_docs.yml | 1 + .github/workflows/type_checks.yml | 2 +- ci/requirements/docs.yml | 1 + environment.yml | 1 + pyproject.toml | 1 + 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci_docs.yml b/.github/workflows/ci_docs.yml index afc4309122e..475230e9c17 100644 --- a/.github/workflows/ci_docs.yml +++ b/.github/workflows/ci_docs.yml @@ -103,6 +103,7 @@ jobs: contextily geopandas<1.0 ipython + pyarrow rioxarray make pip diff --git a/.github/workflows/type_checks.yml b/.github/workflows/type_checks.yml index c9feffd39db..1e275d6d32d 100644 --- a/.github/workflows/type_checks.yml +++ b/.github/workflows/type_checks.yml @@ -50,7 +50,7 @@ jobs: # 4. other packages that are used somewhere in PyGMT python -m pip install \ numpy pandas xarray netcdf4 packaging \ - contextily geopandas ipython rioxarray \ + contextily geopandas ipython pyarrow rioxarray \ mypy pandas-stubs \ matplotlib pytest python -m pip list diff --git a/ci/requirements/docs.yml b/ci/requirements/docs.yml index 8214dbac8fe..6ae1595fe28 100644 --- a/ci/requirements/docs.yml +++ b/ci/requirements/docs.yml @@ -16,6 +16,7 @@ dependencies: - contextily - geopandas<1.0 - ipython + - pyarrow - rioxarray # Development dependencies (general) - make diff --git a/environment.yml b/environment.yml index 85d7c845866..c63829d974f 100644 --- a/environment.yml +++ b/environment.yml @@ -16,6 +16,7 @@ dependencies: - contextily - geopandas - ipython + - pyarrow - rioxarray # Development dependencies (general) - dvc diff --git a/pyproject.toml b/pyproject.toml index 8819d4e7b1b..8400da80625 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,6 +43,7 @@ all = [ "contextily", "geopandas", "IPython", # 'ipython' is not the correct module name. + "pyarrow", "rioxarray", ] From 397cf4568eba3fb6a81bc9cedc28e9a59e18e844 Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Thu, 7 Nov 2024 06:31:54 +0800 Subject: [PATCH 2/2] Add pyarrow-stubs Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com> --- .github/workflows/type_checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/type_checks.yml b/.github/workflows/type_checks.yml index 1e275d6d32d..525735d72b1 100644 --- a/.github/workflows/type_checks.yml +++ b/.github/workflows/type_checks.yml @@ -51,7 +51,7 @@ jobs: python -m pip install \ numpy pandas xarray netcdf4 packaging \ contextily geopandas ipython pyarrow rioxarray \ - mypy pandas-stubs \ + mypy pandas-stubs pyarrow-stubs \ matplotlib pytest python -m pip list