Skip to content

Untested dependency floors and drift between pyproject and requirements files #155

Closed

Description

@TMHSDigital

Summary

The lower bounds in pyproject.toml and requirements.txt are far below what CI tests and allow known-vulnerable Pillow versions for pip installs. The dev extras have also drifted from requirements-dev.in.

Where

  • pyproject.toml:33-39 (Pillow>=9.0.0, pywin32>=227, pyautogui>=0.9.53, pystray>=0.19.4)
  • requirements.txt:3-7
  • pyproject.toml:42-54 (optional dependencies)
  • requirements-dev.in:9-12
  • tasks.bat:24-25, Makefile:14-16

Details

  • Pillow below 10.3.0 has public CVEs, and the app decodes user-chosen images. CI only installs the lock, so the floors are never exercised, and pyscreeze already needs Pillow>=9.3.0.
  • requirements-dev.in says its bounds mirror the [dev] and [build] extras, but pip-audit is missing from [dev] and [build] has setuptools>=61.0 while [build-system] and dev.in have >=77.
  • Install scripts run pip install --upgrade pip, then install a lock pinning pip==26.2.1, so the pip version flips between installs.

Impact

Users installing from PyPI or source with older packages can get untested or vulnerable combinations; pip install -e .[dev] users cannot run make audit.

Suggested fix

Raise the floors to versions CI actually tests (for example Pillow>=12, pywin32>=306, pyautogui>=0.9.54) in both files. Add pip-audit to [dev] and setuptools>=77 to [build]. Drop the --upgrade pip step or exclude pip from the lock (--no-emit-package pip). Optionally add a CI job resolving with --resolution lowest-direct.

Acceptance criteria

  • Floors match tested versions in pyproject and requirements.txt
  • [dev] and requirements-dev.in agree

Getting started

  • Relevant files: pyproject.toml, requirements.txt, requirements-dev.in, tasks.bat, Makefile
  • 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: medium. Effort: S. audit-key: dependencies|pyproject.toml|dependencies

Activity

  1. added
    dependencies
    priority: medium
    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

    dependenciespriority: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions