-
Notifications
You must be signed in to change notification settings - Fork 30
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 copyright headers along with Furo license #464
Conversation
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.
Left a few suggestions, possibly a bit pedantic but for legal wording I'd rather we take extra care
CONTRIBUTING.md
Outdated
{#- This file is vendored from Furo. When adding custom Qiskit code, surround it with | ||
`QISKIT CHANGE: start` and `QISKIT CHANGE: end` Jinja-style comments. -#} | ||
{#- | ||
This file is vendored from Furo by Pradyun Gedam, used under the MIT license. |
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.
should we put their github handle not just their name?
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 LICENSE uses their official name and never mentions their GitHub handle, so I think this is the safer bet.
@@ -1,3 +1,16 @@ | |||
/* This code is part of Qiskit. |
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 there has been some discussion recently about the statement that this code is part of Qiskit, and maybe it's better to say part of the Qiskit Ecosystem or something. I'm not sure what the decision was and I can't find where I saw the conversation. Maybe @1ucian0 can weigh in?
I'm happy to keep it as is for now so long as we update it to the correct format when we can.
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 are usually going with "This code is a Qiskit project", to distinguish it from the message that Qiskit has.
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.
LGTM 🚀
## Adds Furo license It's extra safe to do this because we vendor about 6 files from Furo. We use the prior art of Pytorch of including the license directly in `LICENSE` at the bottom. Pytorch is also an MIT license and we substantially vendored it, so it's a similar setup. ## Fixes LICENSE inclusion The switch to `pyproject.toml` accidentally changed us including the LICENSE file to instead have the text `Apache 2`. ## Adds copyright file headers We should have been doing this from the start because Qiskit projects are expected to put copyright headers on every file. This becomes especially useful if we more substantially vendor Furo code in Qiskit#463 to make clear what is what. All files that are originally written by Qiskit contributors use the standard Apache 2 license we already use in this project. Meanwhile, files that are vendored from Furo now use this standard notice: > This file is vendored from Furo (created by Pradyun Gedam) and used under the MIT license. Even though the MIT license does not require file headers, and Furo itself does not use it, it is a good practice to make clear what originally comes from Furo. ## Also renames `search_sidebar.html` This file is vendored from Furo, but we had it under `custom_templates/search_sidebar.html` rather than the original `sidebar/search.html`. This PR renames the file so that we more properly attribute Furo and the MIT license.
…467) ## Adds Furo license It's extra safe to do this because we vendor about 6 files from Furo. We use the prior art of Pytorch of including the license directly in `LICENSE` at the bottom. Pytorch is also an MIT license and we substantially vendored it, so it's a similar setup. ## Fixes LICENSE inclusion The switch to `pyproject.toml` accidentally changed us including the LICENSE file to instead have the text `Apache 2`. ## Adds copyright file headers We should have been doing this from the start because Qiskit projects are expected to put copyright headers on every file. This becomes especially useful if we more substantially vendor Furo code in #463 to make clear what is what. All files that are originally written by Qiskit contributors use the standard Apache 2 license we already use in this project. Meanwhile, files that are vendored from Furo now use this standard notice: > This file is vendored from Furo (created by Pradyun Gedam) and used under the MIT license. Even though the MIT license does not require file headers, and Furo itself does not use it, it is a good practice to make clear what originally comes from Furo. ## Also renames `search_sidebar.html` This file is vendored from Furo, but we had it under `custom_templates/search_sidebar.html` rather than the original `sidebar/search.html`. This PR renames the file so that we more properly attribute Furo and the MIT license.
Adds Furo license
It's extra safe to do this because we vendor about 6 files from Furo.
We use the prior art of Pytorch of including the license directly in
LICENSE
at the bottom. Pytorch is also an MIT license and we substantially vendored it, so it's a similar setup.Fixes LICENSE inclusion
The switch to
pyproject.toml
accidentally changed us including the LICENSE file to instead have the textApache 2
.Adds copyright file headers
We should have been doing this from the start because Qiskit projects are expected to put copyright headers on every file. This becomes especially useful if we more substantially vendor Furo code in #463 to make clear what is what.
All files that are originally written by Qiskit contributors use the standard Apache 2 license we already use in this project.
Meanwhile, files that are vendored from Furo now use this standard notice:
Even though the MIT license does not require file headers, and Furo itself does not use it, it is a good practice to make clear what originally comes from Furo.
Also renames
search_sidebar.html
This file is vendored from Furo, but we had it under
custom_templates/search_sidebar.html
rather than the originalsidebar/search.html
. This PR renames the file so that we more properly attribute Furo and the MIT license.