From d7d177729476af8ec1463d8957a35092a336098a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kat=20March=C3=A1n?= <kzm@zkat.tech>
Date: Wed, 15 Sep 2021 20:52:53 -0700
Subject: [PATCH] feat(license): change license to Apache-2.0

BREAKING CHANGE: This is a significant licensing change. Please review.
---
 Cargo.toml        |  4 +--
 LICENSE-APACHE.md | 13 ---------
 LICENSE-PARITY.md | 69 -----------------------------------------------
 LICENSE-PATRON.md | 63 -------------------------------------------
 LICENSE.md        | 14 +++++++---
 README.md         |  7 +----
 6 files changed, 13 insertions(+), 157 deletions(-)
 delete mode 100644 LICENSE-APACHE.md
 delete mode 100644 LICENSE-PARITY.md
 delete mode 100644 LICENSE-PATRON.md

diff --git a/Cargo.toml b/Cargo.toml
index 041da23..85f7e13 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -4,7 +4,7 @@ version = "0.6.0"
 authors = ["Kat Marchán <kzm@zkat.tech>"]
 edition = "2018"
 description = "Rusty Utility AI library"
-license-file = "LICENSE.md"
+license = "Apache-2.0"
 readme = "README.md"
 keywords = ["utility-ai", "bevy", "ai", "ecs"]
 categories = ["game-development"]
@@ -15,4 +15,4 @@ homepage = "https://github.com/zkat/big-brain"
 bevy = { version = "0.5.0", default-features = false }
 
 [dev-dependencies]
