From 7f7ee38da6d86b6eba34e0bd05e65e9f2ac11126 Mon Sep 17 00:00:00 2001 From: Thomas Li <47963215+lithomas1@users.noreply.github.com> Date: Sun, 3 Oct 2021 06:49:09 -0700 Subject: [PATCH] CI: Unpin fsspec (#43849) --- ci/deps/actions-38-db.yaml | 2 +- ci/deps/actions-38-slow.yaml | 2 +- ci/deps/actions-39-slow.yaml | 2 +- ci/deps/actions-39.yaml | 2 +- ci/deps/azure-windows-38.yaml | 2 +- ci/deps/azure-windows-39.yaml | 2 +- environment.yml | 2 +- pandas/tests/io/test_fsspec.py | 7 +++---- requirements-dev.txt | 2 +- 9 files changed, 11 insertions(+), 12 deletions(-) diff --git a/ci/deps/actions-38-db.yaml b/ci/deps/actions-38-db.yaml index b4495fa6887f4..26825cad5c8f6 100644 --- a/ci/deps/actions-38-db.yaml +++ b/ci/deps/actions-38-db.yaml @@ -16,7 +16,7 @@ dependencies: - botocore>=1.11 - dask - fastparquet>=0.4.0 - - fsspec>=0.7.4, <2021.6.0 + - fsspec>=0.7.4 - gcsfs>=0.6.0 - geopandas - html5lib diff --git a/ci/deps/actions-38-slow.yaml b/ci/deps/actions-38-slow.yaml index 08900a31fe27c..a4e6e0d0180d2 100644 --- a/ci/deps/actions-38-slow.yaml +++ b/ci/deps/actions-38-slow.yaml @@ -13,7 +13,7 @@ dependencies: # pandas dependencies - beautifulsoup4 - - fsspec>=0.7.4, <2021.6.0 + - fsspec>=0.7.4 - html5lib - lxml - matplotlib diff --git a/ci/deps/actions-39-slow.yaml b/ci/deps/actions-39-slow.yaml index dbfcf98a3203b..e8c431c59a564 100644 --- a/ci/deps/actions-39-slow.yaml +++ b/ci/deps/actions-39-slow.yaml @@ -15,7 +15,7 @@ dependencies: # pandas dependencies - beautifulsoup4 - bottleneck - - fsspec>=0.8.0, <2021.6.0 + - fsspec>=0.8.0 - gcsfs - html5lib - jinja2 diff --git a/ci/deps/actions-39.yaml b/ci/deps/actions-39.yaml index a78fb30019b53..322b3ae6007c7 100644 --- a/ci/deps/actions-39.yaml +++ b/ci/deps/actions-39.yaml @@ -14,7 +14,7 @@ dependencies: # pandas dependencies - beautifulsoup4 - bottleneck - - fsspec>=0.8.0, <2021.6.0 + - fsspec>=0.8.0 - gcsfs - html5lib - jinja2 diff --git a/ci/deps/azure-windows-38.yaml b/ci/deps/azure-windows-38.yaml index c56496bce7d6c..3bf80e97b3663 100644 --- a/ci/deps/azure-windows-38.yaml +++ b/ci/deps/azure-windows-38.yaml @@ -17,7 +17,7 @@ dependencies: - bottleneck - fastparquet>=0.4.0 - flask - - fsspec>=0.8.0, <2021.6.0 + - fsspec>=0.8.0 - matplotlib=3.3.2 - moto>=1.3.14 - numba diff --git a/ci/deps/azure-windows-39.yaml b/ci/deps/azure-windows-39.yaml index c4d376fd2a909..f8e3332347b69 100644 --- a/ci/deps/azure-windows-39.yaml +++ b/ci/deps/azure-windows-39.yaml @@ -15,7 +15,7 @@ dependencies: # pandas dependencies - beautifulsoup4 - bottleneck - - fsspec>=0.8.0, <2021.6.0 + - fsspec>=0.8.0 - gcsfs - html5lib - jinja2 diff --git a/environment.yml b/environment.yml index 00fb5b0580200..1cd1179fc29b0 100644 --- a/environment.yml +++ b/environment.yml @@ -106,7 +106,7 @@ dependencies: - pytables>=3.6.1 # pandas.read_hdf, DataFrame.to_hdf - s3fs>=0.4.0 # file IO when using 's3://...' path - aiobotocore - - fsspec>=0.7.4, <2021.6.0 # for generic remote file operations + - fsspec>=0.7.4 # for generic remote file operations - gcsfs>=0.6.0 # file IO when using 'gcs://...' path - sqlalchemy # pandas.read_sql, DataFrame.to_sql - xarray<0.19 # DataFrame.to_xarray diff --git a/pandas/tests/io/test_fsspec.py b/pandas/tests/io/test_fsspec.py index 2e495b2bcec18..bbfed852d8b38 100644 --- a/pandas/tests/io/test_fsspec.py +++ b/pandas/tests/io/test_fsspec.py @@ -39,9 +39,8 @@ def cleared_fs(): def test_read_csv(cleared_fs): - from fsspec.implementations.memory import MemoryFile - - cleared_fs.store["test/test.csv"] = MemoryFile(data=text) + with cleared_fs.open("test/test.csv", "wb") as w: + w.write(text) df2 = read_csv("memory://test/test.csv", parse_dates=["dt"]) tm.assert_frame_equal(df1, df2) @@ -294,7 +293,7 @@ def test_markdown_options(fsspectest): df = DataFrame({"a": [0]}) df.to_markdown("testmem://afile", storage_options={"test": "md_write"}) assert fsspectest.test[0] == "md_write" - assert fsspectest.cat("afile") + assert fsspectest.cat("testmem://afile") @td.skip_if_no("pyarrow") diff --git a/requirements-dev.txt b/requirements-dev.txt index da2006a8b5c05..14b9ac8a9393e 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -70,7 +70,7 @@ python-snappy tables>=3.6.1 s3fs>=0.4.0 aiobotocore -fsspec>=0.7.4, <2021.6.0 +fsspec>=0.7.4 gcsfs>=0.6.0 sqlalchemy xarray<0.19