-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Support placeholders for years in copyright #12910
Support placeholders for years in copyright #12910
Conversation
# Conflicts: # sphinx/config.py
@@ -27,7 +26,7 @@ | |||
exclude_patterns = ['_build'] | |||
|
|||
project = 'Sphinx' | |||
copyright = f'2007-{time.strftime("%Y")}, the Sphinx developers' | |||
copyright = '2007-%Y, the Sphinx developers' |
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.
Although I think we should support this templating for other projects, I have a strong preference for using constant/static copyright notices where possible (although I fully admit that adding supporting tooling to detect cases where they're out-of-date could be useful).
Given that, and the fact that we update most of the copyright notices throughout the codebase manually each year, I wonder whether we should do the same here.
copyright = '2007-%Y, the Sphinx developers' | |
copyright = '2007-2024, the Sphinx developers' |
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.
Generally looks great to me, thank you again @AA-Turner!
This is a sketch of what I propose in #12519 (comment) (cc @jayaddison)
It would need tests and docs (and ideally a deprecation plan) to be merged. Opening as a starter for ten, though.
A