-bevy = { version = "0.5.0", default-features = true }
\ No newline at end of file
+bevy = { version = "0.5.0", default-features = true }
diff --git a/LICENSE-APACHE.md b/LICENSE-APACHE.md
deleted file mode 100644
index ac593c2..0000000
--- a/LICENSE-APACHE.md
+++ /dev/null
@@ -1,13 +0,0 @@
-Copyright 2020 big-brain Contributors
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
diff --git a/LICENSE-PARITY.md b/LICENSE-PARITY.md
deleted file mode 100644
index 69b7315..0000000
--- a/LICENSE-PARITY.md
+++ /dev/null
@@ -1,69 +0,0 @@
-# The Parity Public License 7.0.0
-
-Contributor: Kat Marchán <kzm@zkat.tech>
-
-## Purpose
-
-This license allows you to use and share this software for free, but you have to share software that builds on it alike.
-
-## Agreement
-
-In order to receive this license, you have to agree to its rules. Those rules are both obligations under that agreement and conditions to your license. Don't do anything with this software that triggers a rule you can't or won't follow.
-
-## Notices
-
-Make sure everyone who gets a copy of any part of this software from you, with or without changes, also gets the text of this license and the contributor and source code lines above.
-
-## Copyleft
-
-[Contribute](#contribute) software you develop, operate, or analyze with this software, including changes or additions to this software. When in doubt, [contribute](#contribute).
-
-## Prototypes
-
-You don't have to [contribute](#contribute) any change, addition, or other software that meets all these criteria:
-
-1.  You don't use it for more than thirty days.
-
-2.  You don't share it outside the team developing it, other than for non-production user testing.
-
-3.  You don't develop, operate, or analyze other software with it for anyone outside the team developing it.
-
-## Reverse Engineering
-
-You may use this software to operate and analyze software you can't [contribute](#contribute) in order to develop alternatives you can and do [contribute](#contribute).
-
-## Contribute
-
-To [contribute](#contribute) software:
-
-1.  Publish all source code for the software in the preferred form for making changes through a freely accessible distribution system widely used for similar source code so the contributor and others can find and copy it.
-
-2.  Make sure every part of the source code is available under this license or another license that allows everything this license does, such as [the Blue Oak Model License 1.0.0](https://blueoakcouncil.org/license/1.0.0), [the Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0.html), [the MIT license](https://spdx.org/licenses/MIT.html), or [the two-clause BSD license](https://spdx.org/licenses/BSD-2-Clause.html).
-
-3.  Take these steps within thirty days.
-
-4.  Note that this license does _not_ allow you to change the license terms for this software. You must follow [Notices](#notices).
-
-## Excuse
-
-You're excused for unknowingly breaking [Copyleft](#copyleft) if you [contribute](#contribute) as required, or stop doing anything requiring this license, within thirty days of learning you broke the rule. You're excused for unknowingly breaking [Notices](#notices) if you take all practical steps to comply within thirty days of learning you broke the rule.
-
-## Defense
-
-Don't make any legal claim against anyone accusing this software, with or without changes, alone or with other technology, of infringing any patent.
-
-## Copyright
-
-The contributor licenses you to do everything with this software that would otherwise infringe their copyright in it.
-
-## Patent
-
-The contributor licenses you to do everything with this software that would otherwise infringe any patents they can license or become able to license.
-
-## Reliability
-
-The contributor can't revoke this license.
-
-## No Liability
-
-**_As far as the law allows, this software comes as is, without any warranty or condition, and the contributor won't be liable to anyone for any damages related to this software or this license, under any kind of legal claim._**
diff --git a/LICENSE-PATRON.md b/LICENSE-PATRON.md
deleted file mode 100644
index 3e426dd..0000000
--- a/LICENSE-PATRON.md
+++ /dev/null
@@ -1,63 +0,0 @@
-# Patron License
-
-Payment Platforms:
-
-- <https://github.com/sponsors/zkat>
-
-Participating Contributors:
-
-- Kat Marchán
-
-## Purpose
-
-This license gives everyone patronizing contributors to this software permission to ignore any noncommercial or copyleft rules of its free public license, while continuing to protect contributors from liability.
-
-## Acceptance
-
-In order to agree to these terms and receive a license, you must qualify under [Patrons](#patrons). The rules of these terms are both obligations under your agreement and conditions to your license. That agreement and your license continue only while you qualify as a patron. You must not do anything with this software that triggers a rule that you cannot or will not follow.
-
-## Patrons
-
-To accept these terms, you must be enrolled to make regular payments through any of the payment platforms pages listed above, in amounts qualifying you for a tier that includes a "patron license" or otherwise identifies a license under these terms as a reward.
-
-## Scope
-
-Except under [Seat](#seat) and [Applications](#applications), you may not sublicense or transfer any agreement or license under these terms to anyone else.
-
-## Seat
-
-If a legal entity, rather than an individual, accepts these terms, the entity may sublicense one individual employee or independent contractor at any given time. If the employee or contractor breaks any rule of these terms, the entity will stand directly responsible.
-
-## Applications
-
-If you combine this software with other software in a larger application, you may sublicense this software as part of your larger application, and allow further sublicensing in turn, under these rules:
-
-1. Your larger application must have significant additional content or functionality beyond that of this software, and end users must license your larger application primarily for that added content or functionality.
-
-2. You may not sublicense anyone to break any rule of the public license for this software for any changes of their own or any software besides your larger application.
-
-3. You may build, and sublicense for, as many larger applications as you like.
-
-## Copyright
-
-Each contributor licenses you to do everything with this software that would otherwise infringe that contributor's copyright in it.
-
-## Notices
-
-You must ensure that everyone who gets a copy of any part of this software from you, with or without changes, also gets the texts of both this license and the free public license for this software.
-
-## Excuse
-
-If anyone notifies you in writing that you have not complied with [Notices](#notices), you can keep your agreement and your license by taking all practical steps to comply within 30 days after the notice. If you do not do so, your agreement under these terms ends immediately, and your license ends with it.
-
-## Patent
-
-Each contributor licenses you to do everything with this software that would otherwise infringe any patent claims they can license or become able to license.
-
-## Reliability
-
-No contributor can revoke this license, but your license may end if you break any rule of these terms.
-
-## No Liability
-
-**_As far as the law allows, this software comes as is, without any warranty or condition, and no contributor will be liable to anyone for any damages related to this software or this license, under any kind of legal claim._**
diff --git a/LICENSE.md b/LICENSE.md
index 2a38f8c..ac593c2 100644
--- a/LICENSE.md
+++ b/LICENSE.md
@@ -1,7 +1,13 @@
-Copyright 2020 Kat Marchán and Contributors
+Copyright 2020 big-brain Contributors
 
-This project is licensed under [the Parity License](LICENSE-PARITY.md). Third-party contributions are licensed under [Apache-2.0](LICENSE-APACHE.md) and belong to their respective authors.
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
 
-The Parity License is a copyleft license that, unlike the GPL family, allows you to license derivative and connected works under permissive licenses like MIT or Apache-2.0. It's free to use provided the work you do is freely available!
+     http://www.apache.org/licenses/LICENSE-2.0
 
-For proprietary use, please [contact me](mailto:kzm@zkat.tech?subject=big-brain%20license), or just [sponsor me on GitHub](https://github.com/users/zkat/sponsorship) under the appropriate tier to [acquire a proprietary-use license](LICENSE-PATRON.md)! This funding model helps me make my work sustainable and compensates me for the work it took to write this crate!
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
diff --git a/README.md b/README.md
index 5b54ac4..676a5d5 100644
--- a/README.md
+++ b/README.md
@@ -141,9 +141,4 @@ cmd.spawn().insert(Thirst::new(70.0, 2.0)).insert(
 
 ### License
 
-This project is licensed under [the Parity License](LICENSE.md). Third-party contributions are licensed under Apache-2.0 and belong to their respective authors.
-
-The Parity License is a copyleft license that, unlike the GPL family, allows you to license derivative and connected works under permissive licenses like MIT or Apache-2.0. It's free to use provided the work you do is freely available!
-
-For proprietary use, please [contact me](mailto:kzm@zkat.tech?subject=big-brain%20license), or just [sponsor me on GitHub](https://github.com/users/zkat/sponsorship) under the appropriate tier to [acquire a proprietary-use license](LICENSE-PATRON.md)! This funding model helps me make my work sustainable and compensates me for the work it took to write this crate!
-
+This project is licensed under [the Apache-2.0 License](LICENSE.md).
-- 
GitLab