Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

MNT: Skip existing wheels during nightly wheel upload#22759

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@matthewfeickert
Copy link
Contributor

@matthewfeickertmatthewfeickert commentedApr 1, 2022
edited
Loading

PR Summary

Resolves#22757

Amends PR#22733

Add the--skip-existing option foranaconda upload to

Skip errors on package batch upload if it already exists

This will keep thenightlies.yml workflow from erroring out if no new wheels were generated, or if a workflow is manually rerun.

Asanaconda-client does not have any stable releases on PyPI that support the API desired for uploads (c.f.anaconda/anaconda-client#540), pin it to the last commit onhttps://github.com/Anaconda-Platform/anaconda-client known to install and work (which is the merge commit ofanaconda/anaconda-client#589). This is done for API stability.

PR Checklist

Tests and Styling

  • [n/a] Has pytest style unit tests (andpytest passes).
  • [n/a] IsFlake 8 compliant (installflake8-docstrings and runflake8 --docstring-convention=all).

Documentation

  • [n/a] New features are documented, with examples if plot related.
  • [n/a] New features have an entry indoc/users/next_whats_new/ (follow instructions in README.rst there).
  • [n/a] API changes documented indoc/api/next_api_changes/ (follow instructions in README.rst there).
  • [n/a] Documentation is sphinx and numpydoc compliant (the docs shouldbuild without error).

matthewfeickertand others added2 commitsMarch 31, 2022 23:30
Add the '--skip-existing' option for anaconda upload to> Skip errors on package batch upload if it already existsThis will keep the nightlies.yml workflow from erroring out ifno new wheels were generated, or if a workflow is manually rerun.Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
As anaconda-client does not have any stable releases on PyPI thatsupport the API desired for uploads, pin it to the last commit onhttps://github.com/Anaconda-Platform/anaconda-client known toinstall and work (which is the merge commit ofAnaconda-Platform/anaconda-client PR 589). This is done for APIstability.
@matthewfeickertmatthewfeickertforce-pushed theci/avoid-duplicate-uploads branch from38cb779 to4599e81CompareApril 1, 2022 04:48
python -m pip install --upgrade pip setuptools wheel
# c.f. https://github.com/Anaconda-Platform/anaconda-client/issues/540
python -m pip install git+https://github.com/Anaconda-Server/anaconda-client
python -m pip install git+https://github.com/Anaconda-Server/anaconda-client@be1e14936a8e947da94d026c990715f0596d7043
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

While this does run the risk of things breaking if this commit were to ever be removed from history, pinning it to something seems much safer then having an API break happen with no warning.

tacaswell reacted with thumbs up emoji
@oscargusoscargus added CI: Run cibuildwheelRun wheel building tests on a PR and removed CI: Run cibuildwheelRun wheel building tests on a PR labelsApr 1, 2022
@tacaswelltacaswell added this to thev3.6.0 milestoneApr 1, 2022
@tacaswelltacaswell removed the CI: Run cibuildwheelRun wheel building tests on a PR labelApr 1, 2022
@tacaswell
Copy link
Member

I do not think we need the wheel building to run on this PR because it is only looking at artifacts it finds on the main branch, not actually making them.

matthewfeickert and oscargus reacted with thumbs up emoji

@matthewfeickert
Copy link
ContributorAuthor

matthewfeickert commentedApr 1, 2022
edited
Loading

I do not think we need the wheel building to run on this PR because it is only looking at artifacts it finds on the main branch, not actually making them.

Correct. Thanks Thomas!

@oscargusoscargus merged commit8b1881f intomatplotlib:mainApr 3, 2022
@matthewfeickertmatthewfeickert deleted the ci/avoid-duplicate-uploads branchApril 3, 2022 17:29
@matthewfeickert
Copy link
ContributorAuthor

Thanks for the fast review@tacaswell and fast merge@oscargus! Now that this is in and should get applied for the first time in the scheduled run tonight (2022-04-03), do you have thoughts on the curation/removal of old nightly wheels as described in#22757 (comment)?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@tacaswelltacaswelltacaswell approved these changes

@oscargusoscargusoscargus approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

v3.6.0

Development

Successfully merging this pull request may close these issues.

Duplicate uploads of nightly wheels to scipy-wheels-nightly Anaconda cloud package index fails

3 participants

@matthewfeickert@tacaswell@oscargus

[8]ページ先頭

©2009-2025 Movatter.jp