{"id":19639017,"url":"https://github.com/timsutton/homebrew-python-vendoring-scripts","last_synced_at":"2025-08-12T16:33:45.891Z","repository":{"id":223062210,"uuid":"759211625","full_name":"timsutton/homebrew-python-vendoring-scripts","owner":"timsutton","description":"Scripts to automate vendoring migration in python-based homebrew/core formulae","archived":false,"fork":false,"pushed_at":"2024-02-18T01:49:28.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-25T00:58:10.565Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/timsutton.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-18T00:24:41.000Z","updated_at":"2024-02-18T01:11:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"89a20bad-8a06-4f00-8c2b-e5ca30a08462","html_url":"https://github.com/timsutton/homebrew-python-vendoring-scripts","commit_stats":null,"previous_names":["timsutton/homebrew-python-vendoring-scripts"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timsutton%2Fhomebrew-python-vendoring-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timsutton%2Fhomebrew-python-vendoring-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timsutton%2Fhomebrew-python-vendoring-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timsutton%2Fhomebrew-python-vendoring-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timsutton","download_url":"https://codeload.github.com/timsutton/homebrew-python-vendoring-scripts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240942762,"owners_count":19882270,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T12:43:47.469Z","updated_at":"2025-02-26T22:23:06.336Z","avatar_url":"https://github.com/timsutton.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# homebrew-python-vendoring-scripts\n\nA few scripts to help automate the process of migrating most Python-based formulae back into vendored resources.\n\n## Usage\n\nCurrently there are two scripts, which each have a hardcoded list of formulae or PyPi package names. These lists should contain the full list of formulae/packages to be vendored.\n\nIf you need to modify the formulae/pypi package lists, edit the lists in the scripts directly.\n\nThe scripts can be run out of this repo checkout, and assume you have homebrew-core tapped.\n\n### Remove excluded PyPi packages from formula mappings\n\nWith a basic Ruby environment loaded, run the `remove-excluded-pypi-packages.rb` script to remove some the excluded packages from `pypi_formula_mappings.json`:\n\n```bash\n./remove-excluded-pypi-packages.rb\n```\n\n### Update Python resources in formulas\n\nRun `update-formula-files.sh` next, to make the initial formula updates:\n\n```bash\n./update-formula-files.sh\n```\n\nThis will (1) remove the appropriate `depends_on` lines in formulas, and (2) run `brew update-python-resources \u003cformula\u003e` on all formulae which are modified (according to Git).\n\n## Next steps\n\nTake a look at the formula changes and see if they make sense, or might need additional edits.\n\nIf the formula didn't previously have anything vendored, it should also set its install method to use the `virtualenv_install_with_resources` method and `include Language::Python::Virtualenv` in the formula.\n\nTest out the installation and open a PR for the formula and `pypi_formula_mappings.json` change.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimsutton%2Fhomebrew-python-vendoring-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimsutton%2Fhomebrew-python-vendoring-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimsutton%2Fhomebrew-python-vendoring-scripts/lists"}