Skip to content

Release exe bundles GPLv3+ mouseinfo and pymsgbox, ships no third-party notices #153

Closed

Description

@TMHSDigital

Summary

pyautogui imports mouseinfo and pymsgbox at module level, and the PyInstaller spec excludes nothing, so both GPLv3+ packages end up inside WindowsAutoclicker.exe, which is distributed under CC BY-NC 4.0. The app never uses either. The exe also bundles LGPLv3 pystray and several BSD/MIT packages without shipping their license texts.

Where

  • WindowsAutoclicker.spec:46-58 (excludes=[])
  • pyproject.toml:10 (license = "CC-BY-NC-4.0")
  • requirements-lock.txt (mouseinfo 0.1.3, pymsgbox 2.0.1, pystray 0.19.5)

Details

Installed metadata classifies mouseinfo 0.1.3 and pymsgbox 2.0.1 as "GNU General Public License v3 or later (GPLv3+)" and pystray 0.19.5 as LGPLv3. pyautogui wraps both imports in try/except ImportError, so it works without them. The app only uses pyautogui's click, mouseDown/Up, press, hotkey, pixel, size, FAILSAFE and PAUSE. The repository tracks no NOTICE or THIRD_PARTY file, and the onefile build carries no license texts.

Impact

Distributing a combined binary that contains GPLv3 code under non-commercial terms is a likely license conflict for every released exe, and the missing notices fall short of the attribution the BSD, MIT and LGPL licenses require (related to #58 and #71).

Suggested fix

Add excludes=["mouseinfo", "pymsgbox", "pyperclip"] to the spec and confirm with the existing smoke-launch step. Generate a THIRD_PARTY_NOTICES.txt from the runtime lock (for example a small importlib.metadata script), bundle it through datas, and attach it to releases. For pystray, state where its source is available.

Acceptance criteria

  • pyi-archive_viewer on the built exe shows no mouseinfo or pymsgbox
  • Releases include a third-party notices file covering every bundled package
  • Smoke launch still passes

Related: #58, #71

Getting started

  • Relevant files: WindowsAutoclicker.spec, tools/
  • How to run tests: make check (Git Bash) or tasks.bat lint, tasks.bat typecheck, tasks.bat test (cmd). Single test: python -m pytest tests/test_x.py::TestClass::test_name --no-cov
  • Related docs: CONTRIBUTING.md, docs/ARCHITECTURE.md

Filed by repo-audit/full-audit at 9968dc8. Severity: high. Effort: S. audit-key: dependencies|WindowsAutoclicker.spec|mouseinfo,pymsgbox

Activity

  1. added
    dependencies
    priority: high
    packaging
    on Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciespackagingpriority: high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions