diff --git a/.github/PULL_REQUEST_TEMPLATE/detailed.md b/.github/PULL_REQUEST_TEMPLATE/detailed.md index 8565602e..7726a977 100644 --- a/.github/PULL_REQUEST_TEMPLATE/detailed.md +++ b/.github/PULL_REQUEST_TEMPLATE/detailed.md @@ -60,7 +60,7 @@ Closes # - [ ] Public API changes are reflected in `CHANGELOG.md` - [ ] Public API changes are reflected in rustdoc / README / examples - [ ] No `todo*.md` or other local-only notes are staged -- [ ] License header / `LICENSE` reference unchanged (PolyForm-NC-1.0.0) +- [ ] License header / `LICENSE` reference unchanged (MIT OR Apache-2.0) ## Notes for reviewers diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1b7bb2bd..232890b7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -536,7 +536,7 @@ jobs: pkg.repository = { type: 'git', url: 'https://github.com/wickra-lib/wickra' }; pkg.homepage = 'https://github.com/wickra-lib/wickra'; pkg.bugs = { url: 'https://github.com/wickra-lib/wickra/issues' }; - pkg.license = 'PolyForm-Noncommercial-1.0.0'; + pkg.license = 'MIT OR Apache-2.0'; fs.writeFileSync('package.json', JSON.stringify(pkg, null, 2)); " diff --git a/CHANGELOG.md b/CHANGELOG.md index ac95db63..21c0b9ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - **Advance/Decline Volume Line** — cumulative net advancing-minus-declining volume across the universe (`AD_VOLUME_LINE`). - **Advance/Decline Ratio** — advancing issues divided by declining issues across the universe (`ADVANCE_DECLINE_RATIO`). +### Changed +- **Relicensed** from PolyForm Noncommercial 1.0.0 to dual **MIT OR Apache-2.0**. Wickra is now OSI-approved, permissive open source; commercial use is permitted under either license. See [`LICENSE-MIT`](LICENSE-MIT) and [`LICENSE-APACHE`](LICENSE-APACHE). + ## [0.4.7] - 2026-06-03 ### Added diff --git a/CITATION.cff b/CITATION.cff index 791f726a..76733019 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -26,4 +26,6 @@ keywords: - quantitative-finance - rust - time-series -license: PolyForm-Noncommercial-1.0.0 +license: + - MIT + - Apache-2.0 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index aa0d04b9..608d6b63 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -5,11 +5,11 @@ build the project, the standards a change must meet, and how to get it merged. ## License of contributions -Wickra is licensed under the **PolyForm Noncommercial License 1.0.0** (see -[`LICENSE`](LICENSE)). By submitting a contribution you agree that it is -licensed to the project under those same terms. The Noncommercial license -permits use for any purpose **other than** a commercial one; keep that in mind -when proposing features or depending on Wickra elsewhere. +Wickra is dual-licensed under the [MIT](LICENSE-MIT) and +[Apache-2.0](LICENSE-APACHE) licenses; users may choose either. Unless you +explicitly state otherwise, any contribution you intentionally submit for +inclusion in the work, as defined in the Apache-2.0 license, shall be dual +licensed as above, without any additional terms or conditions. ## Project layout diff --git a/Cargo.toml b/Cargo.toml index 05d933aa..b568433e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ version = "0.4.7" authors = ["kingchenc "] edition = "2021" rust-version = "1.86" -license-file = "LICENSE" +license = "MIT OR Apache-2.0" repository = "https://github.com/wickra-lib/wickra" homepage = "https://github.com/wickra-lib/wickra" readme = "README.md" diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 4ac5ba78..00000000 --- a/LICENSE +++ /dev/null @@ -1,161 +0,0 @@ -# PolyForm Noncommercial License 1.0.0 - - - -## Acceptance - -In order to get any license under these terms, you must agree -to them as both strict obligations and conditions to all -your licenses. - -## Copyright License - -The licensor grants you a copyright license for the -software to do everything you might do with the software -that would otherwise infringe the licensor's copyright -in it for any permitted purpose. However, you may -only distribute the software according to [Distribution -License](#distribution-license) and make changes or new works -based on the software according to [Changes and New Works -License](#changes-and-new-works-license). - -## Distribution License - -The licensor grants you an additional copyright license -to distribute copies of the software. Your license to -distribute covers distributing the software with changes -and new works permitted by [Changes and New Works -License](#changes-and-new-works-license). - -## Notices - -You must ensure that anyone who gets a copy of any part of -the software from you also gets a copy of these terms or the -URL for them above, as well as copies of any plain-text lines -beginning with `Required Notice:` that the licensor provided -with the software. For example: - -> Required Notice: Copyright 2026 kingchenc (https://github.com/wickra-lib/wickra) - -## Changes and New Works License - -The licensor grants you an additional copyright license -to make changes and new works based on the software for any -permitted purpose. - -## Patent License - -The licensor grants you a patent license for the software that -covers patent claims the licensor can license, or becomes able -to license, that you would infringe by using the software. - -## Noncommercial Purposes - -Any noncommercial purpose is a permitted purpose. - -## Personal Uses - -Personal use for research, experiment, and testing for -the benefit of public knowledge, personal study, private -entertainment, hobby projects, amateur pursuits, or religious -observance, without any anticipated commercial application, -is use for a permitted purpose. - -## Noncommercial Organizations - -Use by any charitable organization, educational institution, -public research organization, public safety or health -organization, environmental protection organization, or -government institution is use for a permitted purpose regardless -of the source of funding or obligations resulting from the -funding. - -## Fair Use - -You may have "fair use" rights for the software under the -law. These terms do not limit them. - -## No Other Rights - -These terms do not allow you to sublicense or transfer any of -your licenses to anyone else, or prevent the licensor from -granting licenses to anyone else. These terms do not imply -any other licenses. - -## Patent Defense - -If you make any written claim that the software infringes or -contributes to infringement of any patent, your patent license -for the software granted under these terms ends immediately. If -your company makes such a claim, your patent license ends -immediately for work on behalf of your company. - -## Violations - -The first time you are notified in writing that you have -violated any of these terms, or done anything with the software -not covered by your licenses, your licenses can nonetheless -continue if you come into full compliance with these terms, -and take practical steps to correct past violations, within 32 -days of receiving notice. Otherwise, all your licenses end -immediately. - -## No Liability - -***As far as the law allows, the software comes as is, without -any warranty or condition, and the licensor will not be liable -to you for any damages arising out of these terms or the use -or nature of the software, under any kind of legal claim.*** - -## Definitions - -The **licensor** is the individual or entity offering these -terms, and the **software** is the software the licensor makes -available under these terms. - -**You** refers to the individual or entity agreeing to these -terms. - -**Your company** is any legal entity, sole proprietorship, -or other kind of organization that you work for, plus all -organizations that have control over, are under the control -of, or are under common control with that organization. -**Control** means ownership of substantially all the assets -of an entity, or the power to direct its management and -policies by vote, contract, or otherwise. Control can be -direct or indirect. - -**Your licenses** are all the licenses granted to you for the -software under these terms. - -**Use** means anything you do with the software requiring one -of your licenses. - -## Additional Permissions Granted by the Licensor - -These additional permissions supplement the PolyForm Noncommercial -License 1.0.0 above. They only broaden, and never narrow, the -licenses granted to you. The text of the PolyForm Noncommercial -License 1.0.0 above is unmodified. - -Use by a natural person, acting for their own personal account and -not on behalf of any third party, is use for a permitted purpose. -This includes operating an automated trading bot or trading strategy -on that person's own capital, whether or not it earns that person -money. - -For the avoidance of doubt, the licenses above already let you use, -fork, modify, and redistribute the software, and file issues and -contribute changes, for any permitted purpose. Personal projects, -research, education, nonprofit organizations, government use, and -hobby trading bots are permitted purposes. - -Any other commercial use — in particular the commercial sale of the -software itself, or the commercial sale of services built around it — -requires a separate commercial license from the licensor. If you want -to use Wickra commercially, get in touch about a license at -. - ---- - -Required Notice: Copyright 2026 kingchenc (https://github.com/wickra-lib/wickra) diff --git a/LICENSE-APACHE b/LICENSE-APACHE new file mode 100644 index 00000000..83e0646f --- /dev/null +++ b/LICENSE-APACHE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or Derivative + Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2026 kingchenc and the Wickra contributors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/LICENSE-MIT b/LICENSE-MIT new file mode 100644 index 00000000..ab12f88e --- /dev/null +++ b/LICENSE-MIT @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 kingchenc and the Wickra contributors + +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/README.md b/README.md index 3be58014..59f576cd 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ [![crates.io](https://img.shields.io/crates/v/wickra.svg?logo=rust&color=orange)](https://crates.io/crates/wickra) [![PyPI](https://img.shields.io/pypi/v/wickra.svg?logo=pypi&color=blue)](https://pypi.org/project/wickra/) [![npm](https://img.shields.io/npm/v/wickra.svg?logo=npm&color=red)](https://www.npmjs.com/package/wickra) -[![License: PolyForm-NC](https://img.shields.io/badge/license-PolyForm--NC--1.0.0-purple)](LICENSE) +[![License: MIT OR Apache-2.0](https://img.shields.io/badge/license-MIT_OR_Apache--2.0-blue)](#license) [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/wickra-lib/wickra/badge)](https://scorecard.dev/viewer/?uri=github.com/wickra-lib/wickra) [![Build provenance](https://img.shields.io/badge/provenance-attested-brightgreen?logo=github)](https://github.com/wickra-lib/wickra/attestations) [![Docs](https://img.shields.io/badge/docs-docs.wickra.org-0ea5e9?logo=readthedocs&logoColor=white)](https://docs.wickra.org) @@ -324,13 +324,20 @@ shape together before you invest the time. ## License -Licensed under the **PolyForm Noncommercial License 1.0.0**. See [LICENSE](LICENSE). +Licensed under either of -In plain English: use it, fork it, modify it, redistribute it, file issues, send -pull requests — all welcome. Personal projects, research, education, non-profits, -government, hobby trading bots: all fine. The one thing that's not allowed is -commercial sale of the software or of services built around it. If you want to -use Wickra commercially, get in touch about a license. +- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or + ) +- MIT license ([LICENSE-MIT](LICENSE-MIT) or ) + +at your option. Use it, fork it, modify it, redistribute it — commercially or +not — file issues, send pull requests; all welcome. + +### Contribution + +Unless you explicitly state otherwise, any contribution intentionally submitted +for inclusion in the work by you, as defined in the Apache-2.0 license, shall be +dual licensed as above, without any additional terms or conditions. ## Disclaimer diff --git a/SECURITY.md b/SECURITY.md index d3498f19..aeac9b25 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -2,13 +2,13 @@ ## Supported versions -Wickra is pre-1.0. Security fixes are applied to the latest released `0.1.x` +Wickra is pre-1.0. Security fixes are applied to the latest released `0.4.x` version only; please upgrade to the newest release before reporting an issue. | Version | Supported | | --- | --- | -| 0.1.x (latest) | :white_check_mark: | -| older 0.1.x | :x: | +| 0.4.x (latest) | :white_check_mark: | +| older 0.4.x | :x: | ## Reporting a vulnerability diff --git a/bindings/node/Cargo.toml b/bindings/node/Cargo.toml index c6f1b452..85db5c29 100644 --- a/bindings/node/Cargo.toml +++ b/bindings/node/Cargo.toml @@ -9,7 +9,7 @@ edition.workspace = true # also emits `cargo::` directives that require >= 1.77 — that older floor is # subsumed by the 1.88 requirement now. rust-version = "1.88" -license-file.workspace = true +license.workspace = true repository.workspace = true homepage.workspace = true readme.workspace = true diff --git a/bindings/node/README.md b/bindings/node/README.md index 500c5d60..5420c761 100644 --- a/bindings/node/README.md +++ b/bindings/node/README.md @@ -3,7 +3,7 @@ [![CI](https://github.com/wickra-lib/wickra/actions/workflows/ci.yml/badge.svg)](https://github.com/wickra-lib/wickra/actions/workflows/ci.yml) [![codecov](https://codecov.io/gh/wickra-lib/wickra/branch/main/graph/badge.svg)](https://codecov.io/gh/wickra-lib/wickra) [![npm](https://img.shields.io/npm/v/wickra.svg?logo=npm&color=red)](https://www.npmjs.com/package/wickra) -[![License: PolyForm-NC](https://img.shields.io/badge/license-PolyForm--NC--1.0.0-purple)](https://github.com/wickra-lib/wickra/blob/main/LICENSE) +[![License: MIT OR Apache-2.0](https://img.shields.io/badge/license-MIT_OR_Apache--2.0-blue)](https://github.com/wickra-lib/wickra#license) **Streaming-first technical indicators for Node.js. `npm install wickra` — prebuilt native binary, no system dependencies.** @@ -67,7 +67,5 @@ risk. The library is provided **as is**, without warranty of any kind. ## License -Licensed under the **PolyForm Noncommercial License 1.0.0**. Personal projects, -research, education, non-profits, and hobby trading bots are all fine; the one -thing not allowed is commercial sale of the software or of services built -around it. See [LICENSE](https://github.com/wickra-lib/wickra/blob/main/LICENSE). +Licensed under either of [Apache-2.0](https://github.com/wickra-lib/wickra/blob/main/LICENSE-APACHE) +or [MIT](https://github.com/wickra-lib/wickra/blob/main/LICENSE-MIT) at your option. diff --git a/bindings/node/npm/darwin-arm64/package.json b/bindings/node/npm/darwin-arm64/package.json index 9e200f11..151070f2 100644 --- a/bindings/node/npm/darwin-arm64/package.json +++ b/bindings/node/npm/darwin-arm64/package.json @@ -6,7 +6,7 @@ "files": [ "wickra.darwin-arm64.node" ], - "license": "LicenseRef-Wickra-Noncommercial-1.0.0", + "license": "MIT OR Apache-2.0", "engines": { "node": ">= 18" }, diff --git a/bindings/node/npm/darwin-x64/package.json b/bindings/node/npm/darwin-x64/package.json index 8b2f570c..2bbc0cbd 100644 --- a/bindings/node/npm/darwin-x64/package.json +++ b/bindings/node/npm/darwin-x64/package.json @@ -6,7 +6,7 @@ "files": [ "wickra.darwin-x64.node" ], - "license": "LicenseRef-Wickra-Noncommercial-1.0.0", + "license": "MIT OR Apache-2.0", "engines": { "node": ">= 18" }, diff --git a/bindings/node/npm/linux-arm64-gnu/package.json b/bindings/node/npm/linux-arm64-gnu/package.json index 94058f8c..0e05a7de 100644 --- a/bindings/node/npm/linux-arm64-gnu/package.json +++ b/bindings/node/npm/linux-arm64-gnu/package.json @@ -6,7 +6,7 @@ "files": [ "wickra.linux-arm64-gnu.node" ], - "license": "LicenseRef-Wickra-Noncommercial-1.0.0", + "license": "MIT OR Apache-2.0", "engines": { "node": ">= 18" }, diff --git a/bindings/node/npm/linux-x64-gnu/package.json b/bindings/node/npm/linux-x64-gnu/package.json index f357f777..7dd60c0b 100644 --- a/bindings/node/npm/linux-x64-gnu/package.json +++ b/bindings/node/npm/linux-x64-gnu/package.json @@ -6,7 +6,7 @@ "files": [ "wickra.linux-x64-gnu.node" ], - "license": "LicenseRef-Wickra-Noncommercial-1.0.0", + "license": "MIT OR Apache-2.0", "engines": { "node": ">= 18" }, diff --git a/bindings/node/npm/win32-arm64-msvc/package.json b/bindings/node/npm/win32-arm64-msvc/package.json index 4df0af05..0136b660 100644 --- a/bindings/node/npm/win32-arm64-msvc/package.json +++ b/bindings/node/npm/win32-arm64-msvc/package.json @@ -6,7 +6,7 @@ "files": [ "wickra.win32-arm64-msvc.node" ], - "license": "LicenseRef-Wickra-Noncommercial-1.0.0", + "license": "MIT OR Apache-2.0", "engines": { "node": ">= 18" }, diff --git a/bindings/node/npm/win32-x64-msvc/package.json b/bindings/node/npm/win32-x64-msvc/package.json index 0295bffc..841ace97 100644 --- a/bindings/node/npm/win32-x64-msvc/package.json +++ b/bindings/node/npm/win32-x64-msvc/package.json @@ -6,7 +6,7 @@ "files": [ "wickra.win32-x64-msvc.node" ], - "license": "LicenseRef-Wickra-Noncommercial-1.0.0", + "license": "MIT OR Apache-2.0", "engines": { "node": ">= 18" }, diff --git a/bindings/node/package-lock.json b/bindings/node/package-lock.json index c3e9218c..cad4e7ec 100644 --- a/bindings/node/package-lock.json +++ b/bindings/node/package-lock.json @@ -7,7 +7,7 @@ "": { "name": "wickra", "version": "0.4.7", - "license": "PolyForm-Noncommercial-1.0.0", + "license": "MIT OR Apache-2.0", "devDependencies": { "@napi-rs/cli": "^2.18.0" }, @@ -47,7 +47,7 @@ "cpu": [ "arm64" ], - "license": "PolyForm-Noncommercial-1.0.0", + "license": "MIT OR Apache-2.0", "optional": true, "os": [ "darwin" @@ -63,7 +63,7 @@ "cpu": [ "x64" ], - "license": "PolyForm-Noncommercial-1.0.0", + "license": "MIT OR Apache-2.0", "optional": true, "os": [ "darwin" @@ -79,7 +79,7 @@ "cpu": [ "arm64" ], - "license": "PolyForm-Noncommercial-1.0.0", + "license": "MIT OR Apache-2.0", "optional": true, "os": [ "linux" @@ -95,7 +95,7 @@ "cpu": [ "x64" ], - "license": "PolyForm-Noncommercial-1.0.0", + "license": "MIT OR Apache-2.0", "optional": true, "os": [ "linux" @@ -111,7 +111,7 @@ "cpu": [ "arm64" ], - "license": "PolyForm-Noncommercial-1.0.0", + "license": "MIT OR Apache-2.0", "optional": true, "os": [ "win32" @@ -127,7 +127,7 @@ "cpu": [ "x64" ], - "license": "PolyForm-Noncommercial-1.0.0", + "license": "MIT OR Apache-2.0", "optional": true, "os": [ "win32" diff --git a/bindings/node/package.json b/bindings/node/package.json index 98dde77c..7e114570 100644 --- a/bindings/node/package.json +++ b/bindings/node/package.json @@ -5,7 +5,7 @@ "author": "kingchenc ", "main": "index.js", "types": "index.d.ts", - "license": "LicenseRef-Wickra-Noncommercial-1.0.0", + "license": "MIT OR Apache-2.0", "keywords": [ "trading", "indicators", diff --git a/bindings/python/Cargo.toml b/bindings/python/Cargo.toml index 8f5861f1..6ed98f2d 100644 --- a/bindings/python/Cargo.toml +++ b/bindings/python/Cargo.toml @@ -5,7 +5,7 @@ version.workspace = true authors.workspace = true edition.workspace = true rust-version.workspace = true -license-file.workspace = true +license.workspace = true repository.workspace = true homepage.workspace = true readme.workspace = true diff --git a/bindings/python/README.md b/bindings/python/README.md index c076c82c..549d24bc 100644 --- a/bindings/python/README.md +++ b/bindings/python/README.md @@ -3,7 +3,7 @@ [![CI](https://github.com/wickra-lib/wickra/actions/workflows/ci.yml/badge.svg)](https://github.com/wickra-lib/wickra/actions/workflows/ci.yml) [![codecov](https://codecov.io/gh/wickra-lib/wickra/branch/main/graph/badge.svg)](https://codecov.io/gh/wickra-lib/wickra) [![PyPI](https://img.shields.io/pypi/v/wickra.svg?logo=pypi&color=blue)](https://pypi.org/project/wickra/) -[![License: PolyForm-NC](https://img.shields.io/badge/license-PolyForm--NC--1.0.0-purple)](https://github.com/wickra-lib/wickra/blob/main/LICENSE) +[![License: MIT OR Apache-2.0](https://img.shields.io/badge/license-MIT_OR_Apache--2.0-blue)](https://github.com/wickra-lib/wickra#license) **Streaming-first technical indicators for Python. `pip install wickra` — no system dependencies, no C build tooling.** @@ -66,7 +66,5 @@ risk. The library is provided **as is**, without warranty of any kind. ## License -Licensed under the **PolyForm Noncommercial License 1.0.0**. Personal projects, -research, education, non-profits, and hobby trading bots are all fine; the one -thing not allowed is commercial sale of the software or of services built -around it. See [LICENSE](https://github.com/wickra-lib/wickra/blob/main/LICENSE). +Licensed under either of [Apache-2.0](https://github.com/wickra-lib/wickra/blob/main/LICENSE-APACHE) +or [MIT](https://github.com/wickra-lib/wickra/blob/main/LICENSE-MIT) at your option. diff --git a/bindings/python/pyproject.toml b/bindings/python/pyproject.toml index 90d96239..1ae540c1 100644 --- a/bindings/python/pyproject.toml +++ b/bindings/python/pyproject.toml @@ -7,14 +7,13 @@ name = "wickra" version = "0.4.7" description = "Streaming-first technical indicators: incremental, fast, install-free." readme = "README.md" -license = { text = "PolyForm-Noncommercial-1.0.0 with additional personal-account permissions; see LICENSE" } +license = "MIT OR Apache-2.0" authors = [{ name = "kingchenc", email = "support@wickra.org" }] requires-python = ">=3.9" keywords = ["finance", "trading", "indicators", "technical-analysis", "ta-lib"] classifiers = [ "Development Status :: 4 - Beta", "Intended Audience :: Financial and Insurance Industry", - "License :: Free for non-commercial use", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.9", diff --git a/bindings/wasm/Cargo.toml b/bindings/wasm/Cargo.toml index 14ffaf7c..121c299d 100644 --- a/bindings/wasm/Cargo.toml +++ b/bindings/wasm/Cargo.toml @@ -5,7 +5,7 @@ version.workspace = true authors.workspace = true edition.workspace = true rust-version.workspace = true -license-file.workspace = true +license.workspace = true repository.workspace = true homepage.workspace = true readme.workspace = true diff --git a/bindings/wasm/README.md b/bindings/wasm/README.md index 819b1da9..7021854d 100644 --- a/bindings/wasm/README.md +++ b/bindings/wasm/README.md @@ -3,7 +3,7 @@ [![CI](https://github.com/wickra-lib/wickra/actions/workflows/ci.yml/badge.svg)](https://github.com/wickra-lib/wickra/actions/workflows/ci.yml) [![codecov](https://codecov.io/gh/wickra-lib/wickra/branch/main/graph/badge.svg)](https://codecov.io/gh/wickra-lib/wickra) [![npm](https://img.shields.io/npm/v/wickra-wasm.svg?logo=npm&color=red)](https://www.npmjs.com/package/wickra-wasm) -[![License: PolyForm-NC](https://img.shields.io/badge/license-PolyForm--NC--1.0.0-purple)](https://github.com/wickra-lib/wickra/blob/main/LICENSE) +[![License: MIT OR Apache-2.0](https://img.shields.io/badge/license-MIT_OR_Apache--2.0-blue)](https://github.com/wickra-lib/wickra#license) **Streaming-first technical indicators in the browser. `npm install wickra-wasm` — pure WebAssembly, runs anywhere a modern JS engine does.** @@ -66,7 +66,5 @@ risk. The library is provided **as is**, without warranty of any kind. ## License -Licensed under the **PolyForm Noncommercial License 1.0.0**. Personal projects, -research, education, non-profits, and hobby trading bots are all fine; the one -thing not allowed is commercial sale of the software or of services built -around it. See [LICENSE](https://github.com/wickra-lib/wickra/blob/main/LICENSE). +Licensed under either of [Apache-2.0](https://github.com/wickra-lib/wickra/blob/main/LICENSE-APACHE) +or [MIT](https://github.com/wickra-lib/wickra/blob/main/LICENSE-MIT) at your option. diff --git a/crates/wickra-core/Cargo.toml b/crates/wickra-core/Cargo.toml index b260bef5..c4703870 100644 --- a/crates/wickra-core/Cargo.toml +++ b/crates/wickra-core/Cargo.toml @@ -5,7 +5,7 @@ version.workspace = true authors.workspace = true edition.workspace = true rust-version.workspace = true -license-file.workspace = true +license.workspace = true repository.workspace = true homepage.workspace = true readme.workspace = true diff --git a/crates/wickra-data/Cargo.toml b/crates/wickra-data/Cargo.toml index cfee2c40..b7ef7125 100644 --- a/crates/wickra-data/Cargo.toml +++ b/crates/wickra-data/Cargo.toml @@ -5,7 +5,7 @@ version.workspace = true authors.workspace = true edition.workspace = true rust-version.workspace = true -license-file.workspace = true +license.workspace = true repository.workspace = true homepage.workspace = true readme.workspace = true diff --git a/crates/wickra/Cargo.toml b/crates/wickra/Cargo.toml index 4dc2b82f..bc6b4465 100644 --- a/crates/wickra/Cargo.toml +++ b/crates/wickra/Cargo.toml @@ -5,7 +5,7 @@ version.workspace = true authors.workspace = true edition.workspace = true rust-version.workspace = true -license-file.workspace = true +license.workspace = true repository.workspace = true homepage.workspace = true readme.workspace = true diff --git a/deny.toml b/deny.toml index c6341d23..c408ac4b 100644 --- a/deny.toml +++ b/deny.toml @@ -21,10 +21,9 @@ allow-wildcard-paths = true [licenses] version = 2 # Licenses permitted for every crate in the dependency graph. Wickra itself is -# PolyForm-Noncommercial-1.0.0; the rest are the permissive licenses its +# dual-licensed MIT OR Apache-2.0; the rest are the permissive licenses its # dependency tree actually uses. allow = [ - "PolyForm-Noncommercial-1.0.0", "MIT", "Apache-2.0", "BSD-2-Clause", diff --git a/examples/node/package-lock.json b/examples/node/package-lock.json index 87a4f3f0..9ccd9468 100644 --- a/examples/node/package-lock.json +++ b/examples/node/package-lock.json @@ -18,7 +18,7 @@ "../../bindings/node": { "name": "wickra", "version": "0.4.7", - "license": "PolyForm-Noncommercial-1.0.0", + "license": "MIT OR Apache-2.0", "devDependencies": { "@napi-rs/cli": "^2.18.0" }, diff --git a/examples/rust/Cargo.toml b/examples/rust/Cargo.toml index aa3ff9da..f1f2b626 100644 --- a/examples/rust/Cargo.toml +++ b/examples/rust/Cargo.toml @@ -6,7 +6,7 @@ description = "Runnable Rust examples for the Wickra technical-analysis library. authors.workspace = true edition.workspace = true rust-version.workspace = true -license-file.workspace = true +license.workspace = true repository.workspace = true homepage.workspace = true readme = "README.md"