Skip to content

Dropdown installer#19984

Open
JacobCoffee wants to merge 4 commits intomainfrom
dropdown-installer
Open

Dropdown installer#19984
JacobCoffee wants to merge 4 commits intomainfrom
dropdown-installer

Conversation

@JacobCoffee
Copy link
Copy Markdown
Member

QOL to set your preferred installer and remember it via cookie:

remembering between pages:
image
image

and then changing:
image
image

JacobCoffee and others added 4 commits April 30, 2026 10:23
Frontend pieces for the installer dropdown on project detail and
account preferences pages: a Stimulus controller that renders the
command tail and persists the chosen installer in the pypi-installer
cookie, the supporting flex-strip styles, and Jest coverage.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The installer-command controller now formats each installer's correct
testpypi flag (-i for pip/uv/pipenv, --index-url for pdm,
--source testpypi for poetry). When poetry is selected on a testpypi
page, a short "First-time setup" note shows the one-time
`poetry source add` command. Styles and tests updated.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@JacobCoffee JacobCoffee requested review from a team as code owners April 30, 2026 16:26
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cb52b21d3b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

<option value="pipenv">pipenv</option>
</select>
</span>
<span id="pip-command" data-installer-command-target="command">install{{ installer_pip_flag }} {{ release.project.name }}{{ installer_spec }}</span>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve epoch-version quoting in server-rendered command

The new server-rendered fallback command no longer wraps epoch versions in quotes, so for releases like pkg==1!2.0 users without JavaScript (or before Stimulus hydration runs) will see an unquoted command containing !, which interactive shells can treat as history expansion and fail to execute. The previous pip_command macro explicitly handled this case, so this is a regression in the non-JS path.

Useful? React with 👍 / 👎.

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