-
-
Notifications
You must be signed in to change notification settings - Fork 962
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 deprecation policy #1857
Add deprecation policy #1857
Conversation
Thanks @Kludex. I think my main suggestion here would be to highlight that we use SEMVER, and then to clarify what that means in the context of python versions, pre-1.0, and deprecation warnings. The bits which I think are obviously what we want here are then...
Less obvious to me is exactly what we would like wrt. warnings. Possibly the least confusing wrt. to SEMVER, would be...
That last one is not quite what we've talked about in the past, but actually I think it'd align more simply? |
I don't think this statement is a consensus on the Python community. Packages like
Sure. Also, I've been thinking... Maybe we can agree to not remove code that is deprecated before we are ready to 1.0 i.e. when we are about to release 1.0 we remove all code with warnings. What do you think? 🤔 |
I've applied comments, and applied what the policy states on all warning statements. |
The format of the message should follow: | ||
|
||
> *`code` is deprecated and will be removed in version `version`.* |
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.
From meeting: let's add info about when we add warnings.
|
||
### Feature Deprecation | ||
|
||
Starlette will deprecate a feature in the next minor release after the feature is marked as deprecated. |
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.
This is the "when". Should the wording be changed? @adriangb
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 think this is saying when we will deprecate the feature, the question was when do we put in deprecation warnings. Can users expect deprecation warnings to show up at any time, only in minor releases or only in major releases?
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.
The act of deprecating a feature is adding a deprecation warning. At least, this is how I understand.
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.
How about:
Starlette will deprecate a feature in the next minor release after the feature is marked as deprecated. | |
Starlette will deprecate (completely remove or break) a feature in the next major release after the feature is marked as deprecated (via a deprecation warning). Features can be marked as deprecated in any minor release. |
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'll apply something on that line.
|
@tomchristie Should we present the deprecation policy as this PR proposes, or should we also include the versioning policy we aim to follow, and maybe discuss the branch strategy?
I'm mentioning the branch strategy in case we want to backport security patches to previous major versions.
In any case, what do you think about this PR?