Skip to content

Commit

Permalink
Ditch dask CI, fix pandas
Browse files Browse the repository at this point in the history
  • Loading branch information
martindurant committed May 8, 2024
1 parent b4b2c1a commit f6989bd
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 43 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,36 +70,6 @@ jobs:
run: |
echo "FASTPARQUET_DATAPAGE_V2=$FASTPARQUET_DATAPAGE_V2"
pytest --verbose --cov=fastparquet
dask:
name: dask
runs-on: ubuntu-latest
steps:
- name: APT
run: sudo apt-get install liblzo2-dev

- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup conda
uses: mamba-org/provision-with-micromamba@main
with:
environment-file: ci/environment-py39.yml

- name: pip-install
shell: bash -l {0}
run: |
git clone https://github.com/dask/dask
pip install pyarrow
pip install -e dask/
pip install -e . --no-deps
- name: Run Tests
shell: bash -l {0}
run: |
pytest --verbose dask/dask/dataframe/io/tests/test_parquet.py
pandas:
name: pandas
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion fastparquet/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def cat(col):
tz_to_dt_tz(timezones[str(col)]))
else:
index = Index(d)
views[col] = index.values
views[col] = d
else:
index = MultiIndex([[]], [[]])
# index = MultiIndex.from_arrays(indexes)
Expand Down
4 changes: 1 addition & 3 deletions fastparquet/test/test_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -1022,9 +1022,7 @@ def test_no_string(tmpdir):
df["A"] = df["A"].astype(pd.StringDtype())

# set *all* values to NA
df["A"].iloc[0] = pd.NA
df["A"].iloc[1] = pd.NA
df["A"].iloc[2] = pd.NA
df.loc[:, "A"] = pd.NA
df.to_parquet(fn, engine="fastparquet")
df2 = pd.read_parquet(fn)
assert pd.isna(df2.A).all()
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[build-system]
requires = ["setuptools", "wheel", "Cython >= 0.29.23", "oldest-supported-numpy", "pytest-runner"]
requires = ["setuptools", "setuptools_scm", "Cython >= 0.29.23", "numpy>=2.0.0rc1"]
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pandas>=1.5.0
numpy>=1.20.3
numpy
cramjam>=2.3
fsspec
packaging
7 changes: 0 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,6 @@ def fix_exts(sources):
'local_scheme': 'no-local-version',
'write_to': 'fastparquet/_version.py'
},
setup_requires=[
'setuptools>18.0',
'setuptools-scm>1.5.4',
'Cython',
'pytest-runner',
'oldest-supported-numpy'
],
description='Python support for Parquet file format',
author='Martin Durant',
author_email='[email protected]',
Expand Down

0 comments on commit f6989bd

Please sign in to comment.