Skip to content

Add PyPI plugin for twine, flit, and hatch#589

Open
cpierce wants to merge 1 commit into1Password:mainfrom
cpierce:add-pypi-plugin
Open

Add PyPI plugin for twine, flit, and hatch#589
cpierce wants to merge 1 commit into1Password:mainfrom
cpierce:add-pypi-plugin

Conversation

@cpierce
Copy link
Copy Markdown

@cpierce cpierce commented Mar 26, 2026

Adds a shell plugin that provisions PyPI API tokens for Python packaging tools. One credential in 1Password powers all three tools, with each getting its native env vars (TWINE_PASSWORD, FLIT_PASSWORD, HATCH_INDEX_AUTH). Also imports existing credentials from .pypirc files.

Overview

Adds a PyPI shell plugin that provisions API tokens for Python packaging tools. A single credential in 1Password powers twine, flit, and hatch, with each tool receiving its native environment variables. Also imports existing credentials from ~/.pypirc files and TWINE_PASSWORD, FLIT_PASSWORD, and HATCH_INDEX_AUTH environment variables respectively.

Type of change

  • Created a new plugin
  • Improved an existing plugin
  • Fixed a bug in an existing plugin
  • Improved contributor utilities or experience

Related Issue(s)

none

  • Resolves: #
  • Relates: #

How To Test

twine upload dist/*
flit publish
hatch publish

Changelog

Authenticate twine, flit, and hatch to PyPI using Touch ID and other unlock options with 1Password Shell Plugins.

Adds a shell plugin that provisions PyPI API tokens for Python packaging
tools. One credential in 1Password powers all three tools, with each
getting its native env vars (TWINE_PASSWORD, FLIT_PASSWORD, HATCH_INDEX_AUTH).
Also imports existing credentials from .pypirc files.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant