Skip to content
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

Merged
merged 5 commits into from
Jul 6, 2023

Conversation

Eric-Arellano
Copy link
Collaborator

@Eric-Arellano Eric-Arellano commented Jul 6, 2023

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.

@Eric-Arellano Eric-Arellano changed the title Add copyright headers to all relevant files Add copyright headers along with Furo license Jul 6, 2023
Copy link
Collaborator

@javabster javabster left a 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.
Copy link
Collaborator

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?

Copy link
Collaborator Author

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.

src/qiskit_sphinx_theme/assets/scripts/gumshoe-patched.js Outdated Show resolved Hide resolved
@@ -1,3 +1,16 @@
/* This code is part of Qiskit.
Copy link
Collaborator

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.

Copy link
Member

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.

Copy link
Collaborator

@javabster javabster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@Eric-Arellano Eric-Arellano merged commit b0cb1aa into Qiskit:main Jul 6, 2023
@Eric-Arellano Eric-Arellano deleted the add-copyright branch July 6, 2023 20:31
Eric-Arellano added a commit to Eric-Arellano/qiskit_sphinx_theme that referenced this pull request Jul 6, 2023
## 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.
Eric-Arellano added a commit that referenced this pull request Jul 6, 2023
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants