-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
add --skip-existing to publish #2812
add --skip-existing to publish #2812
Conversation
86d7998
to
a530706
Compare
hey @abn . did you mark this as wip/draft? what is the next step here? |
a530706
to
afb0060
Compare
afb0060
to
383e3cc
Compare
383e3cc
to
0a1c0f2
Compare
SonarCloud Quality Gate failed. 0 Bugs No Coverage information |
@sdispater what's the policy for the sonarcloud report? apparently i'm adding a "code smell" though i'm just trying to be consistent with the surrounding code |
121ce51
to
d66395f
Compare
How is this PR going? Is this ready to merge now? |
Someone from the project needs to review it. LGTM |
@sdispater or @abn ? do you think you can assign someone to review this and/or review it so we can get this feature? Much appreciated and thanks a lot for this awesome project. |
Any chance this will be reviewed in near future? |
d66395f
to
8a75e9a
Compare
@finswimmer and @radoering could you help us here? |
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.
At first, thanks for your contribution and your patience. In my opinion, this option is useful. (I even had the use case myself once.)
Regarding the license question, I think that is difficult to answer. APACHE license allows using the code, but demands to include the license notice. In order to avoid that, I'd prefer to rewrite the code. Since the function is not that big, there are not so many options. (It even may not be necessary because it's so small. I'm not a licensing expert.)
Anyway, I made some suggestions. Feel free to adopt or implement your own ideas.
I just reviewed the _ignore_existing function
for now and will continue later.
8a75e9a
to
7e32ad3
Compare
7e32ad3
to
ea2cba1
Compare
add `--skip-existing` option to publish command to continue if an upload fails due to the file already existing. this is helpful in e.g. ci settings. resolves python-poetry#2254
ea2cba1
to
d821a43
Compare
thank you for all your help @radoering ! |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Pull Request Check List
Resolves: #2254
WIP to check approach.
Questions
dry_run
andskip_existing
) into anoptions
object or similar to have fewer things to thread through all the functions?/cc @abn