Skip to content

chore: suppress PyPI publishing via hatch-native config#933

Open
Copilot wants to merge 3 commits intomainfrom
copilot/suppress-publish-on-pypi
Open

chore: suppress PyPI publishing via hatch-native config#933
Copilot wants to merge 3 commits intomainfrom
copilot/suppress-publish-on-pypi

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 28, 2026

Summary

Adds the hatch-native [tool.hatch.publish.index] disable flag to complement the existing Private :: Do Not Upload classifier, providing an explicit, tool-level guard against accidental PyPI publishes.

Changes

  • Added [tool.hatch.publish.index] with disable = true to pyproject.toml — prevents hatch publish from targeting the PyPI index at the tool level, independent of workflow-level checks
[tool.hatch.publish.index]
disable = true

Testing

  • make test passes locally
  • make fmt has been run
  • New tests added (or explain why not needed) — config-only change, no logic to test

Checklist

  • Commit messages follow the Conventional Commits format
  • Documentation updated if behaviour changed
  • make deptry passes (no unused or missing dependencies)

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Copilot AI linked an issue Mar 28, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Configure package to suppress publish on PyPI chore: suppress PyPI publishing via hatch-native config Mar 28, 2026
Copilot AI requested a review from tschm March 28, 2026 08:00
@tschm tschm marked this pull request as ready for review March 28, 2026 08:13
Copilot AI review requested due to automatic review settings March 28, 2026 08:13
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a Hatch configuration flag intended to explicitly disable publishing to the default index (PyPI), complementing the existing Private :: Do Not Upload classifier safeguard.

Changes:

  • Add [tool.hatch.publish.index] configuration with disable = true in pyproject.toml to guard against hatch publish targeting PyPI.

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.

surpress publish on PYPI

3 participants