-
Notifications
You must be signed in to change notification settings - Fork 9
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
MNT: Use '--skip-existing' over '--force' #11
base: main
Are you sure you want to change the base?
MNT: Use '--skip-existing' over '--force' #11
Conversation
* Use anaconda-client upload command's '--skip-existing' flag over the '--force' flag to avoid redundant uploads, saving time, and to avoid uploading when legitimate errors exist. From 'anaconda upload --help': > --force: Force a package upload regardless of errors > --skip-existing: Skip errors on package batch upload if it already exists * Use long versions of command flags to make things more explicit.
sorry, from my phone. the main reason behind --force is that some repos may
not have a properly numbered wheel, and thus we actually do need to force.
At least that is what I seem to remember.
…On Tue, May 30, 2023 at 08:24 Matthew Feickert ***@***.***> wrote:
@matthewfeickert <https://github.com/matthewfeickert> requested your
review on: #11
<#11> MNT:
Use '--skip-existing' over '--force'.
—
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACR5TY2VMYTLP53DBRIAV3XIWHBBANCNFSM6AAAAAAYTQWFEI>
.
You are receiving this because your review was requested.Message ID:
<scientific-python/upload-nightly-action/pull/11/issue_event/9374281304@
github.com>
|
@Carreau Thanks for the info, though this seems surprising to me. Why are any of the libraries targeted here not following PEP 440? If they aren't, this seems like it should be an exception to be handled with an option and not the default. Can you comment which libraries this is relevant for? Or maybe here you mean (No rush to respond to this, as I'm about to go offline in the US). |
I'm pretty sure IPython overwrite the same |
I have no opinion on what this action should/shouldn't do. I think for existing projects discussing compliance with PEPs is a good way to spend a few weeks without achieving much :-/ The pragmatist in me is Ok with that. |
Given anaconda/anaconda-client#655 (comment) |
@matthewfeickert I like the idea, in principle. Could we control this using a
|
I have no objections of having parameters, but at the same time I also do not want to make this a kitchen-sink utilities. At some point it should be ok to say "this is beyond the scope of this action, if you wish to have more control please use XXX". For example https://github.com/OpenAstronomy/publish-wheels-anaconda has more parameters and also take care of the removal. |
Use
anaconda-client
upload
command's--skip-existing
flag over the--force
flag to avoid redundant uploads, saving time, and to avoid uploading when legitimate errors exist. Fromanaconda upload --help
: