Skip to content

Updating Python Resources Only Works for Public Repos #60

@Justintime50

Description

@Justintime50

After playing for hours with #56, it appears that this only works for public projects. When attempting to call brew update-python-resources on a private repo, we are met with the following:

2025-06-14 06:21:46,187 - INFO - Attempting to update Python resources in the formula...
An error occurred while updating Python resources: Warning: update-python-resources is a developer command, so Homebrew's
developer mode has been automatically turned on.
To turn developer mode off, run:
  brew developer off

==> Retrieving PyPI dependencies for "https://api.github.com/repos/Justintime50/github-actions-test/tarball/v0.1.1"...
Error: Unable to determine dependencies for "https://api.github.com/repos/Justintime50/github-actions-test/tarball/v0.1.1" because of a failure when running
`/home/linuxbrew/.linuxbrew/opt/python@3.13/libexec/bin/python -m pip install -q --disable-pip-version-check --dry-run --ignore-installed --report=/dev/stdout [https://api.github.com/repos/Justintime50/github-actions-test/tarball/v0.1.1`.](https://api.github.com/repos/Justintime50/github-actions-test/tarball/v0.1.1%60.)
Please update the resources manually.

This is because the URL is the api url and not a readily available Python sdist (tar.gz) so it cannot be pulled and used. I documented the new feature as only available to public repos but we should look into making it work for private ones too.

This also makes me wonder if private homebrew formula even work... will need to test more.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions