Skip to content

miniforge3 26.1, 26.3, add_miniforge: exclude .pkg installers - #3446

Merged
native-api merged 2 commits into
pyenv:masterfrom
native-api:miniforge_exclude_pkg
May 11, 2026
Merged

native-api merged 2 commits into
pyenv:masterfrom
native-api:miniforge_exclude_pkg

Conversation

@native-api

@native-api native-api commented May 11, 2026 •

Copy link
Copy Markdown
Member

According to Miniforge README, they are only meant for interactive installation

Make sure you have checked all steps below.

Prerequisite

  • Please consider implementing the feature as a hook script or plugin as a first step.
    • pyenv has some powerful support for plugins and hook scripts. Please refer to Authoring plugins for details and try to implement it as a plugin if possible.
  • Please consider contributing the patch upstream to rbenv, since we have borrowed most of the code from that project.
    • We occasionally import the changes from rbenv. In general, you can expect changes made in rbenv will be imported to pyenv too, eventually.
    • Generally speaking, we prefer not to make changes in the core in order to keep compatibility with rbenv.
  • My PR addresses the following pyenv issue (if any)
    • N/A

Description

  • Here are some details about my PR
    see above

Tests

  • My PR adds the following unit tests (if any)
    N/A

Summary by cubic

Exclude macOS .pkg Miniforge installers in python-build to avoid interactive installs in CI. Only .sh installers are used for miniforge3 26.1.x and 26.3.x.

  • Bug Fixes
    • In plugins/python-build/scripts/add_miniforge.py, updated supported() and SHA filtering to skip .pkg files and their .sha256 assets.
    • Removed .pkg entries from share/python-build/miniforge3-26.1.1-2, miniforge3-26.1.1-3, miniforge3-26.3.2-0, and miniforge3-26.3.2-1.

Written for commit b6ebf37. Summary will update on new commits.

According to Miniforge README, they are only meant for interactive installation
@native-api
native-api requested review from a team as code owners May 11, 2026 21:14

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

1 issue found across 5 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="plugins/python-build/scripts/add_miniforge.py">

<violation number="1" location="plugins/python-build/scripts/add_miniforge.py:98">
P2: Using `endswith('.pkg')` doesn't filter out the corresponding `.pkg.sha256` files in the first `supported()` call (where the filename is e.g. `Miniforge3-...-MacOSX-arm64.pkg.sha256`). This causes unnecessary SHA file downloads. Use a substring check (consistent with the other conditions) to also catch `.pkg.sha256` filenames.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review, or fix all with cubic.

@native-api native-api changed the title CI, miniforge3 26.1, 26.3: exclude .pkg installers miniforge3 26.1, 26.3, add_miniforge: exclude .pkg installers May 11, 2026
@native-api
native-api merged commit 522164f into pyenv:master May 11, 2026
44 checks passed
@native-api
native-api deleted the miniforge_exclude_pkg branch May 11, 2026 22:06
social4hyq pushed a commit to social4hyq/homebrew-core that referenced this pull request Sep 20, 2026
pyenv 2.6.32

Created-by: HarmonybrewBot
Commit-by: HarmonybrewBot
Merged-by: HarmonybrewBot
Description: Created by `brew bump`

---

Created with `brew bump-formula-pr`.<details>
  <summary>release notes</summary>
  <pre>## What's Changed
* Add miniconda3 26.3.2-2, miniforge3 26.3.2-0, 26.3.2-1 by @native-api in pyenv/pyenv#3445
* miniforge3 26.1, 26.3, add_miniforge: exclude bogus branches with .pkg installers by @native-api in pyenv/pyenv#3446
* miniforge 26, CI: switch check to 3.13 by @native-api in pyenv/pyenv#3447
* 2.7, 3.4: force C99 standard; 2.7.14-18: force OpenSSL 1 formula by @native-api in pyenv/pyenv#3448
* rehash: detect and remove a stale lockfile by @native-api in pyenv/pyenv#3450
* Add GraalPy 25.0.3 by @msimacek in pyenv/pyenv#3452
* 3.11.0+: Use the `--with-openssl-rpath' Configure option when possible by @native-api in pyenv/pyenv#3458
* python_build: Make `verify_python` verify `pythonX.Y' suffix by @native-api in pyenv/pyenv#3459
* Add micropython 1.22.0 to 1.28.0; add downstream patches to fix compilation errors by @native-api in pyenv/pyenv#3460
* Fix linking against a keg_only Homebrew OpenSSL when a a non-keg_only one is also installed by @native-api in pyenv/pyenv#3462
* Add missing CPython 3.14.2t by @native-api in pyenv/pyenv#3464
* 3.14.0-5: Support building against OpenSSL 4 by @native-api in pyenv/pyenv#3463


**Full Changelog**: https://github.com/pyenv/pyenv/compare/v2.6.31...v2.6.32</pre>
  <p>View the full release notes at <a href="https://github.com/pyenv/pyenv/releases/tag/v2.6.32">https://github.com/pyenv/pyenv/releases/tag/v2.6.32</a>.</p>
</details>
<hr>

See merge request: Harmonybrew/homebrew-core!9870
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