Dual-license

This commit is contained in:
DataTriny 2023-04-15 20:01:31 +02:00
parent 1a64eb01d7
commit 3c3e9401a3
9 changed files with 34 additions and 7 deletions

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"

23
LICENSE-MIT Normal file
View File

@ -0,0 +1,23 @@
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

@ -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]