-
-
Notifications
You must be signed in to change notification settings - Fork 759
Add workflow / recipe to generate Dask/distributed pre-releases #5636
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
89705f1
First pass at distributed nightly builds
charlesbluca f3d86a0
Pin dask-core dep to latest nightly build
charlesbluca 1ade91a
Add dask metapackage recipe
charlesbluca b479c7f
Try to pin distributed dep by build
charlesbluca 55f9109
Pin dask dep by version and build
charlesbluca 3abe94e
Minor changes to anaconda upload step
charlesbluca 9dafda2
Update doc source URL
charlesbluca 0ab4191
Only run conda search command once
charlesbluca 1d4bd48
Merge branch 'distributed-nightly' of github.com:charlesbluca/distrib…
charlesbluca 75af34e
Add conda build config
charlesbluca 004813c
Add newline to build config
charlesbluca 4d01682
Don't build Python 3.10 nightlies
charlesbluca File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,81 @@ | ||
| name: Conda build | ||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| pull_request: | ||
|
|
||
| # When this workflow is queued, automatically cancel any previous running | ||
| # or pending jobs from the same branch | ||
| concurrency: | ||
| group: conda-${{ github.head_ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| # Required shell entrypoint to have properly activated conda environments | ||
| defaults: | ||
| run: | ||
| shell: bash -l {0} | ||
|
|
||
| jobs: | ||
| conda: | ||
| name: Build (and upload) | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: Set up Python | ||
| uses: conda-incubator/setup-miniconda@v2 | ||
| with: | ||
| miniforge-variant: Mambaforge | ||
| use-mamba: true | ||
| python-version: 3.8 | ||
| - name: Install dependencies | ||
| run: | | ||
| mamba install boa conda-verify | ||
|
|
||
| which python | ||
| pip list | ||
| mamba list | ||
| - name: Build conda packages | ||
| run: | | ||
| # suffix for pre-release package versions | ||
| export VERSION_SUFFIX=a`date +%y%m%d` | ||
|
|
||
| # conda search for the latest dask-core pre-release | ||
| arr=($(conda search --override-channels -c dask/label/dev dask-core | tail -n 1)) | ||
|
|
||
| # extract dask-core pre-release version / build | ||
| export DASK_VERSION=${arr[1]} | ||
| export DASK_BUILD=${arr[2]} | ||
|
|
||
| # distributed pre-release build | ||
| conda mambabuild continuous_integration/recipes/distributed \ | ||
| --channel dask/label/dev \ | ||
| --no-anaconda-upload \ | ||
| --output-folder build | ||
|
|
||
| # dask pre-release build | ||
| conda mambabuild continuous_integration/recipes/dask \ | ||
| --channel dask/label/dev \ | ||
| --no-anaconda-upload \ | ||
| --output-folder build | ||
| - name: Upload conda packages | ||
| if: | | ||
| github.event_name == 'push' | ||
| && github.ref == 'refs/heads/main' | ||
| && github.repository == 'dask/distributed' | ||
| env: | ||
| ANACONDA_API_TOKEN: ${{ secrets.DASK_CONDA_TOKEN }} | ||
| run: | | ||
| # convert distributed to other architectures | ||
| cd build && conda convert linux-64/*.tar.bz2 -p osx-64 \ | ||
| -p osx-arm64 \ | ||
| -p linux-ppc64le \ | ||
| -p linux-aarch64 \ | ||
| -p win-64 | ||
|
Comment on lines
+72
to
+76
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we include this in the testing that runs on PRs? |
||
|
|
||
| # install anaconda for upload | ||
| mamba install anaconda-client | ||
|
|
||
| anaconda upload --label dev **.tar.bz2 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| {% set version = environ.get('GIT_DESCRIBE_TAG', '0.0.0.dev') + environ.get('VERSION_SUFFIX', '') %} | ||
| {% set dask_version = environ.get('DASK_VERSION', '0.0.0.dev') %} | ||
| {% set dask_build = environ.get('DASK_BUILD', '') %} | ||
| {% set py_version=environ.get('CONDA_PY', 36) %} | ||
|
|
||
|
|
||
| package: | ||
| name: dask | ||
| version: {{ version }} | ||
|
|
||
| source: | ||
| git_url: ../../.. | ||
|
|
||
| build: | ||
| number: {{ GIT_DESCRIBE_NUMBER }} | ||
| string: py{{ py_version }}_{{ GIT_DESCRIBE_HASH }}_{{ GIT_DESCRIBE_NUMBER }} | ||
| noarch: python | ||
|
|
||
| requirements: | ||
| host: | ||
| - python >=3.7 | ||
| run: | ||
| - python >=3.7 | ||
| - dask-core {{ dask_version }}={{ dask_build }} | ||
| - distributed {{ version }}=py{{ py_version }}_{{ GIT_DESCRIBE_HASH }}_{{ GIT_DESCRIBE_NUMBER }} | ||
| - cytoolz >=0.8.2 | ||
| - numpy >=1.18 | ||
| - pandas >=1.0 | ||
| - bokeh >=2.1.1 | ||
| - jinja2 | ||
|
|
||
| run_constrained: | ||
| - openssl !=1.1.1e | ||
|
|
||
| test: | ||
| imports: | ||
| - dask | ||
| - dask.array | ||
| - dask.bag | ||
| - dask.bytes | ||
| - dask.dataframe | ||
| - dask.dataframe.tseries | ||
| - dask.delayed | ||
| - dask.diagnostics | ||
| - dask.distributed | ||
| - distributed | ||
|
|
||
| about: | ||
| home: https://dask.org/ | ||
| summary: Parallel PyData with Task Scheduling | ||
| license: BSD-3-Clause | ||
| license_file: LICENSE.txt | ||
| description: | | ||
| Dask is a flexible parallel computing library for analytics. | ||
| doc_url: https://dask.org/ | ||
| dev_url: https://github.com/dask/dask |
4 changes: 4 additions & 0 deletions
4
continuous_integration/recipes/distributed/conda_build_config.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| python: | ||
| - 3.7 | ||
| - 3.8 | ||
| - 3.9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,79 @@ | ||
| {% set version = environ.get('GIT_DESCRIBE_TAG', '0.0.0.dev') + environ.get('VERSION_SUFFIX', '') %} | ||
| {% set dask_version = environ.get('DASK_VERSION', '0.0.0.dev') %} | ||
| {% set dask_build = environ.get('DASK_BUILD', '') %} | ||
|
|
||
|
|
||
| package: | ||
| name: distributed | ||
| version: {{ version }} | ||
|
|
||
| source: | ||
| git_url: ../../.. | ||
|
|
||
| build: | ||
| number: {{ GIT_DESCRIBE_NUMBER }} | ||
| string: py{{ python | replace(".", "") }}_{{ GIT_DESCRIBE_HASH }}_{{ GIT_DESCRIBE_NUMBER }} | ||
| script: {{ PYTHON }} -m pip install . -vv | ||
| entry_points: | ||
| - dask-scheduler = distributed.cli.dask_scheduler:go | ||
| - dask-ssh = distributed.cli.dask_ssh:go | ||
| - dask-worker = distributed.cli.dask_worker:go | ||
|
|
||
| requirements: | ||
| build: | ||
| - python # [build_platform != target_platform] | ||
| - cross-python_{{ target_platform }} # [build_platform != target_platform] | ||
| host: | ||
| - python | ||
| - pip | ||
|
|
||
| run: | ||
| - python | ||
| - click >=6.6 | ||
| - cloudpickle >=1.5.0 | ||
| - cytoolz >=0.8.2 | ||
| - dask-core {{ dask_version }}={{ dask_build }} | ||
| - jinja2 | ||
| - msgpack-python >=0.6.0 | ||
| - psutil >=5.0 | ||
| - pyyaml | ||
| - sortedcontainers !=2.0.0,!=2.0.1 | ||
| - tblib >=1.6.0 | ||
| - toolz >=0.8.2 | ||
| - tornado >=5 # [py<38] | ||
| - tornado >=6.0.3 # [py>=38] | ||
| - zict >=0.1.3 | ||
| - setuptools | ||
|
|
||
| run_constrained: | ||
| - openssl !=1.1.1e | ||
|
|
||
| test: | ||
| imports: | ||
| - distributed | ||
| - distributed.cli | ||
| - distributed.comm | ||
| - distributed.deploy | ||
| - distributed.diagnostics | ||
| - distributed.protocol | ||
| commands: | ||
| - pip check | ||
| - dask-scheduler --help | ||
| - dask-ssh --help | ||
| - dask-worker --help | ||
| requires: | ||
| - pip | ||
|
|
||
| about: | ||
| home: https://distributed.dask.org | ||
| summary: Distributed scheduler for Dask | ||
| license: BSD-3-Clause | ||
| license_family: BSD | ||
| license_file: LICENSE.txt | ||
| description: | | ||
| Distributed is a lightweight library for distributed computing in Python. | ||
| It extends both the concurrent.futures and dask APIs to moderate sized | ||
| clusters. | ||
| doc_url: https://distributed.dask.org | ||
| doc_source_url: https://github.com/dask/distributed/blob/main/docs/source/index.rst | ||
| dev_url: https://github.com/dask/distributed |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a note, we already set this up in issue ( dask/dask#8504 ). So it should now just work here