Merge pull request #3108 from DataTriny/dual_license

Dual-license PyO3 under Apache 2.0 or MIT
This commit is contained in:
David Hewitt 2023-08-15 23:06:06 +00:00 committed by GitHub
commit e6626de9fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 38 additions and 10 deletions

View File

@ -1,8 +1,6 @@
Thank you for contributing to PyO3! Thank you for contributing to PyO3!
By submitting these contributions you agree for them to be licensed under PyO3's [Apache-2.0 license](https://github.com/PyO3/pyo3#license). By submitting these contributions you agree for them to be dual-licensed under PyO3's [MIT OR Apache-2.0 license](https://github.com/PyO3/pyo3#license).
PyO3 is currently undergoing a relicensing process to match Rust's dual-license under `Apache-2.0` and `MIT` licenses. While that process is ongoing, if you are a first-time contributor please add your agreement as a comment in [#3108](https://github.com/PyO3/pyo3/pull/3108).
Please consider adding the following to your pull request: Please consider adding the following to your pull request:
- an entry for this PR in newsfragments - see [https://pyo3.rs/main/contributing.html#documenting-changes] - an entry for this PR in newsfragments - see [https://pyo3.rs/main/contributing.html#documenting-changes]

View File

@ -7,4 +7,6 @@ type: software
authors: authors:
- name: PyO3 Project and Contributors - name: PyO3 Project and Contributors
website: https://github.com/PyO3 website: https://github.com/PyO3
license: Apache-2.0 license:
- Apache-2.0
- MIT

View File

@ -9,7 +9,7 @@ homepage = "https://github.com/pyo3/pyo3"
repository = "https://github.com/pyo3/pyo3" repository = "https://github.com/pyo3/pyo3"
documentation = "https://docs.rs/crate/pyo3/" documentation = "https://docs.rs/crate/pyo3/"
categories = ["api-bindings", "development-tools::ffi"] categories = ["api-bindings", "development-tools::ffi"]
license = "Apache-2.0" license = "MIT OR Apache-2.0"
exclude = ["/.gitignore", ".cargo/config", "/codecov.yml", "/Makefile", "/pyproject.toml", "/noxfile.py", "/.github", "/tests/test_compile_error.rs", "/tests/ui"] exclude = ["/.gitignore", ".cargo/config", "/codecov.yml", "/Makefile", "/pyproject.toml", "/noxfile.py", "/.github", "/tests/test_compile_error.rs", "/tests/ui"]
edition = "2021" edition = "2021"
rust-version = "1.56" rust-version = "1.56"

25
LICENSE-MIT Normal file
View File

@ -0,0 +1,25 @@
Copyright (c) 2023-present PyO3 Project and Contributors. https://github.com/PyO3
Permission is hereby granted, free of charge, to any
person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the
Software without restriction, including without
limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software
is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice
shall be included in all copies or substantial portions
of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

View File

@ -248,8 +248,10 @@ If you don't have time to contribute yourself but still wish to support the proj
## License ## License
PyO3 is licensed under the [Apache-2.0 license](https://opensource.org/licenses/APACHE-2.0). (The PyO3 project is in the process of collecting permission from past contributors to additionally license under the [MIT license](https://opensource.org/license/mit/), see [#3108](https://github.com/PyO3/pyo3/pull/3108). Once complete, PyO3 will additionally be licensed under the MIT license, the same as the Rust language itself is both Apache and MIT licensed.) PyO3 is licensed under the [Apache-2.0 license](LICENSE-APACHE) or the [MIT license](LICENSE-MIT), at your option.
Python is licensed under the [Python License](https://docs.python.org/3/license.html). Python is licensed under the [Python License](https://docs.python.org/3/license.html).
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in PyO3 by you, as defined in the Apache License, shall be dual-licensed as above, without any additional terms or conditions.
<a href="https://www.netlify.com"> <img src="https://www.netlify.com/v3/img/components/netlify-color-accent.svg" alt="Deploys by Netlify" /> </a> <a href="https://www.netlify.com"> <img src="https://www.netlify.com/v3/img/components/netlify-color-accent.svg" alt="Deploys by Netlify" /> </a>

View File

@ -0,0 +1 @@
Dual-license PyO3 under either the Apache 2.0 OR the MIT license. This makes the project GPLv2 compatible.

View File

@ -7,7 +7,7 @@ keywords = ["pyo3", "python", "cpython", "ffi"]
homepage = "https://github.com/pyo3/pyo3" homepage = "https://github.com/pyo3/pyo3"
repository = "https://github.com/pyo3/pyo3" repository = "https://github.com/pyo3/pyo3"
categories = ["api-bindings", "development-tools::ffi"] categories = ["api-bindings", "development-tools::ffi"]
license = "Apache-2.0" license = "MIT OR Apache-2.0"
edition = "2021" edition = "2021"
[dependencies] [dependencies]

View File

@ -7,7 +7,7 @@ keywords = ["pyo3", "python", "cpython", "ffi"]
homepage = "https://github.com/pyo3/pyo3" homepage = "https://github.com/pyo3/pyo3"
repository = "https://github.com/pyo3/pyo3" repository = "https://github.com/pyo3/pyo3"
categories = ["api-bindings", "development-tools::ffi"] categories = ["api-bindings", "development-tools::ffi"]
license = "Apache-2.0" license = "MIT OR Apache-2.0"
edition = "2021" edition = "2021"
links = "python" links = "python"

View File

@ -7,7 +7,7 @@ keywords = ["pyo3", "python", "cpython", "ffi"]
homepage = "https://github.com/pyo3/pyo3" homepage = "https://github.com/pyo3/pyo3"
repository = "https://github.com/pyo3/pyo3" repository = "https://github.com/pyo3/pyo3"
categories = ["api-bindings", "development-tools::ffi"] categories = ["api-bindings", "development-tools::ffi"]
license = "Apache-2.0" license = "MIT OR Apache-2.0"
edition = "2021" edition = "2021"
# Note: we use default-features = false for proc-macro related crates # Note: we use default-features = false for proc-macro related crates

View File

@ -7,7 +7,7 @@ keywords = ["pyo3", "python", "cpython", "ffi"]
homepage = "https://github.com/pyo3/pyo3" homepage = "https://github.com/pyo3/pyo3"
repository = "https://github.com/pyo3/pyo3" repository = "https://github.com/pyo3/pyo3"
categories = ["api-bindings", "development-tools::ffi"] categories = ["api-bindings", "development-tools::ffi"]
license = "Apache-2.0" license = "MIT OR Apache-2.0"
edition = "2021" edition = "2021"
[lib] [lib]