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 (Cherry-pick of #464) #467

Merged
merged 1 commit into from
Jul 6, 2023

Conversation

Eric-Arellano
Copy link
Collaborator

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 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 Eric-Arellano merged commit 8f95463 into Qiskit:1.13 Jul 6, 2023
@Eric-Arellano Eric-Arellano deleted the cp-copyright branch July 6, 2023 20:40
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.

1 participant