-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
GH-40216: [CI][Packaging][Python] Upload pyarrow nightly wheels to scientific python channel on Anaconda #43862
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
a690ef4
GH-40216: [CI][Packaging][Python] Upload pyarrow nightly wheels to sc…
raulcd bc682b1
Temporarily remove check for default branch to test upload
raulcd e5f45ef
Try manual upload to anaconda
raulcd 5336576
Add env for token
raulcd 64a9de6
Fix yaml for GitHub syntax instead of Azure :)
raulcd 27a7109
Install conda before uploading wheel
raulcd 3aeef04
Use setup-miniconda action
raulcd 641edf6
Fix activate command
raulcd 94d2e9d
Use the existing environment created by action instead of creating ne…
raulcd 7354834
Try with setup-micromamba instead of setup-miniconda
raulcd 3d96e6e
Fix identation
raulcd b6502bc
Use pip instead of conda for anaconda-client
raulcd 14ea848
Use newer version not available on pip
raulcd 26d7301
Add upload to scientific python to the rest of the wheels and sdist
raulcd 8662076
Add sdist to wheels group on archery tasks
raulcd 6ecb968
Add back guard to only upload if branch is main
raulcd 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 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 |
---|---|---|
|
@@ -183,6 +183,18 @@ env: | |
{% endif %} | ||
{% endmacro %} | ||
|
||
{%- macro github_upload_wheel_scientific_python(pattern) -%} | ||
{%- if arrow.is_default_branch() -%} | ||
- name: Upload wheel to Anaconda scientific-python | ||
shell: bash | ||
run: | | ||
python3 -m pip install git+https://github.com/Anaconda-Platform/[email protected] | ||
anaconda -t ${CROSSBOW_SCIENTIFIC_PYTHON_UPLOAD_TOKEN} upload --force -u scientific-python-nightly-wheels --label dev {{ pattern }} | ||
env: | ||
CROSSBOW_SCIENTIFIC_PYTHON_UPLOAD_TOKEN: {{ '${{ secrets.CROSSBOW_SCIENTIFIC_PYTHON_UPLOAD_TOKEN }}' }} | ||
{% endif %} | ||
{% endmacro %} | ||
|
||
{%- macro azure_checkout_arrow() -%} | ||
- script: | | ||
git clone --no-checkout --branch {{ arrow.branch }} {{ arrow.remote }} arrow | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
|
@@ -29,6 +29,7 @@ groups: | |
|
||
wheel: | ||
- wheel-* | ||
- python-sdist | ||
|
||
linux: | ||
- almalinux-* | ||
|
Oops, something went wrong.
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.
I've added the
sdist
as part of the wheels job as several times we want to also trigger it when we trigger the wheels group but happy to remove it from here if we want to have it separate