Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update and simplify COPYING.txt #16830

Merged
merged 21 commits into from
Sep 20, 2024

Conversation

gerald-hartig
Copy link
Collaborator

@gerald-hartig gerald-hartig commented Jul 7, 2024

Link to issue number:

n/a

Summary of the issue:

This PR proposes changes to the COPYING.txt file for NVDA to streamline our licensing information and ensure clarity regarding the use of GPL-2.

Key changes:

  1. Simplify the content to focus on the GPL-2 license and specific callouts for exceptions where necessary
  2. Reference other projects and their licenses instead of including full texts
  3. Clarify that our GPL-2 usage means "GPL-2 or later"
  4. Add to pyproject.toml
    5. [WIP] Update appveyor to append licenseCheck dependency output onto copying.txt

Rationale:
The current COPYING.txt file includes licenses for various dependencies shipped with NVDA. This approach has been inconsistent, with some dependency licenses included and others omitted. The proposed changes aim to lay the groundwork for a more consistent and manageable licensing document.

Note to reviewers:
We understand that changes to licensing documentation can be significant. We've approached this update with careful consideration for our community and users. We welcome your feedback to ensure this change meets the needs of all stakeholders while maintaining legal compliance and transparency.

Description of user facing changes

Deletion of large sections of copying.txt. Clarification of GPL-2 or later.

Description of development approach

n/a

Testing strategy:

n/a

Known issues with pull request:

n/a

Code Review Checklist:

  • Documentation:
    • Change log entry
    • User Documentation
    • Developer / Technical Documentation
    • Context sensitive help for GUI changes
  • Testing:
    • Unit tests
    • System (end to end) tests
    • Manual testing
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers
    • Localization in other languages / culture than English
  • API is compatible with existing add-ons.
  • Security precautions taken.

Summary by CodeRabbit

  • New Features

    • Updated licensing terms in the NVDA documentation to clarify availability under the GNU General Public License version 2 or later.
    • Introduced standardized copyright headers for project files to enhance compliance and consistency.
    • Added essential metadata and URLs in the project configuration for improved accessibility and clarity.
  • Documentation

    • Enhanced the contributing guide with a new section on copyright headers to assist contributors.
    • Expanded documentation on third-party dependencies and licensing details.

@AppVeyorBot
Copy link

See test results for failed build of commit ff77b7b78a

@gerald-hartig
Copy link
Collaborator Author

Need to use appveyor to join auto-gen dependency markdown to copying.txt then convert markdown to html

@seanbudd
Copy link
Member

seanbudd commented Jul 8, 2024

@gerald-hartig - could you also apply this diff:

diff --git a/pyproject.toml b/pyproject.toml
index 1e37e7fbc..ebf6a4e42 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -61,24 +61,8 @@ logger-objects = ["logHandler.log"]
 
 [tool.licensecheck]
 using = "requirements:requirements.txt"
