diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index a327490..e69de29 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,4 +0,0 @@ -## Description - \ No newline at end of file diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 4379960..5b0aff6 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -11,7 +11,7 @@ jobs: update-changelog: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v7 with: fetch-depth: 0 - name: Get Release @@ -45,7 +45,7 @@ jobs: git add CHANGELOG.md pyproject.toml git commit -m "Update ChangeLog" - name: Push changes - uses: ad-m/github-push-action@master + uses: ad-m/github-push-action@v1.3.0 with: github_token: ${{ secrets.TOKEN }} branch: main @@ -60,30 +60,30 @@ jobs: - os: ubuntu-latest TARGET: ubuntu CMD_BUILD: > - pyinstaller cli.spec && + pyinstaller cli.spec && mv dist/cli fosslight_bin_ubuntu OUT_FILE_NAME: fosslight_bin_ubuntu ASSET_MIME: application/octet-stream - os: macos-latest TARGET: macos CMD_BUILD: > - pyinstaller cli.spec && + pyinstaller cli.spec && mv dist/cli fosslight_bin_macos OUT_FILE_NAME: fosslight_bin_macos ASSET_MIME: application/x-mach-binary - os: windows-latest TARGET: windows CMD_BUILD: > - pyinstaller cli.spec && + pyinstaller cli.spec && move dist/cli.exe fosslight_bin_windows.exe OUT_FILE_NAME: fosslight_bin_windows.exe ASSET_MIME: application/vnd.microsoft.portable-executable steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v7 with: ref: main - name: Set up Python 3.12 - uses: actions/setup-python@v4 + uses: actions/setup-python@v6 with: python-version: '3.12' - name: Install dependencies @@ -104,11 +104,11 @@ jobs: runs-on: ubuntu-latest needs: build steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v7 with: ref: main - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v6 with: python-version: '3.12' - name: Install dependencies diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index b569b28..0b40d2d 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -19,9 +19,9 @@ jobs: python-version: [3.12.x] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v7 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -39,9 +39,9 @@ jobs: matrix: python-version: [3.12.x] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v7 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} - name: Install & Run @@ -52,10 +52,10 @@ jobs: pyinstaller cli.spec move dist\cli.exe tests\fosslight_bin_windows.exe .\tests\fosslight_bin_windows.exe - + reuse: runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 + steps: + - uses: actions/checkout@v7 - name: REUSE Compliance Check - uses: fsfe/reuse-action@v1 + uses: fsfe/reuse-action@v6 diff --git a/.github/workflows/release-drafter-config.yml b/.github/workflows/release-drafter-config.yml index 928d32c..2dd90c5 100644 --- a/.github/workflows/release-drafter-config.yml +++ b/.github/workflows/release-drafter-config.yml @@ -7,7 +7,7 @@ jobs: update_release_draft: runs-on: ubuntu-latest steps: - - uses: release-drafter/release-drafter@v5 + - uses: release-drafter/release-drafter@v7 with: config-name: release-drafter-config.yml env: diff --git a/.reuse/dep5 b/.reuse/dep5 deleted file mode 100644 index 9432ae0..0000000 --- a/.reuse/dep5 +++ /dev/null @@ -1,71 +0,0 @@ -Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ -Upstream-Name: FOSSLight Util -Source: https://github.com/fosslight/fosslight_dependency - -Files: *.md -Copyright: 2021 LG Electronics -License: Apache-2.0 - -Files: .github/* -Copyright: 2021 LG Electronics -License: Apache-2.0 - -Files: MANIFEST.in -Copyright: 2021 LG Electronics -License: Apache-2.0 - -Files: requirements*.txt -Copyright: 2021 LG Electronics -License: LicenseRef-3rd_party_licenses - -Files: setup.cfg -Copyright: 2021 LG Electronics -License: Apache-2.0 - -Files: db/* -Copyright: 2021 LG Electronics -License: Apache-2.0 - -Files: .coveragerc -Copyright: 2021 LG Electronics -License: Apache-2.0 - -Files: tests/askalono_macos -Copyright: 2018 Amazon.com, Inc. or its affiliates. -License: Apache-2.0 - -Files: tests/error_prone_annotations-2.7.1.jar -Copyright: 2015 The Error Prone Authors. -License: Apache-2.0 - -Files: tests/test/askalono_macos -Copyright: 2018 Amazon.com, Inc. or its affiliates. -License: Apache-2.0 - -Files: tests/aho-corasick-double-array-trie-1.2.3.jar -Copyright: 2008-2016 Copyright hankcs -License: Apache-2.0 - -Files: tests/commons-logging-1.2.jar -Copyright: 2003-2014 Copyright The Apache Software Foundation -License: Apache-2.0 - -Files: tests/*.txt -Copyright: 2021 LG Electronics -License: Apache-2.0 - -Files: .bumpversion.cfg -Copyright: 2021 LG Electronics -License: Apache-2.0 - -Files: cli.spec -Copyright: 2025 LG Electronics -License: Apache-2.0 - -Files: .coderabbit.yaml -Copyright: 2026 LG Electronics -License: Apache-2.0 - -Files: .gitignore -Copyright: 2026 LG Electronics -License: Apache-2.0 diff --git a/LICENSES/LicenseRef-3rd_party_licenses.txt b/LICENSES/LicenseRef-3rd-party-licenses.txt similarity index 97% rename from LICENSES/LicenseRef-3rd_party_licenses.txt rename to LICENSES/LicenseRef-3rd-party-licenses.txt index 0251220..bb9e80d 100644 --- a/LICENSES/LicenseRef-3rd_party_licenses.txt +++ b/LICENSES/LicenseRef-3rd-party-licenses.txt @@ -275,7 +275,7 @@ Copyright (c) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: -1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. @@ -312,17 +312,17 @@ ________________________________________________________________________________ BSD-3-Clause -Copyright (c) . All rights reserved. +Copyright (c) . All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: -1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. -2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. _________________________________________________________________________________________________________________________ @@ -419,7 +419,7 @@ GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. - + Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below. @@ -569,28 +569,28 @@ You may charge any price or no price for each copy that you convey, and you may 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: - a) The work must carry prominent notices stating that you modified it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”. - - c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. + a) The work must carry prominent notices stating that you modified it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”. + + c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: - a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. + a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. - c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. - - d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. + c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. + + d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. @@ -611,17 +611,17 @@ When you convey a copy of a covered work, you may at your option remove any addi Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: - a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or authors of the material; or - - e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. + a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or authors of the material; or + + e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. @@ -804,7 +804,7 @@ You may charge a fee for the physical act of transferring a copy, and you may at 2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) The modified work must itself be a software library. - + b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. @@ -938,7 +938,7 @@ ________________________________________________________________________________ MPL-2.0 -Mozilla Public License Version 2.0 +Mozilla Public License Version 2.0 1. Definitions @@ -978,7 +978,7 @@ Mozilla Public License Version 2.0 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. License Grants and Conditions 2.1. Grants Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license: @@ -1030,14 +1030,14 @@ Mozilla Public License Version 2.0 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 +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. 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. @@ -1045,19 +1045,19 @@ If it is impossible for You to comply with any of the terms of this License with 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. +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. +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 +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 +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. 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. @@ -1071,7 +1071,7 @@ This License represents the complete agreement concerning the subject matter her 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 +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 http://mozilla.org/MPL/2.0/. @@ -1079,7 +1079,7 @@ If it is not possible or desirable to put the notice in a particular file, then You may add additional accurate notices of copyright ownership. -Exhibit B - "Incompatible With Secondary Licenses" Notice +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. @@ -1090,7 +1090,7 @@ ________________________________________________________________________________ Python-2.0 -PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 +PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 1. This LICENSE AGREEMENT is between the Python Software Foundation ("PSF"), and the Individual or Organization ("Licensee") accessing and otherwise using this software ("Python") in source or binary form and its associated documentation. @@ -1109,7 +1109,7 @@ PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 8. By copying, installing or otherwise using Python, Licensee agrees to be bound by the terms and conditions of this License Agreement. -BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0 +BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0 BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1 @@ -1128,7 +1128,7 @@ BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1 7. By copying, installing or otherwise using the software, Licensee agrees to be bound by the terms and conditions of this License Agreement. -CNRI OPEN SOURCE LICENSE AGREEMENT (for Python 1.6b1) +CNRI OPEN SOURCE LICENSE AGREEMENT (for Python 1.6b1) IMPORTANT: PLEASE READ THE FOLLOWING AGREEMENT CAREFULLY. @@ -1155,7 +1155,7 @@ BY CLICKING ON "ACCEPT" WHERE INDICATED BELOW, OR BY COPYING, INSTALLING OR OTHE ACCEPT -CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2 +CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2 Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam, The Netherlands. All rights reserved. @@ -1199,6 +1199,6 @@ The source code for the above may be obtained from each download location. chardet https://pypi.org/project/chardet psycopg2 https://pypi.org/project/psycopg2 python-certifi https://pypi.org/project/certifi -tqdm https://github.com/tqdm/tqdm +tqdm https://github.com/tqdm/tqdm (OSSNotice-4208_fosslight_binary_4.0.8_220215) diff --git a/REUSE.toml b/REUSE.toml new file mode 100644 index 0000000..cb88a79 --- /dev/null +++ b/REUSE.toml @@ -0,0 +1,88 @@ +version = 1 +SPDX-PackageName = "FOSSLight Util" +SPDX-PackageDownloadLocation = "https://github.com/fosslight/fosslight_dependency" + +[[annotations]] +path = "**.md" +SPDX-FileCopyrightText = "2021 LG Electronics" +SPDX-License-Identifier = "Apache-2.0" + +[[annotations]] +path = ".github/**" +SPDX-FileCopyrightText = "2021 LG Electronics" +SPDX-License-Identifier = "Apache-2.0" + +[[annotations]] +path = "MANIFEST.in" +SPDX-FileCopyrightText = "2021 LG Electronics" +SPDX-License-Identifier = "Apache-2.0" + +[[annotations]] +path = "requirements**.txt" +SPDX-FileCopyrightText = "2021 LG Electronics" +SPDX-License-Identifier = "LicenseRef-3rd-party-licenses" + +[[annotations]] +path = "setup.cfg" +SPDX-FileCopyrightText = "2021 LG Electronics" +SPDX-License-Identifier = "Apache-2.0" + +[[annotations]] +path = "db/**" +SPDX-FileCopyrightText = "2021 LG Electronics" +SPDX-License-Identifier = "Apache-2.0" + +[[annotations]] +path = ".coveragerc" +SPDX-FileCopyrightText = "2021 LG Electronics" +SPDX-License-Identifier = "Apache-2.0" + +[[annotations]] +path = "tests/askalono_macos" +SPDX-FileCopyrightText = "2018 Amazon.com, Inc. or its affiliates." +SPDX-License-Identifier = "Apache-2.0" + +[[annotations]] +path = "tests/error_prone_annotations-2.7.1.jar" +SPDX-FileCopyrightText = "2015 The Error Prone Authors." +SPDX-License-Identifier = "Apache-2.0" + +[[annotations]] +path = "tests/test/askalono_macos" +SPDX-FileCopyrightText = "2018 Amazon.com, Inc. or its affiliates." +SPDX-License-Identifier = "Apache-2.0" + +[[annotations]] +path = "tests/aho-corasick-double-array-trie-1.2.3.jar" +SPDX-FileCopyrightText = "2008-2016 Copyright hankcs " +SPDX-License-Identifier = "Apache-2.0" + +[[annotations]] +path = "tests/commons-logging-1.2.jar" +SPDX-FileCopyrightText = "2003-2014 Copyright The Apache Software Foundation" +SPDX-License-Identifier = "Apache-2.0" + +[[annotations]] +path = "tests/**.txt" +SPDX-FileCopyrightText = "2021 LG Electronics" +SPDX-License-Identifier = "Apache-2.0" + +[[annotations]] +path = ".bumpversion.cfg" +SPDX-FileCopyrightText = "2021 LG Electronics" +SPDX-License-Identifier = "Apache-2.0" + +[[annotations]] +path = "cli.spec" +SPDX-FileCopyrightText = "2025 LG Electronics" +SPDX-License-Identifier = "Apache-2.0" + +[[annotations]] +path = ".coderabbit.yaml" +SPDX-FileCopyrightText = "2026 LG Electronics" +SPDX-License-Identifier = "Apache-2.0" + +[[annotations]] +path = ".gitignore" +SPDX-FileCopyrightText = "2026 LG Electronics" +SPDX-License-Identifier = "Apache-2.0" diff --git a/requirements-dev.txt b/requirements-dev.txt index 84896de..957a6ca 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -2,7 +2,6 @@ pyinstaller>=6.0.0 tox pytest pytest-cov -pytest-flake8 pytest-xdist flake8 chardet<5.0.0 diff --git a/tox.ini b/tox.ini index 2b082ca..92ba5eb 100644 --- a/tox.ini +++ b/tox.ini @@ -6,7 +6,7 @@ skipdist = true [testenv] install_command = pip install {opts} {packages} -allowlist_externals = +allowlist_externals = bash ls rm @@ -43,7 +43,7 @@ deps = -r{toxinidir}/requirements-dev.txt commands = pytest -n 4 tests/initial_tox_test.py::test_release_environment - pytest -v --flake8 + flake8 . pyinstaller --onefile cli.py -n cli --additional-hooks-dir=hooks --hidden-import=pkg_resources.extern {toxinidir}/dist/cli -p tests -o test_result_cli ; py.test --cov-report term-missing --cov={envsitepackagesdir}/fosslight_binary