Rename repository modules#6803
Rename repository modules#6803radoering merged 6 commits intopython-poetry:masterfrom b-kamphorst:rename-repository-modules
Conversation
|
@neersighted let's make this fly. For now, I've added You also mentioned the desire for a Looking forward to your thoughts. |
radoering
left a comment
There was a problem hiding this comment.
I propose to divide the rename and the deprecation into two commits as done in python-poetry/poetry-core#482. That way, it's easier to follow changes in git history and doing rebases of PRs changing code in one of the renamed modules.
|
And it simplifies the review. 😉 |
Done! |
radoering
left a comment
There was a problem hiding this comment.
Is there a reason for not having a deprecation warning for cached? (And for the exclamation mark in the commit message. refactor!: rename cached to cached_repository?)
As for the wording of the deprecation warning (if we want to add a "scheduled for removal notice" and if it will be 1.4), I'll leave that decision to @neersighted. Afaik we don't have a schedule yet for how long we keep deprecated code.
Not really -- I hoped that this was used only internally and therefore we may not have to remain compatible. But that was just guessing so I'll change it (probably tomorrow). I guess in general with Python it is not quite clear what the API is -- harder to know what you can change without issues to others.
If this is part of the public API, I'd expect deprecation in a major release. But I'm not sure how the poetry team applies versioning. We can leave it open but I think it is nice to at some point (timely) inform users when it is completely removed. Looking forward to your suggestions. |
|
@radoering, I've added the deprecation warning for |
radoering
left a comment
There was a problem hiding this comment.
We decided that the deprecation warnings are fine as they are. I just noticed a test that seems to be duplicated (see separate comment). Apart from that I think this PR is ready to merge.
|
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. |
Relates-to: #3155
Follow-up of #6669 regarding the proposed renaming of modules in
poetry/repositories.A subsequent PR for poetry-plugin-export is in preparation: python-poetry/poetry-plugin-export#151.