-
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
Handle distribution.files being None #6877
Conversation
c57b12f
to
ff0cb20
Compare
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 do think this change is a bit clunky, I'd much rather do something like:
if not distribution.files:
break
Otherwise, the spirit of the thing looks good to me.
Thanks for the suggestion @neersighted, definitely much neater than what I had - fixed it 👍🏻 |
Ah, it looks like I didn't read close enough -- |
Good catch! Just updated it. |
bd847f4
to
523e2aa
Compare
this looks suspect in the third place you've done it: we now don't execute the code after the fwiw I preferred the original version of this MR that went |
@dimbleby Yeah good point. I think I don't write Python much so don't have strong opinions on which approach is preferred - happy to defer to you folks! |
@neersighted Do you have any objections if I revert it back to the original Otherwise, I think the other option is to nest the inner for loop:
|
Ah, good catch, I skimmed too quickly there as well 😆 Yeah, I'd rather just indent/nest the for loop than create an empty list, but that's my personal preference. |
13560ae
to
2a09bef
Compare
I've reverted it back to the original version I had 👍🏻 (I tried nesting the for loop but it made formatting awkward with the linting of line length) |
2a09bef
to
77df9b1
Compare
77df9b1
to
d78ba98
Compare
Hey, are there any workarounds we can use before this is released? |
Yeah, any workarounds? Am also struggling with a similar situation. |
Hey, I just noticed that this only happens when installing poetry via apt.
If you install it using the official installation script it works fine
(that was the case for me at least)
…On Sat, Dec 3, 2022, 05:58 mikey ***@***.***> wrote:
Yeah, any workarounds? Am also struggling with a similar situation.
—
Reply to this email directly, view it on GitHub
<#6877 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKKYRQ55XAO3DH5KH6DLGLWLMDUHANCNFSM6AAAAAARM2PPLA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
#7137 is under review, we should be releasing shortly.
Versions of Poetry distributed by distro packagers are unsupported and carry untested patches. Poetry's test suite is stripped by Debian and not run to validate their changes. We can provide no support for distro-packaged versions of Poetry. |
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: #6788
We discovered that in some unknown situations,
distribution.files
can beNone
, causing the assertion to fail. To handledistribution.files
beingNone
more gracefully, we treat it as if it were an empty list.