Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pypa/setuptools
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v84.0.0
Choose a base ref
...
head repository: pypa/setuptools
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v84.1.0
Choose a head ref
  • 19 commits
  • 11 files changed
  • 3 contributors

Commits on Jul 31, 2026

  1. Configuration menu
    Copy the full SHA
    ef9ddf7 View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2026

  1. Merge pull request #5283 from TheGreatApollyon/fix/typo

    fix: correct typo in changelog
    jaraco authored Aug 9, 2026
    Configuration menu
    Copy the full SHA
    7d53128 View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2026

  1. Ignore N999 (invalid-module-name) (jaraco/skeleton#212)

    ruff 0.16 flags N999 for projects whose source directory is the
    distribution name and is redirected to a different import package (e.g.
    namespace layouts, as used throughout coherent-oss), even though that
    dotted name is a valid module. Reported upstream as astral-sh/ruff#27801;
    ignore it here rather than carry a per-file noqa in every such project.
    
    Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
    jaraco and claude authored Aug 16, 2026
    Configuration menu
    Copy the full SHA
    8aa3460 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2026

  1. Ignore B008 (function-call-in-default-argument). (jaraco/skeleton#215)

    B006 already catches shared mutable defaults; B008 flags every call
    regardless of mutability, and escaping it requires enumerating
    fully-qualified names in each downstream project.
    
    Closes jaraco/skeleton#214
    
    Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
    jaraco and claude authored Aug 28, 2026
    Configuration menu
    Copy the full SHA
    2c43cdf View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2026

  1. Reject archive members that escape the extraction directory

    Both the tar and zip formats specify '/' as the only path separator, but
    the guard in archive_util split member names on '/' alone. A name such as
    `..\escaped.txt` was therefore a single component that passed the '..'
    check, and was then resolved as a traversal by the filesystem on Windows.
    Drive-qualified and UNC names escaped the same way, discarding the
    extraction directory entirely.
    
    Both drivers now share a single _resolve_dest() that rejects such names
    and, as defense in depth, confirms the resolved destination really does
    fall under the extraction directory.
    
    Ref GHSA-grgh-hr87-3jpw.
    
    Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
    jaraco and claude committed Sep 7, 2026
    Configuration menu
    Copy the full SHA
    7297411 View commit details
    Browse the repository at this point in the history
  2. Avoid an unreachable branch in the containment check

    os.path.commonpath raises ValueError only for paths on different drives,
    which the drive-qualified name check already rejects, leaving a branch that
    cannot be exercised. Compare against the root prefix instead; joining an
    empty component keeps the comparison correct when extracting to the root of
    a filesystem.
    
    Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
    jaraco and claude committed Sep 7, 2026
    Configuration menu
    Copy the full SHA
    3e735d5 View commit details
    Browse the repository at this point in the history
  3. Raise UnsafeMember instead of silently skipping unsafe members

    Returning a sentinel left each call site to interpret it, and made a
    malicious or malformed archive indistinguishable from a clean one: the
    caller got a quietly incomplete extraction with no indication that
    anything had been dropped. For the one remaining in-tree caller, an
    unpacked wheel, that means a corrupt install that is then imported.
    
    Raise instead, as the stdlib tarfile extraction filters do. UnsafeMember
    is deliberately not an UnrecognizedFormat, which unpack_archive catches
    to fall through to the next driver.
    
    Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
    jaraco and claude committed Sep 7, 2026
    Configuration menu
    Copy the full SHA
    bebbe6b View commit details
    Browse the repository at this point in the history
  4. Classify the raising behavior as a feature, not a removal

    Silently skipping members that escape the extraction directory was never
    intended behavior, so there is nothing supported being removed. Nor is
    rejecting backslash-separated member names: both formats specify '/' as
    the only separator, the old handling was already inconsistent between
    Windows and POSIX, and nothing in the module's history suggests anyone
    relied on it.
    
    Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
    jaraco and claude committed Sep 7, 2026
    Configuration menu
    Copy the full SHA
    2289f49 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2026

  1. Merge pull request #5325 from pypa/fix/archive-util-backslash-traversal

    Reject archive members that escape the extraction directory
    jaraco authored Sep 8, 2026
    Configuration menu
    Copy the full SHA
    2707b4e View commit details
    Browse the repository at this point in the history
  2. Ignore PyPy's deprecated check_home warning in tests

    PyPy 3.11's bundled distutils calls sysconfig.is_python_build(True),
    but its own sysconfig deprecated that argument. With
    SETUPTOOLS_USE_DISTUTILS=stdlib the resulting DeprecationWarning turns
    into an error under `filterwarnings = error`, reddening the
    pypy3.11/stdlib matrix job on every PR. Nothing in setuptools passes
    check_home, so filter the message and test setuptools rather than
    PyPy's stdlib.
    
    Closes #5327
    
    Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
    jaraco and claude committed Sep 8, 2026
    Configuration menu
    Copy the full SHA
    4e612f9 View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2026

  1. Ignore PLC0414 (useless-import-alias). (jaraco/skeleton#216)

    Ref jaraco/skeleton#210.
    
    Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
    jaraco and claude authored Oct 1, 2026
    Configuration menu
    Copy the full SHA
    9e08129 View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2026

  1. Pass secrets through to the reusable test-suite workflow. (jaraco/ske…

    …leton#219)
    
    Closes jaraco/skeleton#218
    
    Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
    jaraco and claude authored Oct 2, 2026
    Configuration menu
    Copy the full SHA
    9695460 View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2026

  1. Configuration menu
    Copy the full SHA
    715ec38 View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2026

  1. Remove DTZ011 suppressions that Ruff 0.17 reports as unused.

    Ruff 0.17 dropped DTZ011 from its default rule set (it was among the
    defaults added in 0.16), so RUF100 now flags the noqa directives in
    setuptools/warnings.py. The trailing comments only justified the
    suppressions, so drop them along with the directives.
    
    Ref jaraco/skeleton#210.
    
    Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
    jaraco and claude committed Oct 19, 2026
    Configuration menu
    Copy the full SHA
    6dadc86 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #5356 from pypa/skeleton-ruff-0.16

    Merge jaraco/skeleton; fix the Ruff 0.17 unused-noqa failure
    jaraco authored Oct 19, 2026
    Configuration menu
    Copy the full SHA
    8419f00 View commit details
    Browse the repository at this point in the history
  3. Validate namespace package names during legacy wheel installation

    Entries in a wheel's namespace_packages.txt were split on '.' and passed
    straight to os.path.join, which interprets its arguments as paths. An entry
    that is absolute, drive-qualified, or UNC therefore discarded the
    destination egg directory entirely and placed a fixed-content __init__.py
    at a path chosen by the wheel.
    
    The report framed this as Windows-only, but only the drive-letter form is;
    an absolute POSIX path escapes just as readily. Namespace entries are now
    validated as dotted module names on every platform, with a containment
    check as defense in depth.
    
    This sink is reachable only through the deprecated setup_requires
    mechanism when setup() is invoked outside a PEP 517 frontend. The
    setuptools build backend disables setup_requires installation in every
    hook, so it does not reach it.
    
    Ref GHSA-xmj3-9gf7-h52w.
    
    Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
    jaraco and claude committed Oct 19, 2026
    Configuration menu
    Copy the full SHA
    6d07b8d View commit details
    Browse the repository at this point in the history
  4. Cover the containment check with a symlink escape test

    Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
    jaraco and claude committed Oct 19, 2026
    Configuration menu
    Copy the full SHA
    54b5dca View commit details
    Browse the repository at this point in the history
  5. Merge pull request #5329 from pypa/fix/wheel-namespace-path-escape

    Validate namespace package names during legacy wheel installation
    jaraco authored Oct 19, 2026
    Configuration menu
    Copy the full SHA
    e66004c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    77b7ace View commit details
    Browse the repository at this point in the history
Loading