-only_licenses = ["BSD", "MIT", "Python", "LGPLV3+"]
+only_licenses = ["BSD", "MIT", "Python", "LGPLV3+", "Apache"]
 ignore_packages = [
-	# Incompatible Apache licenses.
-	# These are current license violations and are bundled with NVDA.
-	"fast-diff-match-patch",  # See also #16633
-	"requests",
-
-	# Incompatible Apache licenses.
-	# Bundled with a dependency, but not bundled with NVDA.
-	"importlib-metadata",
-	"opencv-python",
-
-	# Incompatible Apache licenses.
-	# System testing frameworks, not bundled with NVDA.
-	"robotframework",
-	"robotframework-screencaplibrary",
-	"robotremoteserver",
-
 	# Compatible licenses:
 	"certifi",  # Mozilla Public License 2.0
 	"markdown-link-attr-modifier",  # GPLV3 license, but not in PyPI correctly

@AppVeyorBot
Copy link

See test results for failed build of commit 86fcf9d3b7

@seanbudd
Copy link
Member

Could you also migrate this wiki page into the repo?
https://github.com/nvaccess/nvda/wiki/Copyright-headers

I think it would be good to update our copyright header template and commit it somewhere in projectDocs/dev/

@seanbudd seanbudd added the conceptApproved Similar 'triaged' for issues, PR accepted in theory, implementation needs review. label Jul 15, 2024
@gerald-hartig
Copy link
Collaborator Author

Sean I've made the move you suggested. The PR is ready for review. What to do with the original wiki file? Delete it? Or do we have an archive location to move it to?

@gerald-hartig gerald-hartig marked this pull request as ready for review September 2, 2024 03:55
@gerald-hartig gerald-hartig requested a review from a team as a code owner September 2, 2024 03:55
Copy link
Contributor

coderabbitai bot commented Sep 2, 2024

Walkthrough

The changes involve updates to licensing terms in the copying.txt file, the addition of a copyright headers section in contributing.md, the creation of a new copyrightHeaders.md file outlining standardized copyright headers, and enhancements to the pyproject.toml file that introduce essential project metadata and URLs. These modifications aim to clarify licensing compliance and improve documentation structure across the NVDA project.

Changes

Files Change Summary
copying.txt Updated licensing terms to specify NVDA is under GPL version 2 or later; formatting changes; expanded third-party dependencies section.
projectDocs/dev/contributing.md Added a new section on copyright headers for contributors.
projectDocs/dev/copyrightHeaders.md Introduced standardized copyright headers with instructions for NVDA files.
pyproject.toml Added project metadata and URLs, modified license acceptance criteria.

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    -- I pushed a fix in commit <commit_id>, please review it.
    -- Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    -- @coderabbitai generate unit testing code for this file.
    -- @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    -- @coderabbitai generate interesting stats about this repository and render them as a table.
    -- @coderabbitai read src/utils.ts and generate unit testing code.
    -- @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    -- @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Outside diff range, codebase verification and nitpick comments (4)
projectDocs/dev/copyrightHeaders.md (2)

1-15: LGTM! Clear instructions for GPL copyright headers.

The content provides clear guidelines for using copyright headers in GPL-licensed NVDA files. The header template and instructions for replacing placeholders are well-explained.

Consider applying this minor grammatical fix to improve clarity:

Tools
LanguageTool

[uncategorized] ~13-~13: Possible missing comma found.
Context: ...when the file was last updated. For new files this can be missing. E.g. a file create...

(AI_HYDRA_LEO_MISSING_COMMA)


25-26: Improve clarity of the final paragraph.

The information about handling older copyright notices is valuable. However, the sentence structure could be improved for better clarity.

Consider rephrasing the paragraph as follows:

This rephrasing maintains the one-sentence-per-line style while improving clarity and readability.

pyproject.toml (1)

5-21: LGTM! Comprehensive project metadata added.

The new [project] section provides essential information about NVDA, which is crucial for package management and distribution. The metadata is well-structured and informative.

Consider adding a version field to the [project] section. This is typically a required field for Python projects and helps track the current version of the package. You can use a placeholder or dynamically generate it during the build process if needed.

copying.txt (1)

293-298: Updated GPL version and clarified plugin/driver licensing

The changes in this section are important:

  1. The update to "GNU General Public License version 2 or later" for plugins and drivers ensures consistency with the main NVDA license.
  2. The clarification about the use of components under other licenses in plugins/drivers is valuable for developers.

However, there's a minor issue in the formatting:

Consider removing the semicolon after "or later" on line 295 for better readability:

-a) Any such component does not prevent the NVDA plugin or driver from being licensed under the terms of the GNU General Public License version 2 or later; and
+a) Any such component does not prevent the NVDA plugin or driver from being licensed under the terms of the GNU General Public License version 2 or later, and
Tools
LanguageTool

[typographical] ~295-~295: Conjunctions like ‘and’ should not follow semicolons. Consider using a comma, or removing the conjunction.
Context: ...eneral Public License version 2 or later; and b) Any such component does not directly u...

(CONJUNCTION_AFTER_SEMICOLON)


[style] ~296-~296: This phrase is redundant. Consider using “outside”.
Context: ...ot directly used by any portion of NVDA outside of that plugin or driver. For example, a s...

(OUTSIDE_OF)


[uncategorized] ~297-~297: Do not mix variants of the same word (‘synthesiser’ and ‘synthesizer’) within a single text.
Context: ...ech synthesizer driver may use a speech synthesiser under a proprietary license. In contras...

(EN_WORD_COHERENCY)

projectDocs/dev/copyrightHeaders.md Outdated Show resolved Hide resolved
projectDocs/dev/copyrightHeaders.md Outdated Show resolved Hide resolved
projectDocs/dev/copyrightHeaders.md Outdated Show resolved Hide resolved
projectDocs/dev/copyrightHeaders.md Outdated Show resolved Hide resolved
projectDocs/dev/copyrightHeaders.md Outdated Show resolved Hide resolved
projectDocs/dev/copyrightHeaders.md Outdated Show resolved Hide resolved
copying.txt Outdated Show resolved Hide resolved
@seanbudd
Copy link
Member

seanbudd commented Sep 2, 2024

Thanks @gerald-hartig - with the wiki page, I would just update the link to point to the new file.
here's a similar example: https://github.com/nvaccess/nvda/wiki/Translating

Please also remove the page from the wiki index and sidebar:

See the page history on these for examples

Copy link
Collaborator

@XLTechie XLTechie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have concerns about saying NVDA uses a modified license in copying.txt and according to the initial comment of this PR, but then saying in all of the file headers that the individual files use pure GPL V2 and providing a link thereto. I don't think you can legally have it both ways.

I am not a lawyer, and I don't play one on the internet, but I suspect that the file license supersedes the copying.txt file, if they differ.

projectDocs/dev/copyrightHeaders.md Outdated Show resolved Hide resolved
projectDocs/dev/copyrightHeaders.md Outdated Show resolved Hide resolved
projectDocs/dev/copyrightHeaders.md Outdated Show resolved Hide resolved
@AppVeyorBot
Copy link

See test results for failed build of commit a03faeba5a

@seanbudd
Copy link
Member

seanbudd commented Sep 2, 2024

You may need to re-exclude some items from the licenseCheck - it seems to be failing. I think some don't have proper license metadata so they need to be manually excluded, perhaps under "compatible licenses"

pyproject.toml Outdated Show resolved Hide resolved
gerald-hartig and others added 3 commits September 3, 2024 08:59
Co-authored-by: Sean Budd <seanbudd123@gmail.com>
Co-authored-by: Sean Budd <seanbudd123@gmail.com>
Co-authored-by: Sean Budd <seanbudd123@gmail.com>
@AppVeyorBot
Copy link

  • PASS: Translation comments check.
  • FAIL: License check. See C:\projects\nvda\testOutput\license\licenseCheckResults.md for more information.
  • PASS: Unit tests.
  • PASS: Lint check.
  • FAIL: System tests (tags: installer NVDA). See test results for more information.
  • Build (for testing PR): https://ci.appveyor.com/api/buildjobs/rp49cvge95khtswl/artifacts/output/nvda_snapshot_pr16830-33714,6edaa6b0.exe
  • CI timing (mins):
    INIT 0.0,
    INSTALL_START 1.2,
    INSTALL_END 0.9,
    BUILD_START 0.0,
    BUILD_END 11.4,
    TESTSETUP_START 0.0,
    TESTSETUP_END 0.4,
    TEST_START 0.0,
    TEST_END 18.3,
    FINISH_END 0.1

See test results for failed build of commit 6edaa6b0d6

gerald-hartig and others added 3 commits September 4, 2024 06:36
Co-authored-by: Sean Budd <seanbudd123@gmail.com>
Co-authored-by: Sean Budd <seanbudd123@gmail.com>
Co-authored-by: Sean Budd <seanbudd123@gmail.com>
@AppVeyorBot
Copy link

See test results for failed build of commit ea8aaaa518

projectDocs/dev/copyrightHeaders.md Outdated Show resolved Hide resolved
projectDocs/dev/copyrightHeaders.md Outdated Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
@AppVeyorBot
Copy link

See test results for failed build of commit 39ef37d0e9

@SaschaCowley
Copy link
Member

@gerald-hartig it looks like most of the license check failures are because it's detecting Apache 2 licensed projects as being Apache 1 licensed, and Apache 1 is GPL2+ incompatible, but Apache 2 is GPL2+ compatible.

@gerald-hartig
Copy link
Collaborator Author

@seanbudd it does appear that the license check is making mistakes. For example:

### opencv-python-4.10.0.84
- HomePage: https://github.com/opencv/opencv-python
- License: APACHE SOFTWARE LICENSE

But if you go to the github page, the license is MIT, which as far as I'm aware can be used in a GPL 2-or-later project. https://github.com/opencv/opencv-python/blob/4.x/LICENSE.txt

Co-authored-by: Luke Davis <8139760+XLTechie@users.noreply.github.com>
@AppVeyorBot
Copy link

See test results for failed build of commit 9bb9b86687

copying.txt Show resolved Hide resolved
copying.txt Outdated Show resolved Hide resolved
projectDocs/dev/copyrightHeaders.md Outdated Show resolved Hide resolved
gerald-hartig and others added 2 commits September 18, 2024 09:03
Co-authored-by: Sean Budd <seanbudd123@gmail.com>
Co-authored-by: Sean Budd <seanbudd123@gmail.com>
@AppVeyorBot
Copy link

See test results for failed build of commit 93245c94ac

Copy link
Member

@seanbudd seanbudd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SaschaCowley SaschaCowley merged commit 4509a19 into nvaccess:master Sep 20, 2024
4 checks passed
@github-actions github-actions bot added this to the 2025.1 milestone Sep 20, 2024
@tspivey
Copy link
Collaborator

tspivey commented Sep 20, 2024

Changing from GPL V2 to GPL V2 or later fundamentally changes the license.
Code contributors have contributed under the assumption that the code was under GPL V2. According to everything I've read, relicensing a project like this needs agreement from contributors.

Sources: https://en.wikipedia.org/wiki/Software_relicensing https://opensource.guide/legal/ https://dolphin-emu.org/blog/2015/05/25/relicensing-dolphin/

This wasn't mensioned anywhere in this PR. How is this being handled?

@gerald-hartig
Copy link
Collaborator Author

@tspivey We'll be reaching out to the contributor community shortly about this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conceptApproved Similar 'triaged' for issues, PR accepted in theory, implementation needs review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants