Skip to content

FIX support relative output paths in skops update - #559

Merged
adrinjalali merged 1 commit into
skops-dev:mainfrom
AryanRG:fix/update-relative-output-path
Oct 21, 2026
Merged

adrinjalali merged 1 commit into
skops-dev:mainfrom
AryanRG:fix/update-relative-output-path

Conversation

@AryanRG

@AryanRG AryanRG commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Reference Issues/PRs

No existing issue.

What does this implement/fix? Explain your changes.

Fixes skops update failing with FileNotFoundError when a relative output path contains a directory, including --inplace. The temporary file now uses the output filename without its parent directories.

Adds regression coverage for both modes and a changelog entry.

Any other comments?

The full local test run, including doctests, and all pre-commit checks pass on macOS with Python 3.12.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The focused path-construction fix has regression coverage for both affected modes, with no unresolved findings.

No open issues 🎉

What changed in this PR

Fixes skops update for relative output paths containing directories, including --inplace.

Changes:

  • Uses only the output filename when constructing the temporary path.
  • Adds regression tests for both update modes and documents the fix.
File Description
skops/​cli/​tests/​test_update.py Tests relative paths with directories in both modes.
skops/​cli/​_update.py Removes parent directories from the temporary filename.
docs/​changes.rst Adds a changelog entry for the fix.

Review effort: Balanced

@adrinjalali
adrinjalali merged commit 82e6a23 into skops-dev:main Oct 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants