Skip to content

Use PyPI as default index to prevent Artifactory URLs in uv.lock#267

Merged
Marc Santamaria (marcsantamaria-sky) merged 2 commits into
masterfrom
use-pypi-as-default-index
Jun 30, 2026
Merged

Use PyPI as default index to prevent Artifactory URLs in uv.lock#267
Marc Santamaria (marcsantamaria-sky) merged 2 commits into
masterfrom
use-pypi-as-default-index

Conversation

@marcsantamaria-sky

Copy link
Copy Markdown
Contributor

Summary

  • Replaces [tool.uv] index-url with [[tool.uv.index]] default = true for https://pypi.org/simple
  • The new syntax takes precedence over user-level uv config, preventing a local Artifactory index (configured with default = true) from overriding the project's PyPI setting and embedding Artifactory URLs in uv.lock
  • Mirrors the same fix already applied to cfripper

Test plan

  • CI passes (lock file URLs remain as pypi.org / files.pythonhosted.org)

🤖 Generated with Claude Code

Replace [tool.uv] index-url with [[tool.uv.index]] default = true so
the project-level PyPI index overrides any local uv config that sets a
private registry as default, preventing Artifactory URLs from being
embedded in uv.lock on developer machines.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 30, 2026 09:16

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.

Pull request overview

Updates the project’s uv configuration in pyproject.toml to ensure PyPI is treated as the default package index at the project level, preventing user-level uv defaults (e.g., internal Artifactory) from leaking into uv.lock.

Changes:

  • Replaces [tool.uv] index-url = "https://pypi.org/simple" with [[tool.uv.index]] url = "https://pypi.org/simple" default = true.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@marcsantamaria-sky Marc Santamaria (marcsantamaria-sky) marked this pull request as draft June 30, 2026 09:30
@marcsantamaria-sky Marc Santamaria (marcsantamaria-sky) marked this pull request as ready for review June 30, 2026 09:36
@marcsantamaria-sky Marc Santamaria (marcsantamaria-sky) merged commit ec5e301 into master Jun 30, 2026
12 checks passed
@marcsantamaria-sky Marc Santamaria (marcsantamaria-sky) deleted the use-pypi-as-default-index branch June 30, 2026 10:46
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.

4 participants