Skip to content

Commit af56956

Browse files
authored
feature(ci): updload nightly wheel to scientific python anaconda repo (#3449)
* feature(ci): updload nightly wheel to scientific python anaconda repo * add changelog entry * add docs section in "installing" * reformat pip install
1 parent 27d689c commit af56956

File tree

3 files changed

+51
-0
lines changed

3 files changed

+51
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Nightly Wheels
2+
3+
on:
4+
schedule:
5+
# Run nightly at 2 AM UTC
6+
- cron: '0 2 * * *'
7+
workflow_dispatch:
8+
9+
jobs:
10+
build_and_upload_nightly:
11+
name: Build and upload nightly wheels
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v5
16+
with:
17+
submodules: true
18+
fetch-depth: 0
19+
20+
- uses: actions/setup-python@v6
21+
name: Install Python
22+
with:
23+
python-version: '3.13'
24+
25+
- name: Install build dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install hatch
29+
30+
- name: Build wheel and sdist
31+
run: hatch build
32+
33+
- name: Upload nightly wheels
34+
uses: scientific-python/upload-nightly-action@82396a2ed4269ba06c6b2988bb4fd7672769da06
35+
with:
36+
artifacts_path: dist
37+
anaconda_nightly_upload_token: ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }}

changes/3449.misc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Publish nightly wheels to https://anaconda.org/scientific-python-nightly-wheels/.

docs/user-guide/installation.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,19 @@ Zarr is also published to `conda-forge <https://conda-forge.org>`_. Install it u
4242
Conda does not support optional dependencies, so you will have to manually install any packages
4343
needed to enable extra functionality.
4444

45+
Nightly wheels
46+
--------------
47+
48+
Development wheels are built nightly and published to the `scientific-python-nightly-wheels <https://anaconda.org/scientific-python-nightly-wheels>`_ index. To install the latest nightly build:
49+
50+
.. code-block:: console
51+
52+
$ pip install --pre \
53+
--extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple \
54+
zarr
55+
56+
Note that nightly wheels may be unstable and are intended for testing purposes.
57+
4558
Dependency support
4659
------------------
4760
Zarr has endorsed `Scientific-Python SPEC 0 <https://scientific-python.org/specs/spec-0000/>`_ and now follows the version support window as outlined below:

0 commit comments

Comments
 (0)