From be1ec833e113d8a5cb2a4a40c79abd7402206674 Mon Sep 17 00:00:00 2001 From: Jack Steam Date: Tue, 10 Nov 2026 17:40:54 -0600 Subject: [PATCH] chore: license first-party Astrology Engine code under MIT --- Cargo.toml | 2 +- LICENSE | 394 +---------------- NOTICE | 10 +- README.md | 8 +- THIRD_PARTY_NOTICES.md | 2 +- examples/birth_and_design.rs | 2 +- examples/cloudflare-worker/Cargo.toml | 2 +- examples/cloudflare-worker/build.ts | 2 +- examples/cloudflare-worker/package.json | 2 +- examples/cloudflare-worker/src/lib.rs | 2 +- .../cloudflare-worker/src/verification.rs | 2 +- examples/cloudflare-worker/verify.mjs | 2 +- examples/configurable-chart/build-wasm.ts | 2 +- examples/configurable-chart/main.ts | 2 +- examples/configurable-chart/package.json | 2 +- .../verify-fagan-bradley.ts | 2 +- examples/configurable-chart/verify.ts | 2 +- examples/configurable-chart/vite.config.ts | 2 +- examples/configurable-chart/wasm/Cargo.toml | 2 +- examples/configurable-chart/wasm/src/lib.rs | 2 +- examples/dataset_coverage.rs | 2 +- examples/natal_chart.rs | 2 +- notices/browser.txt | 398 +----------------- notices/builder.txt | 398 +----------------- notices/inventory.json | 44 +- notices/runtime.txt | 398 +----------------- notices/worker.txt | 398 +----------------- src/astro/find_moment.rs | 2 +- src/astro/frames.rs | 2 +- src/astro/houses.rs | 2 +- src/astro/mod.rs | 2 +- src/astro/time.rs | 2 +- src/astro/vec.rs | 2 +- src/chart.rs | 2 +- src/cheb/chart.rs | 2 +- src/cheb/eval.rs | 2 +- src/cheb/fit.rs | 2 +- src/cheb/format.rs | 2 +- src/cheb/mod.rs | 2 +- src/conventions.rs | 2 +- src/coverage_window.rs | 2 +- src/lib.rs | 2 +- src/search.rs | 2 +- src/sidereal.rs | 2 +- src/types.rs | 2 +- tests/blob_format.rs | 2 +- tests/conventions.rs | 2 +- tests/earth_projection.rs | 2 +- tests/fagan_bradley_legacy.rs | 2 +- tests/frame_reference.rs | 2 +- tests/sidereal.rs | 2 +- tools/ci/changes.test.ts | 2 +- tools/ci/changes.ts | 2 +- tools/ci/download.test.ts | 2 +- tools/ci/download.ts | 2 +- tools/ci/gate.ts | 2 +- tools/ci/setup.ts | 2 +- tools/dataset-builder/Cargo.toml | 2 +- tools/dataset-builder/src/astro/apparent.rs | 2 +- tools/dataset-builder/src/astro/mod.rs | 2 +- tools/dataset-builder/src/astro/node.rs | 2 +- tools/dataset-builder/src/astro/provider.rs | 2 +- tools/dataset-builder/src/cheb/fit.rs | 2 +- tools/dataset-builder/src/cheb/gen.rs | 2 +- tools/dataset-builder/src/cheb/mod.rs | 2 +- tools/dataset-builder/src/kernel/daf_index.rs | 2 +- tools/dataset-builder/src/kernel/mod.rs | 2 +- tools/dataset-builder/src/kernel/store.rs | 2 +- tools/dataset-builder/src/lib.rs | 2 +- tools/dataset-builder/src/main.rs | 2 +- tools/jpl/cheby_fit.py | 2 +- tools/jpl/fit_gate.py | 2 +- tools/jpl/horizons.py | 2 +- tools/jpl/spk_writer.py | 2 +- tools/jpl/validate.py | 2 +- tools/notices/README.md | 6 +- tools/notices/about.toml | 10 +- tools/notices/collect.ts | 6 +- tools/notices/core.ts | 4 +- tools/notices/notices.test.ts | 10 +- tools/notices/notices.ts | 2 +- tools/regenerate.py | 2 +- tools/verification/check_boundaries.py | 2 +- tools/verification/check_prohibited_usage.py | 2 +- tools/verification/common/mod.rs | 2 +- tools/verification/compare.py | 2 +- tools/verification/parity.py | 2 +- tools/verification/structural.rs | 2 +- tools/verification/test_acquisition.py | 2 +- tools/verification/test_chart_migration.py | 2 +- tools/verification/test_compare.py | 2 +- tools/verification/test_generation.py | 2 +- tools/verification/test_prohibited_usage.py | 2 +- 93 files changed, 232 insertions(+), 2012 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 886cc80..37a5ec2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "astrology-engine" version = "0.1.0" edition = "2021" rust-version = "1.96" -license = "MPL-2.0" +license = "MIT" publish = false description = "Immutable Chebyshev ephemeris evaluation and chart calculations" include = ["/src/**", "/Cargo.toml", "/Cargo.lock", "/LICENSE", "/NOTICE", "/THIRD_PARTY_NOTICES.md", "/notices/**", "/README.md", "/data/manifest.json"] diff --git a/LICENSE b/LICENSE index d0a1fa1..e7a4799 100644 --- a/LICENSE +++ b/LICENSE @@ -1,373 +1,21 @@ -Mozilla Public License Version 2.0 -================================== - -1. Definitions --------------- - -1.1. "Contributor" - means each individual or legal entity that creates, contributes to - the creation of, or owns Covered Software. - -1.2. "Contributor Version" - means the combination of the Contributions of others (if any) used - by a Contributor and that particular Contributor's Contribution. - -1.3. "Contribution" - means Covered Software of a particular Contributor. - -1.4. "Covered Software" - means Source Code Form to which the initial Contributor has attached - the notice in Exhibit A, the Executable Form of such Source Code - Form, and Modifications of such Source Code Form, in each case - including portions thereof. - -1.5. "Incompatible With Secondary Licenses" - means - - (a) that the initial Contributor has attached the notice described - in Exhibit B to the Covered Software; or - - (b) that the Covered Software was made available under the terms of - version 1.1 or earlier of the License, but not also under the - terms of a Secondary License. - -1.6. "Executable Form" - means any form of the work other than Source Code Form. - -1.7. "Larger Work" - means a work that combines Covered Software with other material, in - a separate file or files, that is not Covered Software. - -1.8. "License" - means this document. - -1.9. "Licensable" - means having the right to grant, to the maximum extent possible, - whether at the time of the initial grant or subsequently, any and - all of the rights conveyed by this License. - -1.10. "Modifications" - means any of the following: - - (a) any file in Source Code Form that results from an addition to, - deletion from, or modification of the contents of Covered - Software; or - - (b) any new file in Source Code Form that contains any Covered - Software. - -1.11. "Patent Claims" of a Contributor - means any patent claim(s), including without limitation, method, - process, and apparatus claims, in any patent Licensable by such - Contributor that would be infringed, but for the grant of the - License, by the making, using, selling, offering for sale, having - made, import, or transfer of either its Contributions or its - Contributor Version. - -1.12. "Secondary License" - means either the GNU General Public License, Version 2.0, the GNU - Lesser General Public License, Version 2.1, the GNU Affero General - Public License, Version 3.0, or any later versions of those - licenses. - -1.13. "Source Code Form" - means the form of the work preferred for making modifications. - -1.14. "You" (or "Your") - means an individual or a legal entity exercising rights under this - License. For legal entities, "You" includes any entity that - controls, is controlled by, or is under common control with You. For - purposes of this definition, "control" means (a) the power, direct - or indirect, to cause the direction or management of such entity, - whether by contract or otherwise, or (b) ownership of more than - fifty percent (50%) of the outstanding shares or beneficial - ownership of such entity. - -2. License Grants and Conditions --------------------------------- - -2.1. Grants - -Each Contributor hereby grants You a world-wide, royalty-free, -non-exclusive license: - -(a) under intellectual property rights (other than patent or trademark) - Licensable by such Contributor to use, reproduce, make available, - modify, display, perform, distribute, and otherwise exploit its - Contributions, either on an unmodified basis, with Modifications, or - as part of a Larger Work; and - -(b) under Patent Claims of such Contributor to make, use, sell, offer - for sale, have made, import, and otherwise transfer either its - Contributions or its Contributor Version. - -2.2. Effective Date - -The licenses granted in Section 2.1 with respect to any Contribution -become effective for each Contribution on the date the Contributor first -distributes such Contribution. - -2.3. Limitations on Grant Scope - -The licenses granted in this Section 2 are the only rights granted under -this License. No additional rights or licenses will be implied from the -distribution or licensing of Covered Software under this License. -Notwithstanding Section 2.1(b) above, no patent license is granted by a -Contributor: - -(a) for any code that a Contributor has removed from Covered Software; - or - -(b) for infringements caused by: (i) Your and any other third party's - modifications of Covered Software, or (ii) the combination of its - Contributions with other software (except as part of its Contributor - Version); or - -(c) under Patent Claims infringed by Covered Software in the absence of - its Contributions. - -This License does not grant any rights in the trademarks, service marks, -or logos of any Contributor (except as may be necessary to comply with -the notice requirements in Section 3.4). - -2.4. Subsequent Licenses - -No Contributor makes additional grants as a result of Your choice to -distribute the Covered Software under a subsequent version of this -License (see Section 10.2) or under the terms of a Secondary License (if -permitted under the terms of Section 3.3). - -2.5. Representation - -Each Contributor represents that the Contributor believes its -Contributions are its original creation(s) or it has sufficient rights -to grant the rights to its Contributions conveyed by this License. - -2.6. Fair Use - -This License is not intended to limit any rights You have under -applicable copyright doctrines of fair use, fair dealing, or other -equivalents. - -2.7. Conditions - -Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted -in Section 2.1. - -3. Responsibilities -------------------- - -3.1. Distribution of Source Form - -All distribution of Covered Software in Source Code Form, including any -Modifications that You create or to which You contribute, must be under -the terms of this License. You must inform recipients that the Source -Code Form of the Covered Software is governed by the terms of this -License, and how they can obtain a copy of this License. You may not -attempt to alter or restrict the recipients' rights in the Source Code -Form. - -3.2. Distribution of Executable Form - -If You distribute Covered Software in Executable Form then: - -(a) such Covered Software must also be made available in Source Code - Form, as described in Section 3.1, and You must inform recipients of - the Executable Form how they can obtain a copy of such Source Code - Form by reasonable means in a timely manner, at a charge no more - than the cost of distribution to the recipient; and - -(b) You may distribute such Executable Form under the terms of this - License, or sublicense it under different terms, provided that the - license for the Executable Form does not attempt to limit or alter - the recipients' rights in the Source Code Form under this License. - -3.3. Distribution of a Larger Work - -You may create and distribute a Larger Work under terms of Your choice, -provided that You also comply with the requirements of this License for -the Covered Software. If the Larger Work is a combination of Covered -Software with a work governed by one or more Secondary Licenses, and the -Covered Software is not Incompatible With Secondary Licenses, this -License permits You to additionally distribute such Covered Software -under the terms of such Secondary License(s), so that the recipient of -the Larger Work may, at their option, further distribute the Covered -Software under the terms of either this License or such Secondary -License(s). - -3.4. Notices - -You may not remove or alter the substance of any license notices -(including copyright notices, patent notices, disclaimers of warranty, -or limitations of liability) contained within the Source Code Form of -the Covered Software, except that You may alter any license notices to -the extent required to remedy known factual inaccuracies. - -3.5. Application of Additional Terms - -You may choose to offer, and to charge a fee for, warranty, support, -indemnity or liability obligations to one or more recipients of Covered -Software. However, You may do so only on Your own behalf, and not on -behalf of any Contributor. You must make it absolutely clear that any -such warranty, support, indemnity, or liability obligation is offered by -You alone, and You hereby agree to indemnify every Contributor for any -liability incurred by such Contributor as a result of warranty, support, -indemnity or liability terms You offer. You may include additional -disclaimers of warranty and limitations of liability specific to any -jurisdiction. - -4. Inability to Comply Due to Statute or Regulation ---------------------------------------------------- - -If it is impossible for You to comply with any of the terms of this -License with respect to some or all of the Covered Software due to -statute, judicial order, or regulation then You must: (a) comply with -the terms of this License to the maximum extent possible; and (b) -describe the limitations and the code they affect. Such description must -be placed in a text file included with all distributions of the Covered -Software under this License. Except to the extent prohibited by statute -or regulation, such description must be sufficiently detailed for a -recipient of ordinary skill to be able to understand it. - -5. Termination --------------- - -5.1. The rights granted under this License will terminate automatically -if You fail to comply with any of its terms. However, if You become -compliant, then the rights granted under this License from a particular -Contributor are reinstated (a) provisionally, unless and until such -Contributor explicitly and finally terminates Your grants, and (b) on an -ongoing basis, if such Contributor fails to notify You of the -non-compliance by some reasonable means prior to 60 days after You have -come back into compliance. Moreover, Your grants from a particular -Contributor are reinstated on an ongoing basis if such Contributor -notifies You of the non-compliance by some reasonable means, this is the -first time You have received notice of non-compliance with this License -from such Contributor, and You become compliant prior to 30 days after -Your receipt of the notice. - -5.2. If You initiate litigation against any entity by asserting a patent -infringement claim (excluding declaratory judgment actions, -counter-claims, and cross-claims) alleging that a Contributor Version -directly or indirectly infringes any patent, then the rights granted to -You by any and all Contributors for the Covered Software under Section -2.1 of this License shall terminate. - -5.3. In the event of termination under Sections 5.1 or 5.2 above, all -end user license agreements (excluding distributors and resellers) which -have been validly granted by You or Your distributors under this License -prior to termination shall survive termination. - -************************************************************************ -* * -* 6. Disclaimer of Warranty * -* ------------------------- * -* * -* Covered Software is provided under this License on an "as is" * -* basis, without warranty of any kind, either expressed, implied, or * -* statutory, including, without limitation, warranties that the * -* Covered Software is free of defects, merchantable, fit for a * -* particular purpose or non-infringing. The entire risk as to the * -* quality and performance of the Covered Software is with You. * -* Should any Covered Software prove defective in any respect, You * -* (not any Contributor) assume the cost of any necessary servicing, * -* repair, or correction. This disclaimer of warranty constitutes an * -* essential part of this License. No use of any Covered Software is * -* authorized under this License except under this disclaimer. * -* * -************************************************************************ - -************************************************************************ -* * -* 7. Limitation of Liability * -* -------------------------- * -* * -* Under no circumstances and under no legal theory, whether tort * -* (including negligence), contract, or otherwise, shall any * -* Contributor, or anyone who distributes Covered Software as * -* permitted above, be liable to You for any direct, indirect, * -* special, incidental, or consequential damages of any character * -* including, without limitation, damages for lost profits, loss of * -* goodwill, work stoppage, computer failure or malfunction, or any * -* and all other commercial damages or losses, even if such party * -* shall have been informed of the possibility of such damages. This * -* limitation of liability shall not apply to liability for death or * -* personal injury resulting from such party's negligence to the * -* extent applicable law prohibits such limitation. Some * -* jurisdictions do not allow the exclusion or limitation of * -* incidental or consequential damages, so this exclusion and * -* limitation may not apply to You. * -* * -************************************************************************ - -8. Litigation -------------- - -Any litigation relating to this License may be brought only in the -courts of a jurisdiction where the defendant maintains its principal -place of business and such litigation shall be governed by laws of that -jurisdiction, without reference to its conflict-of-law provisions. -Nothing in this Section shall prevent a party's ability to bring -cross-claims or counter-claims. - -9. Miscellaneous ----------------- - -This License represents the complete agreement concerning the subject -matter hereof. If any provision of this License is held to be -unenforceable, such provision shall be reformed only to the extent -necessary to make it enforceable. Any law or regulation which provides -that the language of a contract shall be construed against the drafter -shall not be used to construe this License against a Contributor. - -10. Versions of the License ---------------------------- - -10.1. New Versions - -Mozilla Foundation is the license steward. Except as provided in Section -10.3, no one other than the license steward has the right to modify or -publish new versions of this License. Each version will be given a -distinguishing version number. - -10.2. Effect of New Versions - -You may distribute the Covered Software under the terms of the version -of the License under which You originally received the Covered Software, -or under the terms of any subsequent version published by the license -steward. - -10.3. Modified Versions - -If you create software not governed by this License, and you want to -create a new license for such software, you may create and use a -modified version of this License if you rename the license and remove -any references to the name of the license steward (except to note that -such modified license differs from this License). - -10.4. Distributing Source Code Form that is Incompatible With Secondary -Licenses - -If You choose to distribute Source Code Form that is Incompatible With -Secondary Licenses under the terms of this version of the License, the -notice described in Exhibit B of this License must be attached. - -Exhibit A - Source Code Form License Notice -------------------------------------------- - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at https://mozilla.org/MPL/2.0/. - -If it is not possible or desirable to put the notice in a particular -file, then You may include the notice in a location (such as a LICENSE -file in a relevant directory) where a recipient would be likely to look -for such a notice. - -You may add additional accurate notices of copyright ownership. - -Exhibit B - "Incompatible With Secondary Licenses" Notice ---------------------------------------------------------- - - This Source Code Form is "Incompatible With Secondary Licenses", as - defined by the Mozilla Public License, v. 2.0. +MIT License + +Copyright (c) Jack Asher + +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. diff --git a/NOTICE b/NOTICE index 9046aab..a22dc47 100644 --- a/NOTICE +++ b/NOTICE @@ -1,10 +1,6 @@ Astrology Engine Copyright (c) Jack Asher -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. - -This notice applies to the original project source, tools, and example -adapters. Third-party code and data retain their existing terms; see -THIRD_PARTY_NOTICES.md. +Original project source, tools, and example adapters are licensed under the +MIT License; see LICENSE. Third-party code and data retain their existing +terms; see THIRD_PARTY_NOTICES.md. diff --git a/README.md b/README.md index 33b6c3c..04c7fc8 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ The complete source is [`examples/natal_chart.rs`](examples/natal_chart.rs): ```rust // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT use astrology_engine::{ calculate_chart, ChartInput, Ephemeris, Epoch, HouseSystem, Location, SignDivisions, @@ -134,9 +134,9 @@ these checks do not establish independent astronomical accuracy. ## License and distribution -Astrology Engine is licensed under MPL-2.0; see [LICENSE](LICENSE) and -[NOTICE](NOTICE). Distributed changes to covered source files remain under MPL. -Separate applications can use their own licenses. Built distributions include +Astrology Engine is licensed under MIT; see [LICENSE](LICENSE) and +[NOTICE](NOTICE). Third-party components retain their own licenses. +MPL dependencies do not change the MIT license of separately written project files. Built distributions include the first-party source archive and a notices page linking to it. Dependencies retain their own terms; see [third-party notices](THIRD_PARTY_NOTICES.md) and the diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md index 6463223..2749037 100644 --- a/THIRD_PARTY_NOTICES.md +++ b/THIRD_PARTY_NOTICES.md @@ -1,6 +1,6 @@ # Third-party notices -Astrology Engine's own source and local example adapters are MPL-2.0 licensed; see +Astrology Engine's own source and local example adapters are MIT licensed; see [LICENSE](LICENSE). Dependencies and copied code retain their respective licenses. The project license does not relicense those components. diff --git a/examples/birth_and_design.rs b/examples/birth_and_design.rs index a267b9c..bad2100 100644 --- a/examples/birth_and_design.rs +++ b/examples/birth_and_design.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT use astrology_engine::{ calculate_chart, find_sun_crossing, Body, ChartInput, Direction, Ephemeris, Epoch, HouseSystem, diff --git a/examples/cloudflare-worker/Cargo.toml b/examples/cloudflare-worker/Cargo.toml index 2cba28c..a123459 100644 --- a/examples/cloudflare-worker/Cargo.toml +++ b/examples/cloudflare-worker/Cargo.toml @@ -3,7 +3,7 @@ name = "astrology-worker-example" version = "0.1.0" edition = "2021" rust-version = "1.96" -license = "MPL-2.0" +license = "MIT" publish = false [workspace] diff --git a/examples/cloudflare-worker/build.ts b/examples/cloudflare-worker/build.ts index b81682e..bdca3ec 100644 --- a/examples/cloudflare-worker/build.ts +++ b/examples/cloudflare-worker/build.ts @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT import { execFileSync } from 'node:child_process'; import { dirname, resolve } from 'node:path'; diff --git a/examples/cloudflare-worker/package.json b/examples/cloudflare-worker/package.json index 01783cf..3c52c83 100644 --- a/examples/cloudflare-worker/package.json +++ b/examples/cloudflare-worker/package.json @@ -14,5 +14,5 @@ "engines": { "node": ">=22" }, - "license": "MPL-2.0" + "license": "MIT" } diff --git a/examples/cloudflare-worker/src/lib.rs b/examples/cloudflare-worker/src/lib.rs index 3e20a4d..5478805 100644 --- a/examples/cloudflare-worker/src/lib.rs +++ b/examples/cloudflare-worker/src/lib.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT use astrology_engine::{ calculate_chart, find_sun_crossing, Body, CalculationError, ChartBody, ChartInput, Direction, diff --git a/examples/cloudflare-worker/src/verification.rs b/examples/cloudflare-worker/src/verification.rs index b2a2072..8a705de 100644 --- a/examples/cloudflare-worker/src/verification.rs +++ b/examples/cloudflare-worker/src/verification.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT thread_local! { diff --git a/examples/cloudflare-worker/verify.mjs b/examples/cloudflare-worker/verify.mjs index ff64d35..c85de84 100644 --- a/examples/cloudflare-worker/verify.mjs +++ b/examples/cloudflare-worker/verify.mjs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; diff --git a/examples/configurable-chart/build-wasm.ts b/examples/configurable-chart/build-wasm.ts index b22a7e9..a24d231 100644 --- a/examples/configurable-chart/build-wasm.ts +++ b/examples/configurable-chart/build-wasm.ts @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT import { check, copy, wasmBindgenVersion } from '../../tools/notices/core.ts'; import { resolve } from 'node:path'; diff --git a/examples/configurable-chart/main.ts b/examples/configurable-chart/main.ts index e33a233..05f1266 100644 --- a/examples/configurable-chart/main.ts +++ b/examples/configurable-chart/main.ts @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT import init, { calculate } from './engine/chart.js'; import { loadDataset } from './dataset.ts'; diff --git a/examples/configurable-chart/package.json b/examples/configurable-chart/package.json index d68d001..6eb74dc 100644 --- a/examples/configurable-chart/package.json +++ b/examples/configurable-chart/package.json @@ -14,5 +14,5 @@ "typescript": "5.9.3", "vite": "7.3.1" }, - "license": "MPL-2.0" + "license": "MIT" } diff --git a/examples/configurable-chart/verify-fagan-bradley.ts b/examples/configurable-chart/verify-fagan-bradley.ts index fb18041..6d40af7 100644 --- a/examples/configurable-chart/verify-fagan-bradley.ts +++ b/examples/configurable-chart/verify-fagan-bradley.ts @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; import { readFile } from 'node:fs/promises'; diff --git a/examples/configurable-chart/verify.ts b/examples/configurable-chart/verify.ts index c9e8f99..cb10603 100644 --- a/examples/configurable-chart/verify.ts +++ b/examples/configurable-chart/verify.ts @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; diff --git a/examples/configurable-chart/vite.config.ts b/examples/configurable-chart/vite.config.ts index 3daae14..0267770 100644 --- a/examples/configurable-chart/vite.config.ts +++ b/examples/configurable-chart/vite.config.ts @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT import { readFile } from 'node:fs/promises'; import type { IncomingMessage, ServerResponse } from 'node:http'; diff --git a/examples/configurable-chart/wasm/Cargo.toml b/examples/configurable-chart/wasm/Cargo.toml index 30dba2f..28d5a16 100644 --- a/examples/configurable-chart/wasm/Cargo.toml +++ b/examples/configurable-chart/wasm/Cargo.toml @@ -3,7 +3,7 @@ name = "configurable-chart-example" version = "0.1.0" edition = "2021" publish = false -license = "MPL-2.0" +license = "MIT" [workspace] [lib] crate-type = ["cdylib", "rlib"] diff --git a/examples/configurable-chart/wasm/src/lib.rs b/examples/configurable-chart/wasm/src/lib.rs index 13cea12..6be78be 100644 --- a/examples/configurable-chart/wasm/src/lib.rs +++ b/examples/configurable-chart/wasm/src/lib.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT use astrology_engine::{ calculate_chart, ChartInput, Ephemeris, Epoch, HouseSystem, Location, ZodiacConfiguration, diff --git a/examples/dataset_coverage.rs b/examples/dataset_coverage.rs index 79b5e32..ef6ce37 100644 --- a/examples/dataset_coverage.rs +++ b/examples/dataset_coverage.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT use astrology_engine::{coverage, Ephemeris, Epoch}; diff --git a/examples/natal_chart.rs b/examples/natal_chart.rs index 35fcbdd..522cb47 100644 --- a/examples/natal_chart.rs +++ b/examples/natal_chart.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT use astrology_engine::{ calculate_chart, ChartInput, Ephemeris, Epoch, HouseSystem, Location, SignDivisions, diff --git a/notices/browser.txt b/notices/browser.txt index ad88140..e0f76cf 100644 --- a/notices/browser.txt +++ b/notices/browser.txt @@ -4,7 +4,7 @@ Generated by cargo-about 0.9.2 and tools/notices/notices.ts. Do not edit this bu This inventory conservatively includes build-time Rust dependencies as well as runtime dependencies; it does not claim every listed package contributes code to the executable. -Astrology Engine and the local adapters are MPL-2.0 licensed. Third-party components retain their own terms. +Astrology Engine and the local adapters are MIT licensed. Third-party components retain their own terms. MPL source access: obtain each unmodified covered dependency from its exact-version source URL below. If distributing modifications, provide their corresponding MPL source and preserve these notices. Keep source available to recipients. @@ -17,390 +17,34 @@ Project copyright and license notice Astrology Engine Copyright (c) Jack Asher -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. - -This notice applies to the original project source, tools, and example -adapters. Third-party code and data retain their existing terms; see -THIRD_PARTY_NOTICES.md. +Original project source, tools, and example adapters are licensed under the +MIT License; see LICENSE. Third-party code and data retain their existing +terms; see THIRD_PARTY_NOTICES.md. Project license -Mozilla Public License Version 2.0 -================================== - -1. Definitions --------------- - -1.1. "Contributor" - means each individual or legal entity that creates, contributes to - the creation of, or owns Covered Software. - -1.2. "Contributor Version" - means the combination of the Contributions of others (if any) used - by a Contributor and that particular Contributor's Contribution. - -1.3. "Contribution" - means Covered Software of a particular Contributor. - -1.4. "Covered Software" - means Source Code Form to which the initial Contributor has attached - the notice in Exhibit A, the Executable Form of such Source Code - Form, and Modifications of such Source Code Form, in each case - including portions thereof. - -1.5. "Incompatible With Secondary Licenses" - means - - (a) that the initial Contributor has attached the notice described - in Exhibit B to the Covered Software; or - - (b) that the Covered Software was made available under the terms of - version 1.1 or earlier of the License, but not also under the - terms of a Secondary License. - -1.6. "Executable Form" - means any form of the work other than Source Code Form. - -1.7. "Larger Work" - means a work that combines Covered Software with other material, in - a separate file or files, that is not Covered Software. - -1.8. "License" - means this document. - -1.9. "Licensable" - means having the right to grant, to the maximum extent possible, - whether at the time of the initial grant or subsequently, any and - all of the rights conveyed by this License. - -1.10. "Modifications" - means any of the following: - - (a) any file in Source Code Form that results from an addition to, - deletion from, or modification of the contents of Covered - Software; or - - (b) any new file in Source Code Form that contains any Covered - Software. - -1.11. "Patent Claims" of a Contributor - means any patent claim(s), including without limitation, method, - process, and apparatus claims, in any patent Licensable by such - Contributor that would be infringed, but for the grant of the - License, by the making, using, selling, offering for sale, having - made, import, or transfer of either its Contributions or its - Contributor Version. - -1.12. "Secondary License" - means either the GNU General Public License, Version 2.0, the GNU - Lesser General Public License, Version 2.1, the GNU Affero General - Public License, Version 3.0, or any later versions of those - licenses. - -1.13. "Source Code Form" - means the form of the work preferred for making modifications. - -1.14. "You" (or "Your") - means an individual or a legal entity exercising rights under this - License. For legal entities, "You" includes any entity that - controls, is controlled by, or is under common control with You. For - purposes of this definition, "control" means (a) the power, direct - or indirect, to cause the direction or management of such entity, - whether by contract or otherwise, or (b) ownership of more than - fifty percent (50%) of the outstanding shares or beneficial - ownership of such entity. - -2. License Grants and Conditions --------------------------------- - -2.1. Grants - -Each Contributor hereby grants You a world-wide, royalty-free, -non-exclusive license: - -(a) under intellectual property rights (other than patent or trademark) - Licensable by such Contributor to use, reproduce, make available, - modify, display, perform, distribute, and otherwise exploit its - Contributions, either on an unmodified basis, with Modifications, or - as part of a Larger Work; and - -(b) under Patent Claims of such Contributor to make, use, sell, offer - for sale, have made, import, and otherwise transfer either its - Contributions or its Contributor Version. - -2.2. Effective Date - -The licenses granted in Section 2.1 with respect to any Contribution -become effective for each Contribution on the date the Contributor first -distributes such Contribution. - -2.3. Limitations on Grant Scope - -The licenses granted in this Section 2 are the only rights granted under -this License. No additional rights or licenses will be implied from the -distribution or licensing of Covered Software under this License. -Notwithstanding Section 2.1(b) above, no patent license is granted by a -Contributor: - -(a) for any code that a Contributor has removed from Covered Software; - or - -(b) for infringements caused by: (i) Your and any other third party's - modifications of Covered Software, or (ii) the combination of its - Contributions with other software (except as part of its Contributor - Version); or - -(c) under Patent Claims infringed by Covered Software in the absence of - its Contributions. - -This License does not grant any rights in the trademarks, service marks, -or logos of any Contributor (except as may be necessary to comply with -the notice requirements in Section 3.4). - -2.4. Subsequent Licenses - -No Contributor makes additional grants as a result of Your choice to -distribute the Covered Software under a subsequent version of this -License (see Section 10.2) or under the terms of a Secondary License (if -permitted under the terms of Section 3.3). - -2.5. Representation - -Each Contributor represents that the Contributor believes its -Contributions are its original creation(s) or it has sufficient rights -to grant the rights to its Contributions conveyed by this License. - -2.6. Fair Use - -This License is not intended to limit any rights You have under -applicable copyright doctrines of fair use, fair dealing, or other -equivalents. - -2.7. Conditions - -Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted -in Section 2.1. - -3. Responsibilities -------------------- - -3.1. Distribution of Source Form - -All distribution of Covered Software in Source Code Form, including any -Modifications that You create or to which You contribute, must be under -the terms of this License. You must inform recipients that the Source -Code Form of the Covered Software is governed by the terms of this -License, and how they can obtain a copy of this License. You may not -attempt to alter or restrict the recipients' rights in the Source Code -Form. - -3.2. Distribution of Executable Form - -If You distribute Covered Software in Executable Form then: - -(a) such Covered Software must also be made available in Source Code - Form, as described in Section 3.1, and You must inform recipients of - the Executable Form how they can obtain a copy of such Source Code - Form by reasonable means in a timely manner, at a charge no more - than the cost of distribution to the recipient; and - -(b) You may distribute such Executable Form under the terms of this - License, or sublicense it under different terms, provided that the - license for the Executable Form does not attempt to limit or alter - the recipients' rights in the Source Code Form under this License. - -3.3. Distribution of a Larger Work - -You may create and distribute a Larger Work under terms of Your choice, -provided that You also comply with the requirements of this License for -the Covered Software. If the Larger Work is a combination of Covered -Software with a work governed by one or more Secondary Licenses, and the -Covered Software is not Incompatible With Secondary Licenses, this -License permits You to additionally distribute such Covered Software -under the terms of such Secondary License(s), so that the recipient of -the Larger Work may, at their option, further distribute the Covered -Software under the terms of either this License or such Secondary -License(s). - -3.4. Notices - -You may not remove or alter the substance of any license notices -(including copyright notices, patent notices, disclaimers of warranty, -or limitations of liability) contained within the Source Code Form of -the Covered Software, except that You may alter any license notices to -the extent required to remedy known factual inaccuracies. - -3.5. Application of Additional Terms - -You may choose to offer, and to charge a fee for, warranty, support, -indemnity or liability obligations to one or more recipients of Covered -Software. However, You may do so only on Your own behalf, and not on -behalf of any Contributor. You must make it absolutely clear that any -such warranty, support, indemnity, or liability obligation is offered by -You alone, and You hereby agree to indemnify every Contributor for any -liability incurred by such Contributor as a result of warranty, support, -indemnity or liability terms You offer. You may include additional -disclaimers of warranty and limitations of liability specific to any -jurisdiction. - -4. Inability to Comply Due to Statute or Regulation ---------------------------------------------------- - -If it is impossible for You to comply with any of the terms of this -License with respect to some or all of the Covered Software due to -statute, judicial order, or regulation then You must: (a) comply with -the terms of this License to the maximum extent possible; and (b) -describe the limitations and the code they affect. Such description must -be placed in a text file included with all distributions of the Covered -Software under this License. Except to the extent prohibited by statute -or regulation, such description must be sufficiently detailed for a -recipient of ordinary skill to be able to understand it. - -5. Termination --------------- - -5.1. The rights granted under this License will terminate automatically -if You fail to comply with any of its terms. However, if You become -compliant, then the rights granted under this License from a particular -Contributor are reinstated (a) provisionally, unless and until such -Contributor explicitly and finally terminates Your grants, and (b) on an -ongoing basis, if such Contributor fails to notify You of the -non-compliance by some reasonable means prior to 60 days after You have -come back into compliance. Moreover, Your grants from a particular -Contributor are reinstated on an ongoing basis if such Contributor -notifies You of the non-compliance by some reasonable means, this is the -first time You have received notice of non-compliance with this License -from such Contributor, and You become compliant prior to 30 days after -Your receipt of the notice. - -5.2. If You initiate litigation against any entity by asserting a patent -infringement claim (excluding declaratory judgment actions, -counter-claims, and cross-claims) alleging that a Contributor Version -directly or indirectly infringes any patent, then the rights granted to -You by any and all Contributors for the Covered Software under Section -2.1 of this License shall terminate. - -5.3. In the event of termination under Sections 5.1 or 5.2 above, all -end user license agreements (excluding distributors and resellers) which -have been validly granted by You or Your distributors under this License -prior to termination shall survive termination. - -************************************************************************ -* * -* 6. Disclaimer of Warranty * -* ------------------------- * -* * -* Covered Software is provided under this License on an "as is" * -* basis, without warranty of any kind, either expressed, implied, or * -* statutory, including, without limitation, warranties that the * -* Covered Software is free of defects, merchantable, fit for a * -* particular purpose or non-infringing. The entire risk as to the * -* quality and performance of the Covered Software is with You. * -* Should any Covered Software prove defective in any respect, You * -* (not any Contributor) assume the cost of any necessary servicing, * -* repair, or correction. This disclaimer of warranty constitutes an * -* essential part of this License. No use of any Covered Software is * -* authorized under this License except under this disclaimer. * -* * -************************************************************************ - -************************************************************************ -* * -* 7. Limitation of Liability * -* -------------------------- * -* * -* Under no circumstances and under no legal theory, whether tort * -* (including negligence), contract, or otherwise, shall any * -* Contributor, or anyone who distributes Covered Software as * -* permitted above, be liable to You for any direct, indirect, * -* special, incidental, or consequential damages of any character * -* including, without limitation, damages for lost profits, loss of * -* goodwill, work stoppage, computer failure or malfunction, or any * -* and all other commercial damages or losses, even if such party * -* shall have been informed of the possibility of such damages. This * -* limitation of liability shall not apply to liability for death or * -* personal injury resulting from such party's negligence to the * -* extent applicable law prohibits such limitation. Some * -* jurisdictions do not allow the exclusion or limitation of * -* incidental or consequential damages, so this exclusion and * -* limitation may not apply to You. * -* * -************************************************************************ - -8. Litigation -------------- - -Any litigation relating to this License may be brought only in the -courts of a jurisdiction where the defendant maintains its principal -place of business and such litigation shall be governed by laws of that -jurisdiction, without reference to its conflict-of-law provisions. -Nothing in this Section shall prevent a party's ability to bring -cross-claims or counter-claims. - -9. Miscellaneous ----------------- - -This License represents the complete agreement concerning the subject -matter hereof. If any provision of this License is held to be -unenforceable, such provision shall be reformed only to the extent -necessary to make it enforceable. Any law or regulation which provides -that the language of a contract shall be construed against the drafter -shall not be used to construe this License against a Contributor. - -10. Versions of the License ---------------------------- - -10.1. New Versions - -Mozilla Foundation is the license steward. Except as provided in Section -10.3, no one other than the license steward has the right to modify or -publish new versions of this License. Each version will be given a -distinguishing version number. - -10.2. Effect of New Versions - -You may distribute the Covered Software under the terms of the version -of the License under which You originally received the Covered Software, -or under the terms of any subsequent version published by the license -steward. - -10.3. Modified Versions - -If you create software not governed by this License, and you want to -create a new license for such software, you may create and use a -modified version of this License if you rename the license and remove -any references to the name of the license steward (except to note that -such modified license differs from this License). - -10.4. Distributing Source Code Form that is Incompatible With Secondary -Licenses - -If You choose to distribute Source Code Form that is Incompatible With -Secondary Licenses under the terms of this version of the License, the -notice described in Exhibit B of this License must be attached. - -Exhibit A - Source Code Form License Notice -------------------------------------------- - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at https://mozilla.org/MPL/2.0/. +MIT License -If it is not possible or desirable to put the notice in a particular -file, then You may include the notice in a location (such as a LICENSE -file in a relevant directory) where a recipient would be likely to look -for such a notice. +Copyright (c) Jack Asher -You may add additional accurate notices of copyright ownership. +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: -Exhibit B - "Incompatible With Secondary Licenses" Notice ---------------------------------------------------------- +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. - This Source Code Form is "Incompatible With Secondary Licenses", as - defined by the Mozilla Public License, v. 2.0. +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. diff --git a/notices/builder.txt b/notices/builder.txt index 05fa6f5..6340f37 100644 --- a/notices/builder.txt +++ b/notices/builder.txt @@ -4,7 +4,7 @@ Generated by cargo-about 0.9.2 and tools/notices/notices.ts. Do not edit this bu This inventory conservatively includes build-time Rust dependencies as well as runtime dependencies; it does not claim every listed package contributes code to the executable. -Astrology Engine and the local adapters are MPL-2.0 licensed. Third-party components retain their own terms. +Astrology Engine and the local adapters are MIT licensed. Third-party components retain their own terms. MPL source access: obtain each unmodified covered dependency from its exact-version source URL below. If distributing modifications, provide their corresponding MPL source and preserve these notices. Keep source available to recipients. @@ -19,390 +19,34 @@ Project copyright and license notice Astrology Engine Copyright (c) Jack Asher -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. - -This notice applies to the original project source, tools, and example -adapters. Third-party code and data retain their existing terms; see -THIRD_PARTY_NOTICES.md. +Original project source, tools, and example adapters are licensed under the +MIT License; see LICENSE. Third-party code and data retain their existing +terms; see THIRD_PARTY_NOTICES.md. Project license -Mozilla Public License Version 2.0 -================================== - -1. Definitions --------------- - -1.1. "Contributor" - means each individual or legal entity that creates, contributes to - the creation of, or owns Covered Software. - -1.2. "Contributor Version" - means the combination of the Contributions of others (if any) used - by a Contributor and that particular Contributor's Contribution. - -1.3. "Contribution" - means Covered Software of a particular Contributor. - -1.4. "Covered Software" - means Source Code Form to which the initial Contributor has attached - the notice in Exhibit A, the Executable Form of such Source Code - Form, and Modifications of such Source Code Form, in each case - including portions thereof. - -1.5. "Incompatible With Secondary Licenses" - means - - (a) that the initial Contributor has attached the notice described - in Exhibit B to the Covered Software; or - - (b) that the Covered Software was made available under the terms of - version 1.1 or earlier of the License, but not also under the - terms of a Secondary License. - -1.6. "Executable Form" - means any form of the work other than Source Code Form. - -1.7. "Larger Work" - means a work that combines Covered Software with other material, in - a separate file or files, that is not Covered Software. - -1.8. "License" - means this document. - -1.9. "Licensable" - means having the right to grant, to the maximum extent possible, - whether at the time of the initial grant or subsequently, any and - all of the rights conveyed by this License. - -1.10. "Modifications" - means any of the following: - - (a) any file in Source Code Form that results from an addition to, - deletion from, or modification of the contents of Covered - Software; or - - (b) any new file in Source Code Form that contains any Covered - Software. - -1.11. "Patent Claims" of a Contributor - means any patent claim(s), including without limitation, method, - process, and apparatus claims, in any patent Licensable by such - Contributor that would be infringed, but for the grant of the - License, by the making, using, selling, offering for sale, having - made, import, or transfer of either its Contributions or its - Contributor Version. - -1.12. "Secondary License" - means either the GNU General Public License, Version 2.0, the GNU - Lesser General Public License, Version 2.1, the GNU Affero General - Public License, Version 3.0, or any later versions of those - licenses. - -1.13. "Source Code Form" - means the form of the work preferred for making modifications. - -1.14. "You" (or "Your") - means an individual or a legal entity exercising rights under this - License. For legal entities, "You" includes any entity that - controls, is controlled by, or is under common control with You. For - purposes of this definition, "control" means (a) the power, direct - or indirect, to cause the direction or management of such entity, - whether by contract or otherwise, or (b) ownership of more than - fifty percent (50%) of the outstanding shares or beneficial - ownership of such entity. - -2. License Grants and Conditions --------------------------------- - -2.1. Grants - -Each Contributor hereby grants You a world-wide, royalty-free, -non-exclusive license: - -(a) under intellectual property rights (other than patent or trademark) - Licensable by such Contributor to use, reproduce, make available, - modify, display, perform, distribute, and otherwise exploit its - Contributions, either on an unmodified basis, with Modifications, or - as part of a Larger Work; and - -(b) under Patent Claims of such Contributor to make, use, sell, offer - for sale, have made, import, and otherwise transfer either its - Contributions or its Contributor Version. - -2.2. Effective Date - -The licenses granted in Section 2.1 with respect to any Contribution -become effective for each Contribution on the date the Contributor first -distributes such Contribution. - -2.3. Limitations on Grant Scope - -The licenses granted in this Section 2 are the only rights granted under -this License. No additional rights or licenses will be implied from the -distribution or licensing of Covered Software under this License. -Notwithstanding Section 2.1(b) above, no patent license is granted by a -Contributor: - -(a) for any code that a Contributor has removed from Covered Software; - or - -(b) for infringements caused by: (i) Your and any other third party's - modifications of Covered Software, or (ii) the combination of its - Contributions with other software (except as part of its Contributor - Version); or - -(c) under Patent Claims infringed by Covered Software in the absence of - its Contributions. - -This License does not grant any rights in the trademarks, service marks, -or logos of any Contributor (except as may be necessary to comply with -the notice requirements in Section 3.4). - -2.4. Subsequent Licenses - -No Contributor makes additional grants as a result of Your choice to -distribute the Covered Software under a subsequent version of this -License (see Section 10.2) or under the terms of a Secondary License (if -permitted under the terms of Section 3.3). - -2.5. Representation - -Each Contributor represents that the Contributor believes its -Contributions are its original creation(s) or it has sufficient rights -to grant the rights to its Contributions conveyed by this License. - -2.6. Fair Use - -This License is not intended to limit any rights You have under -applicable copyright doctrines of fair use, fair dealing, or other -equivalents. - -2.7. Conditions - -Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted -in Section 2.1. - -3. Responsibilities -------------------- - -3.1. Distribution of Source Form - -All distribution of Covered Software in Source Code Form, including any -Modifications that You create or to which You contribute, must be under -the terms of this License. You must inform recipients that the Source -Code Form of the Covered Software is governed by the terms of this -License, and how they can obtain a copy of this License. You may not -attempt to alter or restrict the recipients' rights in the Source Code -Form. - -3.2. Distribution of Executable Form - -If You distribute Covered Software in Executable Form then: - -(a) such Covered Software must also be made available in Source Code - Form, as described in Section 3.1, and You must inform recipients of - the Executable Form how they can obtain a copy of such Source Code - Form by reasonable means in a timely manner, at a charge no more - than the cost of distribution to the recipient; and - -(b) You may distribute such Executable Form under the terms of this - License, or sublicense it under different terms, provided that the - license for the Executable Form does not attempt to limit or alter - the recipients' rights in the Source Code Form under this License. - -3.3. Distribution of a Larger Work - -You may create and distribute a Larger Work under terms of Your choice, -provided that You also comply with the requirements of this License for -the Covered Software. If the Larger Work is a combination of Covered -Software with a work governed by one or more Secondary Licenses, and the -Covered Software is not Incompatible With Secondary Licenses, this -License permits You to additionally distribute such Covered Software -under the terms of such Secondary License(s), so that the recipient of -the Larger Work may, at their option, further distribute the Covered -Software under the terms of either this License or such Secondary -License(s). - -3.4. Notices - -You may not remove or alter the substance of any license notices -(including copyright notices, patent notices, disclaimers of warranty, -or limitations of liability) contained within the Source Code Form of -the Covered Software, except that You may alter any license notices to -the extent required to remedy known factual inaccuracies. - -3.5. Application of Additional Terms - -You may choose to offer, and to charge a fee for, warranty, support, -indemnity or liability obligations to one or more recipients of Covered -Software. However, You may do so only on Your own behalf, and not on -behalf of any Contributor. You must make it absolutely clear that any -such warranty, support, indemnity, or liability obligation is offered by -You alone, and You hereby agree to indemnify every Contributor for any -liability incurred by such Contributor as a result of warranty, support, -indemnity or liability terms You offer. You may include additional -disclaimers of warranty and limitations of liability specific to any -jurisdiction. - -4. Inability to Comply Due to Statute or Regulation ---------------------------------------------------- - -If it is impossible for You to comply with any of the terms of this -License with respect to some or all of the Covered Software due to -statute, judicial order, or regulation then You must: (a) comply with -the terms of this License to the maximum extent possible; and (b) -describe the limitations and the code they affect. Such description must -be placed in a text file included with all distributions of the Covered -Software under this License. Except to the extent prohibited by statute -or regulation, such description must be sufficiently detailed for a -recipient of ordinary skill to be able to understand it. - -5. Termination --------------- - -5.1. The rights granted under this License will terminate automatically -if You fail to comply with any of its terms. However, if You become -compliant, then the rights granted under this License from a particular -Contributor are reinstated (a) provisionally, unless and until such -Contributor explicitly and finally terminates Your grants, and (b) on an -ongoing basis, if such Contributor fails to notify You of the -non-compliance by some reasonable means prior to 60 days after You have -come back into compliance. Moreover, Your grants from a particular -Contributor are reinstated on an ongoing basis if such Contributor -notifies You of the non-compliance by some reasonable means, this is the -first time You have received notice of non-compliance with this License -from such Contributor, and You become compliant prior to 30 days after -Your receipt of the notice. - -5.2. If You initiate litigation against any entity by asserting a patent -infringement claim (excluding declaratory judgment actions, -counter-claims, and cross-claims) alleging that a Contributor Version -directly or indirectly infringes any patent, then the rights granted to -You by any and all Contributors for the Covered Software under Section -2.1 of this License shall terminate. - -5.3. In the event of termination under Sections 5.1 or 5.2 above, all -end user license agreements (excluding distributors and resellers) which -have been validly granted by You or Your distributors under this License -prior to termination shall survive termination. - -************************************************************************ -* * -* 6. Disclaimer of Warranty * -* ------------------------- * -* * -* Covered Software is provided under this License on an "as is" * -* basis, without warranty of any kind, either expressed, implied, or * -* statutory, including, without limitation, warranties that the * -* Covered Software is free of defects, merchantable, fit for a * -* particular purpose or non-infringing. The entire risk as to the * -* quality and performance of the Covered Software is with You. * -* Should any Covered Software prove defective in any respect, You * -* (not any Contributor) assume the cost of any necessary servicing, * -* repair, or correction. This disclaimer of warranty constitutes an * -* essential part of this License. No use of any Covered Software is * -* authorized under this License except under this disclaimer. * -* * -************************************************************************ - -************************************************************************ -* * -* 7. Limitation of Liability * -* -------------------------- * -* * -* Under no circumstances and under no legal theory, whether tort * -* (including negligence), contract, or otherwise, shall any * -* Contributor, or anyone who distributes Covered Software as * -* permitted above, be liable to You for any direct, indirect, * -* special, incidental, or consequential damages of any character * -* including, without limitation, damages for lost profits, loss of * -* goodwill, work stoppage, computer failure or malfunction, or any * -* and all other commercial damages or losses, even if such party * -* shall have been informed of the possibility of such damages. This * -* limitation of liability shall not apply to liability for death or * -* personal injury resulting from such party's negligence to the * -* extent applicable law prohibits such limitation. Some * -* jurisdictions do not allow the exclusion or limitation of * -* incidental or consequential damages, so this exclusion and * -* limitation may not apply to You. * -* * -************************************************************************ - -8. Litigation -------------- - -Any litigation relating to this License may be brought only in the -courts of a jurisdiction where the defendant maintains its principal -place of business and such litigation shall be governed by laws of that -jurisdiction, without reference to its conflict-of-law provisions. -Nothing in this Section shall prevent a party's ability to bring -cross-claims or counter-claims. - -9. Miscellaneous ----------------- - -This License represents the complete agreement concerning the subject -matter hereof. If any provision of this License is held to be -unenforceable, such provision shall be reformed only to the extent -necessary to make it enforceable. Any law or regulation which provides -that the language of a contract shall be construed against the drafter -shall not be used to construe this License against a Contributor. - -10. Versions of the License ---------------------------- - -10.1. New Versions - -Mozilla Foundation is the license steward. Except as provided in Section -10.3, no one other than the license steward has the right to modify or -publish new versions of this License. Each version will be given a -distinguishing version number. - -10.2. Effect of New Versions - -You may distribute the Covered Software under the terms of the version -of the License under which You originally received the Covered Software, -or under the terms of any subsequent version published by the license -steward. - -10.3. Modified Versions - -If you create software not governed by this License, and you want to -create a new license for such software, you may create and use a -modified version of this License if you rename the license and remove -any references to the name of the license steward (except to note that -such modified license differs from this License). - -10.4. Distributing Source Code Form that is Incompatible With Secondary -Licenses - -If You choose to distribute Source Code Form that is Incompatible With -Secondary Licenses under the terms of this version of the License, the -notice described in Exhibit B of this License must be attached. - -Exhibit A - Source Code Form License Notice -------------------------------------------- - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at https://mozilla.org/MPL/2.0/. +MIT License -If it is not possible or desirable to put the notice in a particular -file, then You may include the notice in a location (such as a LICENSE -file in a relevant directory) where a recipient would be likely to look -for such a notice. +Copyright (c) Jack Asher -You may add additional accurate notices of copyright ownership. +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: -Exhibit B - "Incompatible With Secondary Licenses" Notice ---------------------------------------------------------- +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. - This Source Code Form is "Incompatible With Secondary Licenses", as - defined by the Mozilla Public License, v. 2.0. +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. diff --git a/notices/inventory.json b/notices/inventory.json index e1689f4..d052e3f 100644 --- a/notices/inventory.json +++ b/notices/inventory.json @@ -2,32 +2,32 @@ "generator": "cargo-about 0.9.2", "inputs": { "Cargo.lock": "493978f3355313c5b462abf2e1d5ce44f35a16099c37d7866c2c5271b59c4f81", - "Cargo.toml": "34d120288f6e38c748b09e195f2bc74b6307b938b4a59e5874fba6b54f7d995d", - "LICENSE": "3f3d9e0024b1921b067d6f7f88deb4a60cbe7a78e76c64e3f1d7fc3b779b9d04", - "NOTICE": "8ece9078e054810889cb0a89a0acf8b1f5b533ef9e9d92f9a118ef4bbdc74739", - "THIRD_PARTY_NOTICES.md": "442c92c818a23bf75e7a16481a24e9f29d78d09a7731e01cbce4721ccd1368d0", + "Cargo.toml": "f9a014eef496859892953165f2c92e1c56387e31247b37a544c821e3c235d866", + "LICENSE": "cc2189d2828bb8090f61e0f7aa18080a40fe42efe1dac6972460c2fb6d964aa9", + "NOTICE": "26b873c6b4ceb7e1e948dd840573ac525e5cd30a40ec944db248a2811b7d4180", + "THIRD_PARTY_NOTICES.md": "c2b8ecef5caf0c364884f110421d2e8b60be684e37deeca79829c50f0032846a", "examples/cloudflare-worker/Cargo.lock": "9be76353c6a605becf7200bf6463c96eff76989840753185c020738b4b250194", - "examples/cloudflare-worker/Cargo.toml": "df9e572de743d2e8be0ce593e62d5fb3dd54594fab58b01cae01f4d051d28168", - "examples/cloudflare-worker/build.ts": "005c296c1ea0578c66e6eb3486e7e8748002c4747b01a8f6a9c2d0a1209373f4", + "examples/cloudflare-worker/Cargo.toml": "09c2045535deb8afc1b0dd2623d52a46c20cc55f0267c49d1f932a71c2df0242", + "examples/cloudflare-worker/build.ts": "f58dc9d6906fa7801f0dc76e8bfc25de36186405b9452e70e52f0c9b269c388f", "examples/cloudflare-worker/bun.lock": "c8fd7386f88d4162451103ddb437a510144c72fd9baba7255c373b27c2dafa69", - "examples/cloudflare-worker/package.json": "ed9fe757eb6e0cf65351b797063a2405866dc4ca993892be7b73c9be5c254320", + "examples/cloudflare-worker/package.json": "fbf37c57711c263a9f883eb3ab06f45b35645e3015a3930333907b2cb88cf149", "examples/cloudflare-worker/wrangler.jsonc": "9c9dd96ce6e77cb5a385141b3e37084779f0ce6354c2ff6e69b5dddf003bae9f", - "examples/configurable-chart/build-wasm.ts": "8f5c678ced9571e6a13aa24de2fba97756c6d123498da7a5166eb3daf2ea8721", + "examples/configurable-chart/build-wasm.ts": "20568a25fb9f57d98773486254b0395d664f845c3978ea6239bcde5ac9210c88", "examples/configurable-chart/bun.lock": "ecbff363cd50d08e60a0b6a9080b4d616ee816a89743c7c8e4e05bc571cde514", - "examples/configurable-chart/package.json": "0ee9981cd2e4d4530a7b58518fbecffd52284ef89d2b176a35330af51bb05d46", - "examples/configurable-chart/vite.config.ts": "cf361ed4bb792e9fcb8206c95f8c826f0cefc3928249ed6ff8f68b9a52899cb6", + "examples/configurable-chart/package.json": "e6a550670acc58409a03cee5f934c777bb07bc9af801e6d6dd94decd2f0754df", + "examples/configurable-chart/vite.config.ts": "5fd5c60c2d2e61083e5dd91e382632bc068a942dea73ce1757acb6c18e71d87b", "examples/configurable-chart/wasm/Cargo.lock": "ed5c93ef2796121c4a906e7bbe77d0189d5a1c38a75356a9c649827c0310c9c5", - "examples/configurable-chart/wasm/Cargo.toml": "6ab9b88fe1063dc7bef0e05466f8b8aa01dde644629c1b6bf15392f2c073342c", + "examples/configurable-chart/wasm/Cargo.toml": "11b036519a587b4d6d162a93e9b2db91e7a4de5d55dc7de6230bf119cdffd8f5", "notices/RUST_LIBRARY_NOTICES.html": "78c163fcec50e64bfd85fedb850c273595602fafa2b41f30f75d4e410b80ee83", "rust-toolchain.toml": "41308dbe82a83679b7b2081be4d5ae7f9aa52f642bcc3eab104ac77501560e79", - "tools/dataset-builder/Cargo.toml": "fb3ee41b5db46b13f4b1bf6931eb4d30581658a5b6b61ab8164529b8798cd471", + "tools/dataset-builder/Cargo.toml": "16cf7a1c0f2902fad5d12f5d4cc8a4d7a77a02a59b894251ea6017faae4be65a", "tools/jpl/requirements.lock": "c0ac24455f646794d26e301c76837ce671225e570cced8571deacad1f9f241b2", - "tools/notices/README.md": "56c6d04dfc6f378dbc7e032bd33654e072f5693ea4fddcb37c87053601d4709d", - "tools/notices/about.toml": "424c60a618fa5f2eb0ab9a3288e82fffaaf8a37cc6f90227e9a70250742da0f8", - "tools/notices/collect.ts": "4725fdaab09a4e11272f14e47560c53553ea6150aa7294b7cf4f43d3c3790215", - "tools/notices/core.ts": "46b7c282ca4ba03183d1752f2c85b44d3a90873229d94e1e25a999b89572b31d", - "tools/notices/notices.test.ts": "bc56e16b71704904bb446d29e6449b9445430fa042816f900e509780bafe1dea", - "tools/notices/notices.ts": "d5781c76453ef680b378b965247be1885d880204e7f5967f674deff46a503cb4", + "tools/notices/README.md": "f21fe4725ab2e7c1cf1f57546f1742812deab2c9eee30facc978d8b02159e98c", + "tools/notices/about.toml": "bc47d092619eee2ab59e92e863b9130d2ccf04a18ffec0e22bcbf0e225006ce6", + "tools/notices/collect.ts": "1ed3fa3e9909d66772dfb018600cdb24732d3df5147b968ab311074f351c05a8", + "tools/notices/core.ts": "8124513baff3a52a1952c84ace0c6143399973c14fec64064e1be5ca537c37e0", + "tools/notices/notices.test.ts": "e3fd0b52a9c18fcb6f5beedbc4c56b98353a4cf6f341e80d5dda145fb413deb2", + "tools/notices/notices.ts": "3795bd8caea35284bd79d68ba35368f1b1056b73b522a0f5b1dc25505e3cd9eb", "tools/notices/reviewed-files.json": "42f7dfa5c05bed9ed6f878c9f4daefe1a98d38b311178128baf462d637d9a631", "tools/notices/supplements.json": "197fddf2f43ff00a17ca0117e9a579e86169a8516cbd11afe63794e6523cd5e4", "tools/notices/supplements/anise-AUTHORS.txt": "3041b5b9f60bbdf14ad44fc473112a155c544068ff7bb003d9ccd440b5f20624", @@ -246,7 +246,7 @@ "source": "https://static.crates.io/crates/web-time/web-time-1.1.0.crate" } ], - "sha256": "da9601faa2e5d39218b0698f502ffc255ef46953c3bb76edc3ac1d53de352ee5" + "sha256": "85af344818ca78716b554c10a8117c6721998c4f2f516cee376b8a263a30e2fb" }, "builder": { "packages": [ @@ -773,7 +773,7 @@ "source": "https://static.crates.io/crates/zmij/zmij-1.0.21.crate" } ], - "sha256": "0486c7e4310651507e0b57a410f5a5aabd5cce364f1e5b72b7683febbd6f0492" + "sha256": "6825e90fb0857b4af4a263fbc010670b734f0df4998308cbbd92ecb1b5c976fa" }, "worker": { "packages": [ @@ -1354,7 +1354,7 @@ "source": "https://static.crates.io/crates/zmij/zmij-1.0.21.crate" } ], - "sha256": "2843e8d1c28ce60a0c9142cfce61439b519590bab4f8b2f5082c126f735587d5" + "sha256": "ff1a340ab2c50925cd1cad799d308cc021860fe39a6e91ac5448ef28c0fe89c5" }, "browser": { "packages": [ @@ -1587,7 +1587,7 @@ "source": "https://static.crates.io/crates/zmij/zmij-1.0.21.crate" } ], - "sha256": "048e77c61ae40478833276b61bfbaab8b197b03156b504bbd7647bcda16df203" + "sha256": "3f9f40b9e24e6b2ccc090c81009ef909b99902c86bff8263bb15d65193b44bcf" } } } diff --git a/notices/runtime.txt b/notices/runtime.txt index 0bae371..2178f7d 100644 --- a/notices/runtime.txt +++ b/notices/runtime.txt @@ -4,7 +4,7 @@ Generated by cargo-about 0.9.2 and tools/notices/notices.ts. Do not edit this bu This inventory conservatively includes build-time Rust dependencies as well as runtime dependencies; it does not claim every listed package contributes code to the executable. -Astrology Engine and the local adapters are MPL-2.0 licensed. Third-party components retain their own terms. +Astrology Engine and the local adapters are MIT licensed. Third-party components retain their own terms. MPL source access: obtain each unmodified covered dependency from its exact-version source URL below. If distributing modifications, provide their corresponding MPL source and preserve these notices. Keep source available to recipients. @@ -17,390 +17,34 @@ Project copyright and license notice Astrology Engine Copyright (c) Jack Asher -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. - -This notice applies to the original project source, tools, and example -adapters. Third-party code and data retain their existing terms; see -THIRD_PARTY_NOTICES.md. +Original project source, tools, and example adapters are licensed under the +MIT License; see LICENSE. Third-party code and data retain their existing +terms; see THIRD_PARTY_NOTICES.md. Project license -Mozilla Public License Version 2.0 -================================== - -1. Definitions --------------- - -1.1. "Contributor" - means each individual or legal entity that creates, contributes to - the creation of, or owns Covered Software. - -1.2. "Contributor Version" - means the combination of the Contributions of others (if any) used - by a Contributor and that particular Contributor's Contribution. - -1.3. "Contribution" - means Covered Software of a particular Contributor. - -1.4. "Covered Software" - means Source Code Form to which the initial Contributor has attached - the notice in Exhibit A, the Executable Form of such Source Code - Form, and Modifications of such Source Code Form, in each case - including portions thereof. - -1.5. "Incompatible With Secondary Licenses" - means - - (a) that the initial Contributor has attached the notice described - in Exhibit B to the Covered Software; or - - (b) that the Covered Software was made available under the terms of - version 1.1 or earlier of the License, but not also under the - terms of a Secondary License. - -1.6. "Executable Form" - means any form of the work other than Source Code Form. - -1.7. "Larger Work" - means a work that combines Covered Software with other material, in - a separate file or files, that is not Covered Software. - -1.8. "License" - means this document. - -1.9. "Licensable" - means having the right to grant, to the maximum extent possible, - whether at the time of the initial grant or subsequently, any and - all of the rights conveyed by this License. - -1.10. "Modifications" - means any of the following: - - (a) any file in Source Code Form that results from an addition to, - deletion from, or modification of the contents of Covered - Software; or - - (b) any new file in Source Code Form that contains any Covered - Software. - -1.11. "Patent Claims" of a Contributor - means any patent claim(s), including without limitation, method, - process, and apparatus claims, in any patent Licensable by such - Contributor that would be infringed, but for the grant of the - License, by the making, using, selling, offering for sale, having - made, import, or transfer of either its Contributions or its - Contributor Version. - -1.12. "Secondary License" - means either the GNU General Public License, Version 2.0, the GNU - Lesser General Public License, Version 2.1, the GNU Affero General - Public License, Version 3.0, or any later versions of those - licenses. - -1.13. "Source Code Form" - means the form of the work preferred for making modifications. - -1.14. "You" (or "Your") - means an individual or a legal entity exercising rights under this - License. For legal entities, "You" includes any entity that - controls, is controlled by, or is under common control with You. For - purposes of this definition, "control" means (a) the power, direct - or indirect, to cause the direction or management of such entity, - whether by contract or otherwise, or (b) ownership of more than - fifty percent (50%) of the outstanding shares or beneficial - ownership of such entity. - -2. License Grants and Conditions --------------------------------- - -2.1. Grants - -Each Contributor hereby grants You a world-wide, royalty-free, -non-exclusive license: - -(a) under intellectual property rights (other than patent or trademark) - Licensable by such Contributor to use, reproduce, make available, - modify, display, perform, distribute, and otherwise exploit its - Contributions, either on an unmodified basis, with Modifications, or - as part of a Larger Work; and - -(b) under Patent Claims of such Contributor to make, use, sell, offer - for sale, have made, import, and otherwise transfer either its - Contributions or its Contributor Version. - -2.2. Effective Date - -The licenses granted in Section 2.1 with respect to any Contribution -become effective for each Contribution on the date the Contributor first -distributes such Contribution. - -2.3. Limitations on Grant Scope - -The licenses granted in this Section 2 are the only rights granted under -this License. No additional rights or licenses will be implied from the -distribution or licensing of Covered Software under this License. -Notwithstanding Section 2.1(b) above, no patent license is granted by a -Contributor: - -(a) for any code that a Contributor has removed from Covered Software; - or - -(b) for infringements caused by: (i) Your and any other third party's - modifications of Covered Software, or (ii) the combination of its - Contributions with other software (except as part of its Contributor - Version); or - -(c) under Patent Claims infringed by Covered Software in the absence of - its Contributions. - -This License does not grant any rights in the trademarks, service marks, -or logos of any Contributor (except as may be necessary to comply with -the notice requirements in Section 3.4). - -2.4. Subsequent Licenses - -No Contributor makes additional grants as a result of Your choice to -distribute the Covered Software under a subsequent version of this -License (see Section 10.2) or under the terms of a Secondary License (if -permitted under the terms of Section 3.3). - -2.5. Representation - -Each Contributor represents that the Contributor believes its -Contributions are its original creation(s) or it has sufficient rights -to grant the rights to its Contributions conveyed by this License. - -2.6. Fair Use - -This License is not intended to limit any rights You have under -applicable copyright doctrines of fair use, fair dealing, or other -equivalents. - -2.7. Conditions - -Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted -in Section 2.1. - -3. Responsibilities -------------------- - -3.1. Distribution of Source Form - -All distribution of Covered Software in Source Code Form, including any -Modifications that You create or to which You contribute, must be under -the terms of this License. You must inform recipients that the Source -Code Form of the Covered Software is governed by the terms of this -License, and how they can obtain a copy of this License. You may not -attempt to alter or restrict the recipients' rights in the Source Code -Form. - -3.2. Distribution of Executable Form - -If You distribute Covered Software in Executable Form then: - -(a) such Covered Software must also be made available in Source Code - Form, as described in Section 3.1, and You must inform recipients of - the Executable Form how they can obtain a copy of such Source Code - Form by reasonable means in a timely manner, at a charge no more - than the cost of distribution to the recipient; and - -(b) You may distribute such Executable Form under the terms of this - License, or sublicense it under different terms, provided that the - license for the Executable Form does not attempt to limit or alter - the recipients' rights in the Source Code Form under this License. - -3.3. Distribution of a Larger Work - -You may create and distribute a Larger Work under terms of Your choice, -provided that You also comply with the requirements of this License for -the Covered Software. If the Larger Work is a combination of Covered -Software with a work governed by one or more Secondary Licenses, and the -Covered Software is not Incompatible With Secondary Licenses, this -License permits You to additionally distribute such Covered Software -under the terms of such Secondary License(s), so that the recipient of -the Larger Work may, at their option, further distribute the Covered -Software under the terms of either this License or such Secondary -License(s). - -3.4. Notices - -You may not remove or alter the substance of any license notices -(including copyright notices, patent notices, disclaimers of warranty, -or limitations of liability) contained within the Source Code Form of -the Covered Software, except that You may alter any license notices to -the extent required to remedy known factual inaccuracies. - -3.5. Application of Additional Terms - -You may choose to offer, and to charge a fee for, warranty, support, -indemnity or liability obligations to one or more recipients of Covered -Software. However, You may do so only on Your own behalf, and not on -behalf of any Contributor. You must make it absolutely clear that any -such warranty, support, indemnity, or liability obligation is offered by -You alone, and You hereby agree to indemnify every Contributor for any -liability incurred by such Contributor as a result of warranty, support, -indemnity or liability terms You offer. You may include additional -disclaimers of warranty and limitations of liability specific to any -jurisdiction. - -4. Inability to Comply Due to Statute or Regulation ---------------------------------------------------- - -If it is impossible for You to comply with any of the terms of this -License with respect to some or all of the Covered Software due to -statute, judicial order, or regulation then You must: (a) comply with -the terms of this License to the maximum extent possible; and (b) -describe the limitations and the code they affect. Such description must -be placed in a text file included with all distributions of the Covered -Software under this License. Except to the extent prohibited by statute -or regulation, such description must be sufficiently detailed for a -recipient of ordinary skill to be able to understand it. - -5. Termination --------------- - -5.1. The rights granted under this License will terminate automatically -if You fail to comply with any of its terms. However, if You become -compliant, then the rights granted under this License from a particular -Contributor are reinstated (a) provisionally, unless and until such -Contributor explicitly and finally terminates Your grants, and (b) on an -ongoing basis, if such Contributor fails to notify You of the -non-compliance by some reasonable means prior to 60 days after You have -come back into compliance. Moreover, Your grants from a particular -Contributor are reinstated on an ongoing basis if such Contributor -notifies You of the non-compliance by some reasonable means, this is the -first time You have received notice of non-compliance with this License -from such Contributor, and You become compliant prior to 30 days after -Your receipt of the notice. - -5.2. If You initiate litigation against any entity by asserting a patent -infringement claim (excluding declaratory judgment actions, -counter-claims, and cross-claims) alleging that a Contributor Version -directly or indirectly infringes any patent, then the rights granted to -You by any and all Contributors for the Covered Software under Section -2.1 of this License shall terminate. - -5.3. In the event of termination under Sections 5.1 or 5.2 above, all -end user license agreements (excluding distributors and resellers) which -have been validly granted by You or Your distributors under this License -prior to termination shall survive termination. - -************************************************************************ -* * -* 6. Disclaimer of Warranty * -* ------------------------- * -* * -* Covered Software is provided under this License on an "as is" * -* basis, without warranty of any kind, either expressed, implied, or * -* statutory, including, without limitation, warranties that the * -* Covered Software is free of defects, merchantable, fit for a * -* particular purpose or non-infringing. The entire risk as to the * -* quality and performance of the Covered Software is with You. * -* Should any Covered Software prove defective in any respect, You * -* (not any Contributor) assume the cost of any necessary servicing, * -* repair, or correction. This disclaimer of warranty constitutes an * -* essential part of this License. No use of any Covered Software is * -* authorized under this License except under this disclaimer. * -* * -************************************************************************ - -************************************************************************ -* * -* 7. Limitation of Liability * -* -------------------------- * -* * -* Under no circumstances and under no legal theory, whether tort * -* (including negligence), contract, or otherwise, shall any * -* Contributor, or anyone who distributes Covered Software as * -* permitted above, be liable to You for any direct, indirect, * -* special, incidental, or consequential damages of any character * -* including, without limitation, damages for lost profits, loss of * -* goodwill, work stoppage, computer failure or malfunction, or any * -* and all other commercial damages or losses, even if such party * -* shall have been informed of the possibility of such damages. This * -* limitation of liability shall not apply to liability for death or * -* personal injury resulting from such party's negligence to the * -* extent applicable law prohibits such limitation. Some * -* jurisdictions do not allow the exclusion or limitation of * -* incidental or consequential damages, so this exclusion and * -* limitation may not apply to You. * -* * -************************************************************************ - -8. Litigation -------------- - -Any litigation relating to this License may be brought only in the -courts of a jurisdiction where the defendant maintains its principal -place of business and such litigation shall be governed by laws of that -jurisdiction, without reference to its conflict-of-law provisions. -Nothing in this Section shall prevent a party's ability to bring -cross-claims or counter-claims. - -9. Miscellaneous ----------------- - -This License represents the complete agreement concerning the subject -matter hereof. If any provision of this License is held to be -unenforceable, such provision shall be reformed only to the extent -necessary to make it enforceable. Any law or regulation which provides -that the language of a contract shall be construed against the drafter -shall not be used to construe this License against a Contributor. - -10. Versions of the License ---------------------------- - -10.1. New Versions - -Mozilla Foundation is the license steward. Except as provided in Section -10.3, no one other than the license steward has the right to modify or -publish new versions of this License. Each version will be given a -distinguishing version number. - -10.2. Effect of New Versions - -You may distribute the Covered Software under the terms of the version -of the License under which You originally received the Covered Software, -or under the terms of any subsequent version published by the license -steward. - -10.3. Modified Versions - -If you create software not governed by this License, and you want to -create a new license for such software, you may create and use a -modified version of this License if you rename the license and remove -any references to the name of the license steward (except to note that -such modified license differs from this License). - -10.4. Distributing Source Code Form that is Incompatible With Secondary -Licenses - -If You choose to distribute Source Code Form that is Incompatible With -Secondary Licenses under the terms of this version of the License, the -notice described in Exhibit B of this License must be attached. - -Exhibit A - Source Code Form License Notice -------------------------------------------- - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at https://mozilla.org/MPL/2.0/. +MIT License -If it is not possible or desirable to put the notice in a particular -file, then You may include the notice in a location (such as a LICENSE -file in a relevant directory) where a recipient would be likely to look -for such a notice. +Copyright (c) Jack Asher -You may add additional accurate notices of copyright ownership. +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: -Exhibit B - "Incompatible With Secondary Licenses" Notice ---------------------------------------------------------- +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. - This Source Code Form is "Incompatible With Secondary Licenses", as - defined by the Mozilla Public License, v. 2.0. +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. diff --git a/notices/worker.txt b/notices/worker.txt index d1080db..a13f85d 100644 --- a/notices/worker.txt +++ b/notices/worker.txt @@ -4,7 +4,7 @@ Generated by cargo-about 0.9.2 and tools/notices/notices.ts. Do not edit this bu This inventory conservatively includes build-time Rust dependencies as well as runtime dependencies; it does not claim every listed package contributes code to the executable. -Astrology Engine and the local adapters are MPL-2.0 licensed. Third-party components retain their own terms. +Astrology Engine and the local adapters are MIT licensed. Third-party components retain their own terms. MPL source access: obtain each unmodified covered dependency from its exact-version source URL below. If distributing modifications, provide their corresponding MPL source and preserve these notices. Keep source available to recipients. @@ -17,390 +17,34 @@ Project copyright and license notice Astrology Engine Copyright (c) Jack Asher -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. - -This notice applies to the original project source, tools, and example -adapters. Third-party code and data retain their existing terms; see -THIRD_PARTY_NOTICES.md. +Original project source, tools, and example adapters are licensed under the +MIT License; see LICENSE. Third-party code and data retain their existing +terms; see THIRD_PARTY_NOTICES.md. Project license -Mozilla Public License Version 2.0 -================================== - -1. Definitions --------------- - -1.1. "Contributor" - means each individual or legal entity that creates, contributes to - the creation of, or owns Covered Software. - -1.2. "Contributor Version" - means the combination of the Contributions of others (if any) used - by a Contributor and that particular Contributor's Contribution. - -1.3. "Contribution" - means Covered Software of a particular Contributor. - -1.4. "Covered Software" - means Source Code Form to which the initial Contributor has attached - the notice in Exhibit A, the Executable Form of such Source Code - Form, and Modifications of such Source Code Form, in each case - including portions thereof. - -1.5. "Incompatible With Secondary Licenses" - means - - (a) that the initial Contributor has attached the notice described - in Exhibit B to the Covered Software; or - - (b) that the Covered Software was made available under the terms of - version 1.1 or earlier of the License, but not also under the - terms of a Secondary License. - -1.6. "Executable Form" - means any form of the work other than Source Code Form. - -1.7. "Larger Work" - means a work that combines Covered Software with other material, in - a separate file or files, that is not Covered Software. - -1.8. "License" - means this document. - -1.9. "Licensable" - means having the right to grant, to the maximum extent possible, - whether at the time of the initial grant or subsequently, any and - all of the rights conveyed by this License. - -1.10. "Modifications" - means any of the following: - - (a) any file in Source Code Form that results from an addition to, - deletion from, or modification of the contents of Covered - Software; or - - (b) any new file in Source Code Form that contains any Covered - Software. - -1.11. "Patent Claims" of a Contributor - means any patent claim(s), including without limitation, method, - process, and apparatus claims, in any patent Licensable by such - Contributor that would be infringed, but for the grant of the - License, by the making, using, selling, offering for sale, having - made, import, or transfer of either its Contributions or its - Contributor Version. - -1.12. "Secondary License" - means either the GNU General Public License, Version 2.0, the GNU - Lesser General Public License, Version 2.1, the GNU Affero General - Public License, Version 3.0, or any later versions of those - licenses. - -1.13. "Source Code Form" - means the form of the work preferred for making modifications. - -1.14. "You" (or "Your") - means an individual or a legal entity exercising rights under this - License. For legal entities, "You" includes any entity that - controls, is controlled by, or is under common control with You. For - purposes of this definition, "control" means (a) the power, direct - or indirect, to cause the direction or management of such entity, - whether by contract or otherwise, or (b) ownership of more than - fifty percent (50%) of the outstanding shares or beneficial - ownership of such entity. - -2. License Grants and Conditions --------------------------------- - -2.1. Grants - -Each Contributor hereby grants You a world-wide, royalty-free, -non-exclusive license: - -(a) under intellectual property rights (other than patent or trademark) - Licensable by such Contributor to use, reproduce, make available, - modify, display, perform, distribute, and otherwise exploit its - Contributions, either on an unmodified basis, with Modifications, or - as part of a Larger Work; and - -(b) under Patent Claims of such Contributor to make, use, sell, offer - for sale, have made, import, and otherwise transfer either its - Contributions or its Contributor Version. - -2.2. Effective Date - -The licenses granted in Section 2.1 with respect to any Contribution -become effective for each Contribution on the date the Contributor first -distributes such Contribution. - -2.3. Limitations on Grant Scope - -The licenses granted in this Section 2 are the only rights granted under -this License. No additional rights or licenses will be implied from the -distribution or licensing of Covered Software under this License. -Notwithstanding Section 2.1(b) above, no patent license is granted by a -Contributor: - -(a) for any code that a Contributor has removed from Covered Software; - or - -(b) for infringements caused by: (i) Your and any other third party's - modifications of Covered Software, or (ii) the combination of its - Contributions with other software (except as part of its Contributor - Version); or - -(c) under Patent Claims infringed by Covered Software in the absence of - its Contributions. - -This License does not grant any rights in the trademarks, service marks, -or logos of any Contributor (except as may be necessary to comply with -the notice requirements in Section 3.4). - -2.4. Subsequent Licenses - -No Contributor makes additional grants as a result of Your choice to -distribute the Covered Software under a subsequent version of this -License (see Section 10.2) or under the terms of a Secondary License (if -permitted under the terms of Section 3.3). - -2.5. Representation - -Each Contributor represents that the Contributor believes its -Contributions are its original creation(s) or it has sufficient rights -to grant the rights to its Contributions conveyed by this License. - -2.6. Fair Use - -This License is not intended to limit any rights You have under -applicable copyright doctrines of fair use, fair dealing, or other -equivalents. - -2.7. Conditions - -Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted -in Section 2.1. - -3. Responsibilities -------------------- - -3.1. Distribution of Source Form - -All distribution of Covered Software in Source Code Form, including any -Modifications that You create or to which You contribute, must be under -the terms of this License. You must inform recipients that the Source -Code Form of the Covered Software is governed by the terms of this -License, and how they can obtain a copy of this License. You may not -attempt to alter or restrict the recipients' rights in the Source Code -Form. - -3.2. Distribution of Executable Form - -If You distribute Covered Software in Executable Form then: - -(a) such Covered Software must also be made available in Source Code - Form, as described in Section 3.1, and You must inform recipients of - the Executable Form how they can obtain a copy of such Source Code - Form by reasonable means in a timely manner, at a charge no more - than the cost of distribution to the recipient; and - -(b) You may distribute such Executable Form under the terms of this - License, or sublicense it under different terms, provided that the - license for the Executable Form does not attempt to limit or alter - the recipients' rights in the Source Code Form under this License. - -3.3. Distribution of a Larger Work - -You may create and distribute a Larger Work under terms of Your choice, -provided that You also comply with the requirements of this License for -the Covered Software. If the Larger Work is a combination of Covered -Software with a work governed by one or more Secondary Licenses, and the -Covered Software is not Incompatible With Secondary Licenses, this -License permits You to additionally distribute such Covered Software -under the terms of such Secondary License(s), so that the recipient of -the Larger Work may, at their option, further distribute the Covered -Software under the terms of either this License or such Secondary -License(s). - -3.4. Notices - -You may not remove or alter the substance of any license notices -(including copyright notices, patent notices, disclaimers of warranty, -or limitations of liability) contained within the Source Code Form of -the Covered Software, except that You may alter any license notices to -the extent required to remedy known factual inaccuracies. - -3.5. Application of Additional Terms - -You may choose to offer, and to charge a fee for, warranty, support, -indemnity or liability obligations to one or more recipients of Covered -Software. However, You may do so only on Your own behalf, and not on -behalf of any Contributor. You must make it absolutely clear that any -such warranty, support, indemnity, or liability obligation is offered by -You alone, and You hereby agree to indemnify every Contributor for any -liability incurred by such Contributor as a result of warranty, support, -indemnity or liability terms You offer. You may include additional -disclaimers of warranty and limitations of liability specific to any -jurisdiction. - -4. Inability to Comply Due to Statute or Regulation ---------------------------------------------------- - -If it is impossible for You to comply with any of the terms of this -License with respect to some or all of the Covered Software due to -statute, judicial order, or regulation then You must: (a) comply with -the terms of this License to the maximum extent possible; and (b) -describe the limitations and the code they affect. Such description must -be placed in a text file included with all distributions of the Covered -Software under this License. Except to the extent prohibited by statute -or regulation, such description must be sufficiently detailed for a -recipient of ordinary skill to be able to understand it. - -5. Termination --------------- - -5.1. The rights granted under this License will terminate automatically -if You fail to comply with any of its terms. However, if You become -compliant, then the rights granted under this License from a particular -Contributor are reinstated (a) provisionally, unless and until such -Contributor explicitly and finally terminates Your grants, and (b) on an -ongoing basis, if such Contributor fails to notify You of the -non-compliance by some reasonable means prior to 60 days after You have -come back into compliance. Moreover, Your grants from a particular -Contributor are reinstated on an ongoing basis if such Contributor -notifies You of the non-compliance by some reasonable means, this is the -first time You have received notice of non-compliance with this License -from such Contributor, and You become compliant prior to 30 days after -Your receipt of the notice. - -5.2. If You initiate litigation against any entity by asserting a patent -infringement claim (excluding declaratory judgment actions, -counter-claims, and cross-claims) alleging that a Contributor Version -directly or indirectly infringes any patent, then the rights granted to -You by any and all Contributors for the Covered Software under Section -2.1 of this License shall terminate. - -5.3. In the event of termination under Sections 5.1 or 5.2 above, all -end user license agreements (excluding distributors and resellers) which -have been validly granted by You or Your distributors under this License -prior to termination shall survive termination. - -************************************************************************ -* * -* 6. Disclaimer of Warranty * -* ------------------------- * -* * -* Covered Software is provided under this License on an "as is" * -* basis, without warranty of any kind, either expressed, implied, or * -* statutory, including, without limitation, warranties that the * -* Covered Software is free of defects, merchantable, fit for a * -* particular purpose or non-infringing. The entire risk as to the * -* quality and performance of the Covered Software is with You. * -* Should any Covered Software prove defective in any respect, You * -* (not any Contributor) assume the cost of any necessary servicing, * -* repair, or correction. This disclaimer of warranty constitutes an * -* essential part of this License. No use of any Covered Software is * -* authorized under this License except under this disclaimer. * -* * -************************************************************************ - -************************************************************************ -* * -* 7. Limitation of Liability * -* -------------------------- * -* * -* Under no circumstances and under no legal theory, whether tort * -* (including negligence), contract, or otherwise, shall any * -* Contributor, or anyone who distributes Covered Software as * -* permitted above, be liable to You for any direct, indirect, * -* special, incidental, or consequential damages of any character * -* including, without limitation, damages for lost profits, loss of * -* goodwill, work stoppage, computer failure or malfunction, or any * -* and all other commercial damages or losses, even if such party * -* shall have been informed of the possibility of such damages. This * -* limitation of liability shall not apply to liability for death or * -* personal injury resulting from such party's negligence to the * -* extent applicable law prohibits such limitation. Some * -* jurisdictions do not allow the exclusion or limitation of * -* incidental or consequential damages, so this exclusion and * -* limitation may not apply to You. * -* * -************************************************************************ - -8. Litigation -------------- - -Any litigation relating to this License may be brought only in the -courts of a jurisdiction where the defendant maintains its principal -place of business and such litigation shall be governed by laws of that -jurisdiction, without reference to its conflict-of-law provisions. -Nothing in this Section shall prevent a party's ability to bring -cross-claims or counter-claims. - -9. Miscellaneous ----------------- - -This License represents the complete agreement concerning the subject -matter hereof. If any provision of this License is held to be -unenforceable, such provision shall be reformed only to the extent -necessary to make it enforceable. Any law or regulation which provides -that the language of a contract shall be construed against the drafter -shall not be used to construe this License against a Contributor. - -10. Versions of the License ---------------------------- - -10.1. New Versions - -Mozilla Foundation is the license steward. Except as provided in Section -10.3, no one other than the license steward has the right to modify or -publish new versions of this License. Each version will be given a -distinguishing version number. - -10.2. Effect of New Versions - -You may distribute the Covered Software under the terms of the version -of the License under which You originally received the Covered Software, -or under the terms of any subsequent version published by the license -steward. - -10.3. Modified Versions - -If you create software not governed by this License, and you want to -create a new license for such software, you may create and use a -modified version of this License if you rename the license and remove -any references to the name of the license steward (except to note that -such modified license differs from this License). - -10.4. Distributing Source Code Form that is Incompatible With Secondary -Licenses - -If You choose to distribute Source Code Form that is Incompatible With -Secondary Licenses under the terms of this version of the License, the -notice described in Exhibit B of this License must be attached. - -Exhibit A - Source Code Form License Notice -------------------------------------------- - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at https://mozilla.org/MPL/2.0/. +MIT License -If it is not possible or desirable to put the notice in a particular -file, then You may include the notice in a location (such as a LICENSE -file in a relevant directory) where a recipient would be likely to look -for such a notice. +Copyright (c) Jack Asher -You may add additional accurate notices of copyright ownership. +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: -Exhibit B - "Incompatible With Secondary Licenses" Notice ---------------------------------------------------------- +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. - This Source Code Form is "Incompatible With Secondary Licenses", as - defined by the Mozilla Public License, v. 2.0. +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. diff --git a/src/astro/find_moment.rs b/src/astro/find_moment.rs index 0f9571f..ec95103 100644 --- a/src/astro/find_moment.rs +++ b/src/astro/find_moment.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT const SEARCH_WINDOW_DAYS: f64 = 730.0; const SCAN_STEP_DAYS: f64 = 1.0; diff --git a/src/astro/frames.rs b/src/astro/frames.rs index ad4a04b..baee17d 100644 --- a/src/astro/frames.rs +++ b/src/astro/frames.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT // This file incorporates work covered by the following copyright and // permission notice: diff --git a/src/astro/houses.rs b/src/astro/houses.rs index c4759be..a6f5c88 100644 --- a/src/astro/houses.rs +++ b/src/astro/houses.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT use super::frames::{gast_degrees, true_obliquity}; use super::time::AstroTime; diff --git a/src/astro/mod.rs b/src/astro/mod.rs index b7b0096..d9122c7 100644 --- a/src/astro/mod.rs +++ b/src/astro/mod.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT pub mod find_moment; pub mod frames; diff --git a/src/astro/time.rs b/src/astro/time.rs index 52ba1b5..533d93d 100644 --- a/src/astro/time.rs +++ b/src/astro/time.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT // This file incorporates work covered by the following copyright and // permission notice: diff --git a/src/astro/vec.rs b/src/astro/vec.rs index bd4d3b9..9357dda 100644 --- a/src/astro/vec.rs +++ b/src/astro/vec.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT #[derive(Debug, Clone, Copy, PartialEq)] pub struct Vec3 { diff --git a/src/chart.rs b/src/chart.rs index f47c99e..34fd1df 100644 --- a/src/chart.rs +++ b/src/chart.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT //! One chart pipeline with explicit zodiac and house conventions. use crate::astro::houses::{ diff --git a/src/cheb/chart.rs b/src/cheb/chart.rs index 9ae7edc..05060d8 100644 --- a/src/cheb/chart.rs +++ b/src/cheb/chart.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT use super::eval::{ChebPlace, Ephemeris, EvalError}; use super::format::SeriesBody; diff --git a/src/cheb/eval.rs b/src/cheb/eval.rs index 82b32ee..2e655a2 100644 --- a/src/cheb/eval.rs +++ b/src/cheb/eval.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT use super::fit::clenshaw; use super::format::{self, BlobError, Header, Quantity, SeriesBody, SeriesMeta}; diff --git a/src/cheb/fit.rs b/src/cheb/fit.rs index 5d5142a..505a2ca 100644 --- a/src/cheb/fit.rs +++ b/src/cheb/fit.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT pub fn clenshaw(coeffs: &[f64], x: f64) -> f64 { let mut b1 = 0.0_f64; diff --git a/src/cheb/format.rs b/src/cheb/format.rs index 654a29f..8d756f8 100644 --- a/src/cheb/format.rs +++ b/src/cheb/format.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT use crate::types::Body; pub const MAGIC: [u8; 8] = *b"HDCHEB01"; diff --git a/src/cheb/mod.rs b/src/cheb/mod.rs index 6222586..27693a4 100644 --- a/src/cheb/mod.rs +++ b/src/cheb/mod.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT pub mod chart; pub mod eval; diff --git a/src/conventions.rs b/src/conventions.rs index 7f7e104..c6c1074 100644 --- a/src/conventions.rs +++ b/src/conventions.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT //! Explicit chart conventions preserved by regression fixtures. use crate::{CalculationError, Epoch}; diff --git a/src/coverage_window.rs b/src/coverage_window.rs index e91c7ba..6158703 100644 --- a/src/coverage_window.rs +++ b/src/coverage_window.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT const SECONDS_PER_DAY: f64 = 86_400.0; #[derive(Clone, Copy, Debug, PartialEq)] diff --git a/src/lib.rs b/src/lib.rs index 24d4222..43e1119 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT #![allow(clippy::inconsistent_digit_grouping)] #![allow(clippy::excessive_precision)] diff --git a/src/search.rs b/src/search.rs index a3f84e9..e23cac6 100644 --- a/src/search.rs +++ b/src/search.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT use crate::{CalculationError, Direction, Ephemeris, Epoch, SeriesBody}; diff --git a/src/sidereal.rs b/src/sidereal.rs index ec441b6..afa6859 100644 --- a/src/sidereal.rs +++ b/src/sidereal.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT //! Fagan–Bradley zodiac, using the existing IAU 2006 precession rotation. //! diff --git a/src/types.rs b/src/types.rs index 756bbdc..4aeb348 100644 --- a/src/types.rs +++ b/src/types.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT use serde::{Deserialize, Serialize}; #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)] diff --git a/tests/blob_format.rs b/tests/blob_format.rs index 2854380..b195f37 100644 --- a/tests/blob_format.rs +++ b/tests/blob_format.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT #![cfg(feature = "generation")] diff --git a/tests/conventions.rs b/tests/conventions.rs index 95f5bc6..e268c8b 100644 --- a/tests/conventions.rs +++ b/tests/conventions.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT use astrology_engine::{ assign_sign, calculate_chart, effective_configuration, true_sky_offset, whole_sign_cusps, diff --git a/tests/earth_projection.rs b/tests/earth_projection.rs index 4c67fb7..4dc0d47 100644 --- a/tests/earth_projection.rs +++ b/tests/earth_projection.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT use astrology_engine::{earth_from_sun, ChartBody, ChebPlace}; diff --git a/tests/fagan_bradley_legacy.rs b/tests/fagan_bradley_legacy.rs index e229b55..beba7a0 100644 --- a/tests/fagan_bradley_legacy.rs +++ b/tests/fagan_bradley_legacy.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT use astrology_engine::{calculate_chart, ChartInput, Ephemeris, Location, ZodiacConfiguration}; use serde_json::{json, Value}; diff --git a/tests/frame_reference.rs b/tests/frame_reference.rs index 4716489..edfbc16 100644 --- a/tests/frame_reference.rs +++ b/tests/frame_reference.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT #![cfg(feature = "generation")] diff --git a/tests/sidereal.rs b/tests/sidereal.rs index 782cf5c..cdce00b 100644 --- a/tests/sidereal.rs +++ b/tests/sidereal.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT #[path = "../tools/verification/common/mod.rs"] mod common; diff --git a/tools/ci/changes.test.ts b/tools/ci/changes.test.ts index 843a56f..8e56378 100644 --- a/tools/ci/changes.test.ts +++ b/tools/ci/changes.test.ts @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT import { test, expect } from 'bun:test'; import { mkdtempSync, writeFileSync, renameSync, rmSync } from 'node:fs'; diff --git a/tools/ci/changes.ts b/tools/ci/changes.ts index bfd8ca9..c4accd0 100644 --- a/tools/ci/changes.ts +++ b/tools/ci/changes.ts @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT import { execFileSync } from 'node:child_process'; import { appendFileSync, readFileSync } from 'node:fs'; diff --git a/tools/ci/download.test.ts b/tools/ci/download.test.ts index 6a5728c..6e9725b 100644 --- a/tools/ci/download.test.ts +++ b/tools/ci/download.test.ts @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT import { test, expect } from 'bun:test'; import { downloadVerified, hash, reuseOrInstall, validateVersion, type Download } from './download.ts'; diff --git a/tools/ci/download.ts b/tools/ci/download.ts index 31f30ee..a4795a4 100644 --- a/tools/ci/download.ts +++ b/tools/ci/download.ts @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT import { createHash } from 'node:crypto'; export type Download = { url: string; sha256: string; version: string; binary: string; versionOutput: string }; diff --git a/tools/ci/gate.ts b/tools/ci/gate.ts index f0a6f01..15989e6 100644 --- a/tools/ci/gate.ts +++ b/tools/ci/gate.ts @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT import { jobs, type Selection } from './changes.ts'; export type Result = 'success' | 'failure' | 'cancelled' | 'skipped'; diff --git a/tools/ci/setup.ts b/tools/ci/setup.ts index 28c130f..9b17bef 100644 --- a/tools/ci/setup.ts +++ b/tools/ci/setup.ts @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT import { execFileSync } from 'node:child_process'; import { appendFileSync, existsSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, writeFileSync } from 'node:fs'; diff --git a/tools/dataset-builder/Cargo.toml b/tools/dataset-builder/Cargo.toml index 6b9e2ea..5cac30b 100644 --- a/tools/dataset-builder/Cargo.toml +++ b/tools/dataset-builder/Cargo.toml @@ -3,7 +3,7 @@ name = "dataset-builder" version = "0.1.0" edition = "2021" rust-version = "1.96" -license = "MPL-2.0" +license = "MIT" publish = false [dependencies] diff --git a/tools/dataset-builder/src/astro/apparent.rs b/tools/dataset-builder/src/astro/apparent.rs index 9178829..a0bab7d 100644 --- a/tools/dataset-builder/src/astro/apparent.rs +++ b/tools/dataset-builder/src/astro/apparent.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT // This file incorporates work covered by the following copyright and // permission notice: diff --git a/tools/dataset-builder/src/astro/mod.rs b/tools/dataset-builder/src/astro/mod.rs index a9daf0a..033112f 100644 --- a/tools/dataset-builder/src/astro/mod.rs +++ b/tools/dataset-builder/src/astro/mod.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT pub mod apparent; pub mod node; diff --git a/tools/dataset-builder/src/astro/node.rs b/tools/dataset-builder/src/astro/node.rs index d53ff3d..67060ac 100644 --- a/tools/dataset-builder/src/astro/node.rs +++ b/tools/dataset-builder/src/astro/node.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT use super::frames::{eqj_to_ect_state, RAD2DEG}; use super::time::AstroTime; diff --git a/tools/dataset-builder/src/astro/provider.rs b/tools/dataset-builder/src/astro/provider.rs index d3470aa..1cc288a 100644 --- a/tools/dataset-builder/src/astro/provider.rs +++ b/tools/dataset-builder/src/astro/provider.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT use crate::kernel::store::KernelStore; use crate::types::{Body, FrameError, StateProvider, StateVector}; diff --git a/tools/dataset-builder/src/cheb/fit.rs b/tools/dataset-builder/src/cheb/fit.rs index d0963c6..2ae0cdb 100644 --- a/tools/dataset-builder/src/cheb/fit.rs +++ b/tools/dataset-builder/src/cheb/fit.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT use astrology_engine::tooling::clenshaw; pub fn to_unit(t: f64, lo: f64, hi: f64) -> f64 { diff --git a/tools/dataset-builder/src/cheb/gen.rs b/tools/dataset-builder/src/cheb/gen.rs index cd883ac..2eb7f25 100644 --- a/tools/dataset-builder/src/cheb/gen.rs +++ b/tools/dataset-builder/src/cheb/gen.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT use super::fit::{boundary_jump_arcsec, fit_segment, max_residual_arcsec, FitKind}; use super::format::{Quantity, SeriesBody, WriteSeries}; diff --git a/tools/dataset-builder/src/cheb/mod.rs b/tools/dataset-builder/src/cheb/mod.rs index eb67d8a..e53ca18 100644 --- a/tools/dataset-builder/src/cheb/mod.rs +++ b/tools/dataset-builder/src/cheb/mod.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT pub mod fit; pub mod gen; diff --git a/tools/dataset-builder/src/kernel/daf_index.rs b/tools/dataset-builder/src/kernel/daf_index.rs index d0f47ff..7c6efab 100644 --- a/tools/dataset-builder/src/kernel/daf_index.rs +++ b/tools/dataset-builder/src/kernel/daf_index.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT pub use crate::coverage_window::{intersect_windows, CoverageWindow}; use anise::naif::daf::DAF; diff --git a/tools/dataset-builder/src/kernel/mod.rs b/tools/dataset-builder/src/kernel/mod.rs index 0f159d5..1e8964b 100644 --- a/tools/dataset-builder/src/kernel/mod.rs +++ b/tools/dataset-builder/src/kernel/mod.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT pub mod daf_index; pub mod store; diff --git a/tools/dataset-builder/src/kernel/store.rs b/tools/dataset-builder/src/kernel/store.rs index bbaf84f..d9405f5 100644 --- a/tools/dataset-builder/src/kernel/store.rs +++ b/tools/dataset-builder/src/kernel/store.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT use crate::coverage_window::CoverageWindow; use crate::types::{Body, Frame as FrameTag, StateVector}; diff --git a/tools/dataset-builder/src/lib.rs b/tools/dataset-builder/src/lib.rs index 7a05857..113aa0b 100644 --- a/tools/dataset-builder/src/lib.rs +++ b/tools/dataset-builder/src/lib.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT #![allow(clippy::inconsistent_digit_grouping)] #![allow(clippy::excessive_precision)] diff --git a/tools/dataset-builder/src/main.rs b/tools/dataset-builder/src/main.rs index 8501c41..4af2983 100644 --- a/tools/dataset-builder/src/main.rs +++ b/tools/dataset-builder/src/main.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT use dataset_builder::astro::node::ascending_node_longitude; use dataset_builder::astro::{apparent_lon_dec, KmStateProvider}; diff --git a/tools/jpl/cheby_fit.py b/tools/jpl/cheby_fit.py index 2090a63..3bcdc8f 100644 --- a/tools/jpl/cheby_fit.py +++ b/tools/jpl/cheby_fit.py @@ -1,5 +1,5 @@ # Copyright (c) Jack Asher -# SPDX-License-Identifier: MPL-2.0 +# SPDX-License-Identifier: MIT from __future__ import annotations import numpy as np diff --git a/tools/jpl/fit_gate.py b/tools/jpl/fit_gate.py index 02c9fa4..97dc9e4 100644 --- a/tools/jpl/fit_gate.py +++ b/tools/jpl/fit_gate.py @@ -1,5 +1,5 @@ # Copyright (c) Jack Asher -# SPDX-License-Identifier: MPL-2.0 +# SPDX-License-Identifier: MIT import math FIT_FLOOR_ARCSEC = 1.0 diff --git a/tools/jpl/horizons.py b/tools/jpl/horizons.py index a291d46..6380467 100644 --- a/tools/jpl/horizons.py +++ b/tools/jpl/horizons.py @@ -1,5 +1,5 @@ # Copyright (c) Jack Asher -# SPDX-License-Identifier: MPL-2.0 +# SPDX-License-Identifier: MIT from __future__ import annotations import io diff --git a/tools/jpl/spk_writer.py b/tools/jpl/spk_writer.py index 77ba555..396dde8 100644 --- a/tools/jpl/spk_writer.py +++ b/tools/jpl/spk_writer.py @@ -1,5 +1,5 @@ # Copyright (c) Jack Asher -# SPDX-License-Identifier: MPL-2.0 +# SPDX-License-Identifier: MIT from __future__ import annotations import struct diff --git a/tools/jpl/validate.py b/tools/jpl/validate.py index 5acb820..421033f 100644 --- a/tools/jpl/validate.py +++ b/tools/jpl/validate.py @@ -1,5 +1,5 @@ # Copyright (c) Jack Asher -# SPDX-License-Identifier: MPL-2.0 +# SPDX-License-Identifier: MIT from __future__ import annotations import numpy as np diff --git a/tools/notices/README.md b/tools/notices/README.md index 510fe5f..ee0a845 100644 --- a/tools/notices/README.md +++ b/tools/notices/README.md @@ -30,8 +30,8 @@ configuration require regeneration and review. Review every changed component and its complete packaged license and NOTICE files. MIT is preferred when offered as an alternative. Other permissive terms -are retained, including Unicode and BSD requirements. MPL is explicitly allowed -for first-party packages, hifitime and ANISE. Unknown expressions and unreviewed synthesized license +are retained, including Unicode and BSD requirements. First-party packages use MIT; MPL is explicitly allowed +for hifitime and ANISE. Unknown expressions and unreviewed synthesized license texts fail rather than being treated as MIT. Build-only Rust dependencies are included conservatively; dev-only Rust dependencies are excluded. @@ -74,7 +74,7 @@ The archive captures the editable first-party Rust and browser source, shared verification modules, manifests, lockfiles and build configuration from the current checkout. It excludes datasets and build caches. Dependency source uses the pinned upstream links above. The notice page links to the local archive; -serve it alongside browser Wasm and rebuild after changing covered code. +serve it alongside browser Wasm and rebuild after changing project code. Archive creation requires `tar`. Preserve the LICENSE and all notice files and the source archive when redistributing an artifact directory. A Worker runs server-side; its HTTP API does not need a new license endpoint. diff --git a/tools/notices/about.toml b/tools/notices/about.toml index 4bb6ca9..22cd40f 100644 --- a/tools/notices/about.toml +++ b/tools/notices/about.toml @@ -17,12 +17,12 @@ path = "LICENSE-ZLIB.md" license = "Zlib" checksum = "c43b9a9b1387ed53d2c49263838261129a010e280e3a174a792242c3e2c98db9" -# First-party source and adapters use MPL-2.0. +# First-party source and adapters use MIT. [astrology-engine] -accepted = ["MPL-2.0"] +accepted = ["MIT"] [dataset-builder] -accepted = ["MPL-2.0"] +accepted = ["MIT"] [astrology-worker-example] -accepted = ["MPL-2.0"] +accepted = ["MIT"] [configurable-chart-example] -accepted = ["MPL-2.0"] +accepted = ["MIT"] diff --git a/tools/notices/collect.ts b/tools/notices/collect.ts index 72d9016..2bc2cd0 100644 --- a/tools/notices/collect.ts +++ b/tools/notices/collect.ts @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT import { execFileSync } from 'node:child_process'; import { existsSync, readFileSync, readdirSync } from 'node:fs'; @@ -24,7 +24,7 @@ const legalFiles = (directory: string): string[] => { export const validateCollection = (data: Collected, reviewed: Set, firstPartyManifests = new Set()): void => { for (const { package: p, license } of data.crates) { if (!p.source) { - if (!firstPartyManifests.has(p.manifest_path) || p.license !== 'MPL-2.0') throw new Error(`Unreviewed path dependency: ${key(p)}`); + if (!firstPartyManifests.has(p.manifest_path) || p.license !== 'MIT') throw new Error(`Unreviewed path dependency: ${key(p)}`); continue; } if (p.source !== 'registry+https://github.com/rust-lang/crates.io-index') throw new Error(`Review unsupported registry/source: ${key(p)}`); @@ -97,7 +97,7 @@ export const collect = (root: string, profile: Profile): { text: string; package `Astrology Engine — ${profile} distribution notices`, 'Generated by cargo-about 0.9.2 and tools/notices/notices.ts. Do not edit this bundle.', 'This inventory conservatively includes build-time Rust dependencies as well as runtime dependencies; it does not claim every listed package contributes code to the executable.', - 'Astrology Engine and the local adapters are MPL-2.0 licensed. Third-party components retain their own terms.', + 'Astrology Engine and the local adapters are MIT licensed. Third-party components retain their own terms.', 'MPL source access: obtain each unmodified covered dependency from its exact-version source URL below. If distributing modifications, provide their corresponding MPL source and preserve these notices. Keep source available to recipients.', 'The project does not modify the dependency source listed here.', profile === 'builder' ? 'SOFA attribution: through the unchanged sofars Rust port used by ANISE, this builder uses routines and computations derived from software provided by the IAU SOFA Board. The Rust port and this project are not software provided by or endorsed by SOFA. We use the port as a dependency and make no changes to its routines. Its complete upstream terms are reproduced below.' : '', diff --git a/tools/notices/core.ts b/tools/notices/core.ts index 77fc50e..59fb8c7 100644 --- a/tools/notices/core.ts +++ b/tools/notices/core.ts @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT import { createHash } from 'node:crypto'; import { execFileSync } from 'node:child_process'; @@ -120,7 +120,7 @@ export const copy = (root: string, profile: Profile, destination: string): void }); write(out, 'THIRD_PARTY_NOTICES.txt', text); write(out, 'THIRD_PARTY_NOTICES.html', html(text) - .replace('
', `

