Skip to content

Commit e0facc0

Browse files
committed
ci: pin arrow=21.0.0 since it is released now; restore CI workarounds
1 parent 00a8c54 commit e0facc0

File tree

3 files changed

+10
-18
lines changed

3 files changed

+10
-18
lines changed

.github/workflows/build_documentation.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
commit_sha: ${{ github.sha }}
1616
package: datasets
1717
notebook_folder: datasets_doc
18-
additional_args: --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
1918
secrets:
2019
token: ${{ secrets.HUGGINGFACE_PUSH }}
2120
hf_token: ${{ secrets.HF_DOC_BUILD_PUSH }}

.github/workflows/ci.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ on:
55
branches:
66
- main
77
push:
8-
# branches:
9-
# - main
10-
# - ci-*
8+
branches:
9+
- main
10+
- ci-*
1111

1212
env:
1313
CI_HEADERS: ${{ secrets.CI_HEADERS }}
@@ -25,7 +25,6 @@ jobs:
2525
- name: Install dependencies
2626
run: |
2727
python -m pip install --upgrade pip
28-
pip install --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple "pyarrow>=21.0.0.dev"
2928
pip install .[quality]
3029
- name: Check quality
3130
run: |
@@ -59,15 +58,13 @@ jobs:
5958
- name: Install uv
6059
run: pip install --upgrade uv
6160
- name: Install dependencies
62-
run: |
63-
uv pip install --system --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple "pyarrow>=21.0.0.dev"
64-
uv pip install --system "datasets[tests] @ ."
61+
run: uv pip install --system "datasets[tests] @ ."
6562
- name: Install dependencies (latest versions)
6663
if: ${{ matrix.deps_versions == 'deps-latest' }}
67-
run: uv pip install --system --upgrade huggingface-hub "dill<0.3.9"
64+
run: uv pip install --system --upgrade pyarrow huggingface-hub "dill<0.3.9"
6865
- name: Install dependencies (minimum versions)
6966
if: ${{ matrix.deps_versions != 'deps-latest' }}
70-
run: uv pip install --system huggingface-hub==0.24.7 transformers dill==0.3.1.1
67+
run: uv pip install --system pyarrow==15.0.0 huggingface-hub==0.24.7 transformers dill==0.3.1.1
7168
- name: Test with pytest
7269
run: |
7370
python -m pytest -rfExX -m ${{ matrix.test }} -n 2 --dist loadfile -sv ./tests/
@@ -99,9 +96,7 @@ jobs:
9996
- name: Install uv
10097
run: pip install --upgrade uv
10198
- name: Install dependencies
102-
run: |
103-
uv pip install --system --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple "pyarrow>=21.0.0.dev"
104-
uv pip install --system "datasets[tests] @ ."
99+
run: uv pip install --system "datasets[tests] @ ."
105100
- name: Test with pytest
106101
run: |
107102
python -m pytest -rfExX -m ${{ matrix.test }} -n 2 --dist loadfile -sv ./tests/
@@ -133,9 +128,7 @@ jobs:
133128
- name: Install uv
134129
run: pip install --upgrade uv
135130
- name: Install dependencies
136-
run: |
137-
uv pip install --system --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple "pyarrow>=21.0.0.dev"
138-
uv pip install --system "datasets[tests_numpy2] @ ."
131+
run: uv pip install --system "datasets[tests_numpy2] @ ."
139132
- name: Test with pytest
140133
run: |
141134
python -m pytest -rfExX -m ${{ matrix.test }} -n 2 --dist loadfile -sv ./tests/

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@
110110
# We use numpy>=1.17 to have np.random.Generator (Dataset shuffling)
111111
"numpy>=1.17",
112112
# Backend and serialization.
113-
# Minimum 15.0.0 to be able to cast dictionary types to their underlying types
114-
"pyarrow>=21.0.0.dev",
113+
# Minimum 21.0.0 to support `use_content_defined_chunking` in ParquetWriter
114+
"pyarrow>=21.0.0",
115115
# For smart caching dataset processing
116116
"dill>=0.3.0,<0.3.9", # tmp pin until dill has official support for determinism see https://github.com/uqfoundation/dill/issues/19
117117
# For performance gains with apache arrow

0 commit comments

Comments
 (0)