-
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
Rename repository modules #6803
Rename repository modules #6803
Conversation
@neersighted let's make this fly. For now, I've added You also mentioned the desire for a Looking forward to your thoughts. |
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 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! |
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.
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 |
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.
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.