{"id":20940384,"url":"https://github.com/fedora-python/importpatches","last_synced_at":"2025-05-13T22:32:16.672Z","repository":{"id":47082992,"uuid":"280507271","full_name":"fedora-python/importpatches","owner":"fedora-python","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-22T07:53:31.000Z","size":33,"stargazers_count":4,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-13T14:16:21.355Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fedora-python.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.MIT","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,"zenodo":null}},"created_at":"2020-07-17T19:19:59.000Z","updated_at":"2025-04-22T07:53:35.000Z","dependencies_parsed_at":"2025-04-17T10:41:51.535Z","dependency_job_id":"08ad5683-db4f-4b83-949d-bd5493682c13","html_url":"https://github.com/fedora-python/importpatches","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedora-python%2Fimportpatches","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedora-python%2Fimportpatches/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedora-python%2Fimportpatches/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedora-python%2Fimportpatches/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fedora-python","download_url":"https://codeload.github.com/fedora-python/importpatches/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254036821,"owners_count":22003659,"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-18T23:10:11.218Z","updated_at":"2025-05-13T22:32:15.510Z","avatar_url":"https://github.com/fedora-python.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# importpatches.py\n\nA command to update Fedora Python dist-git spec \u0026 patches from a Git repository\n\nMeant to be used with a local clone of [fedora-python/cpython]\nwhich includes tags like `vX.Y.Z` (upstream releases) and branches\nlike `fedora-X.Y` (`vX.Y.Z` + commits for individual patches).\n\nThe summary lines of patch commits must start with `NNNNN: `, where NNNNN is\nthe patch number (registered in the [patch registry]).\nThe rest of the commit message should be usable in the spec.\n\n(It also mostly works with the `fedora-2.7` branch, which uses different\nconventions.)\n\n[fedora-python/cpython]: https://github.com/fedora-python/cpython\n[patch registry]: https://fedoraproject.org/wiki/SIGs/Python/PythonPatches\n\n\n## Setup\n\nAdd the script to your `$PATH`, for example:\n\n    ln -s $PWD/importpatches.py ~/.local/bin/importpatches\n\nThe script needs to know where your local clone of `fedora-python/cpython` is,\nand uses Git configuration as a default.\n\nIn your clone of dist-git, run `git config importpatches.upstream .../cpython`.\n(Replace `.../cpython` with your clone of `fedora-python/cpython`, of course.)\nAlternatively, run `git config` with `--global`\nto avoid the need to set this in all dist-git clones of Pythons.\n\n\n## Usage\n\nRun `importpatches.py` without arguments in your clone of dist-git.\nIf the defaults don't work for you, run with `--help` to see the options.\n\n\n## Git hash IDs\n\nThe script adds Git hash IDs to the spec file.\nThese are hashes of the patch content, ignoring tings like context lines and\ncomments.\nWhen one of these changes, pay special atttention to the patch diff.\n\n## License\n\nThe script is available under the MIT license. May it serve you well.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedora-python%2Fimportpatches","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffedora-python%2Fimportpatches","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedora-python%2Fimportpatches/lists"}