-
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
Removing tomlkit from poetry core #6616
Removing tomlkit from poetry core #6616
Conversation
5a6adad
to
b01c5c0
Compare
3904437
to
0acf0ee
Compare
0acf0ee
to
1b399ec
Compare
54053a3
to
bffc6dc
Compare
bffc6dc
to
8a57be6
Compare
8a57be6
to
00bb10c
Compare
00bb10c
to
454ca18
Compare
454ca18
to
7d913f9
Compare
b998fc5
to
7d913f9
Compare
Eventually, making this PR backward compatible was easier than I thought first. This gives us a clear procedure for merging this PR and its companion and allows us to further run downstream tests against poetry's master in poetry-core after merging. IMO (and I don't recall contrary opinions), there is no need for tomlkit in poetry-core since we do not (and probably will never) write toml files in core. Since tomli is included in Python 3.11 as tomllib, it makes sense to rely on it if it fulfills our needs, especially in poetry-core. I'll try to do a thorough review at the end of the week (or next week) and if there are no objections by then move forward. |
nice. On the whole I'd prefer the world to be arranged so that such things weren't necessary (approximately: disentangle the pipelines, rely on version numbers to signal compatibility) but it's certainly helpful that this can be done now
agreed: apart from the pipeline awkwardness - apparently now addressed - I think this ought to be uncontroversial thanks for reviving this one |
|
If we remove (rename) The evidence from So I think this is not an improvement. |
That applies only to downstream projects that depend on poetry-core directly but not on poetry. I'm not sure that's even a use case. I'd expect that plugin developers will rely on |
I'm not following, sorry! Is the suggestion that
that will give up backwards compatibility in this MR (because or did you mean something else? |
I think we were talking past each other? Sorry for being ambiguous. I hope the two in-code-comments (the first in the core PR) make my suggestion more clear? |
I see the suggestion, but my point is that the poetry-core change will be breaking for poetry itself. ie we'll back either with pipelines temporarily broken while one but not the other is merged, or doing some more complicated dance of renames and releases to avoid that. Did I misunderstand? is that your intention? |
18b3ecc
to
6723772
Compare
I can't follow where it will be breaking for poetry itself. The only place in poetry where |
it's breaking in the following places:
|
I suppose these can be worked around with a some casts and |
2531b0d
to
aa235b8
Compare
Is it better? I dunno, it's different anyway |
On it's own it's just different but I hope it makes the transition transparent for plugin developers. Maybe, we should do the same for
|
08b1fce
to
e1ec6ae
Compare
sure |
68eaa17
to
8a0e573
Compare
…there (python-poetry#6616) Co-authored-by: Randy Döring <30527984+radoering@users.noreply.github.com>
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. |
Extended version of #6562, companion to python-poetry/poetry-core#483
Updates poetry to work with poetry-core after tomlkit is removed from there.