Download Astrology Engine source (MPL-2.0)

`)
+    .replace('
', `

Download Astrology Engine source (MIT)

`)
     .replace('
', '

Rust standard library notices

')); write(out, 'RUST_LIBRARY_NOTICES.html', read(root, 'notices/RUST_LIBRARY_NOTICES.html')); }; diff --git a/tools/notices/notices.test.ts b/tools/notices/notices.test.ts index 311f96b..dab9818 100644 --- a/tools/notices/notices.test.ts +++ b/tools/notices/notices.test.ts @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT import { afterEach, test } from 'bun:test'; import assert from 'node:assert/strict'; @@ -82,10 +82,10 @@ test('upstream supplemental license bytes survive rendering without trimming', ( } }); -test('first-party paths require MPL metadata', () => { - const p = { name: 'astrology-engine', version: '0.1.0', license: 'MPL-2.0', manifest_path: '/project/Cargo.toml', source: null }; - const data = { crates: [{ package: p, license: 'MPL-2.0' }], licenses: [] }; +test('first-party paths require MIT metadata', () => { + const p = { name: 'astrology-engine', version: '0.1.0', license: 'MIT', manifest_path: '/project/Cargo.toml', source: null }; + const data = { crates: [{ package: p, license: 'MIT' }], licenses: [] }; validateCollection(data, new Set(), new Set([p.manifest_path])); - p.license = 'MIT'; + p.license = 'MPL-2.0'; assert.throws(() => validateCollection(data, new Set(), new Set([p.manifest_path])), /Unreviewed path dependency/); }); diff --git a/tools/notices/notices.ts b/tools/notices/notices.ts index 41f2bdd..6631f6c 100644 --- a/tools/notices/notices.ts +++ b/tools/notices/notices.ts @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT import { execFileSync } from 'node:child_process'; import { copyFileSync, mkdirSync } from 'node:fs'; diff --git a/tools/regenerate.py b/tools/regenerate.py index ba63321..9fb9319 100644 --- a/tools/regenerate.py +++ b/tools/regenerate.py @@ -1,5 +1,5 @@ # Copyright (c) Jack Asher -# SPDX-License-Identifier: MPL-2.0 +# SPDX-License-Identifier: MIT import argparse import hashlib diff --git a/tools/verification/check_boundaries.py b/tools/verification/check_boundaries.py index 97f4ba2..5d909be 100644 --- a/tools/verification/check_boundaries.py +++ b/tools/verification/check_boundaries.py @@ -1,5 +1,5 @@ # Copyright (c) Jack Asher -# SPDX-License-Identifier: MPL-2.0 +# SPDX-License-Identifier: MIT import json import subprocess diff --git a/tools/verification/check_prohibited_usage.py b/tools/verification/check_prohibited_usage.py index 7bf7dad..60dfe60 100644 --- a/tools/verification/check_prohibited_usage.py +++ b/tools/verification/check_prohibited_usage.py @@ -1,5 +1,5 @@ # Copyright (c) Jack Asher -# SPDX-License-Identifier: MPL-2.0 +# SPDX-License-Identifier: MIT """Check proposed or committed content against the repository usage policy.""" diff --git a/tools/verification/common/mod.rs b/tools/verification/common/mod.rs index e3ec2a1..f193ed4 100644 --- a/tools/verification/common/mod.rs +++ b/tools/verification/common/mod.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT pub fn crc(bytes: &[u8]) -> u32 { let mut value = u32::MAX; diff --git a/tools/verification/compare.py b/tools/verification/compare.py index 33d4334..c7339f3 100644 --- a/tools/verification/compare.py +++ b/tools/verification/compare.py @@ -1,5 +1,5 @@ # Copyright (c) Jack Asher -# SPDX-License-Identifier: MPL-2.0 +# SPDX-License-Identifier: MIT import argparse import json diff --git a/tools/verification/parity.py b/tools/verification/parity.py index 94e0ae8..574827a 100644 --- a/tools/verification/parity.py +++ b/tools/verification/parity.py @@ -1,5 +1,5 @@ # Copyright (c) Jack Asher -# SPDX-License-Identifier: MPL-2.0 +# SPDX-License-Identifier: MIT import argparse import gzip diff --git a/tools/verification/structural.rs b/tools/verification/structural.rs index 442ab38..349f011 100644 --- a/tools/verification/structural.rs +++ b/tools/verification/structural.rs @@ -1,5 +1,5 @@ // Copyright (c) Jack Asher -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: MIT mod common; use astrology_engine::{ diff --git a/tools/verification/test_acquisition.py b/tools/verification/test_acquisition.py index 7dc4204..65715e9 100644 --- a/tools/verification/test_acquisition.py +++ b/tools/verification/test_acquisition.py @@ -1,5 +1,5 @@ # Copyright (c) Jack Asher -# SPDX-License-Identifier: MPL-2.0 +# SPDX-License-Identifier: MIT import hashlib import importlib.util diff --git a/tools/verification/test_chart_migration.py b/tools/verification/test_chart_migration.py index b519ce1..8360f96 100644 --- a/tools/verification/test_chart_migration.py +++ b/tools/verification/test_chart_migration.py @@ -1,5 +1,5 @@ # Copyright (c) Jack Asher -# SPDX-License-Identifier: MPL-2.0 +# SPDX-License-Identifier: MIT """Negative controls for the narrow frozen-chart migration policy.""" import copy diff --git a/tools/verification/test_compare.py b/tools/verification/test_compare.py index d625692..dd37bb5 100644 --- a/tools/verification/test_compare.py +++ b/tools/verification/test_compare.py @@ -1,5 +1,5 @@ # Copyright (c) Jack Asher -# SPDX-License-Identifier: MPL-2.0 +# SPDX-License-Identifier: MIT import copy import importlib.util diff --git a/tools/verification/test_generation.py b/tools/verification/test_generation.py index 6502d58..3e80382 100644 --- a/tools/verification/test_generation.py +++ b/tools/verification/test_generation.py @@ -1,5 +1,5 @@ # Copyright (c) Jack Asher -# SPDX-License-Identifier: MPL-2.0 +# SPDX-License-Identifier: MIT import hashlib import json diff --git a/tools/verification/test_prohibited_usage.py b/tools/verification/test_prohibited_usage.py index ade5685..e962997 100644 --- a/tools/verification/test_prohibited_usage.py +++ b/tools/verification/test_prohibited_usage.py @@ -1,5 +1,5 @@ # Copyright (c) Jack Asher -# SPDX-License-Identifier: MPL-2.0 +# SPDX-License-Identifier: MIT """Exercise the actual hook in temporary Git repositories."""