{"id":46270196,"url":"https://github.com/tomasr8/hatch-locked-deps","last_synced_at":"2026-03-07T06:01:36.342Z","repository":{"id":341287694,"uuid":"1169569471","full_name":"tomasr8/hatch-locked-deps","owner":"tomasr8","description":"Create reproducible wheels","archived":false,"fork":false,"pushed_at":"2026-02-28T22:31:15.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-05T07:37:24.342Z","etag":null,"topics":["hatch","lockfile","packaging","reproducibility"],"latest_commit_sha":null,"homepage":"","language":"Python","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/tomasr8.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-28T22:04:31.000Z","updated_at":"2026-02-28T22:30:43.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/tomasr8/hatch-locked-deps","commit_stats":null,"previous_names":["tomasr8/hatch-locked-deps"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/tomasr8/hatch-locked-deps","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasr8%2Fhatch-locked-deps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasr8%2Fhatch-locked-deps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasr8%2Fhatch-locked-deps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasr8%2Fhatch-locked-deps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomasr8","download_url":"https://codeload.github.com/tomasr8/hatch-locked-deps/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasr8%2Fhatch-locked-deps/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30162716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T04:43:31.446Z","status":"ssl_error","status_checked_at":"2026-03-06T04:40:30.133Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["hatch","lockfile","packaging","reproducibility"],"created_at":"2026-03-04T03:04:12.769Z","updated_at":"2026-03-06T05:02:00.194Z","avatar_url":"https://github.com/tomasr8.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hatch-locked-deps\n\nA [Hatch](https://hatch.pypa.io/) build hook that pins your wheel's dependencies to the exact versions from your lock file, including all transitive dependencies.\n\n## Why you should use this\n\nWhen you install a Python wheel, pip resolves transitive dependencies to whatever versions it sees fit. This is fine for libraries, but for **end-user applications** you want reproducible installs with the exact same dependencies in development, CI and production.\n\n`hatch-locked-deps` reads your lock file at build time and writes every resolved package (with pinned `==` versions) into your wheel's `Requires-Dist` metadata. This ensures that when you install the wheel, the dependencies are the same ones you have in your lock file.\n\n## Supported lock file formats\n\n| Format | File | Notes |\n|---|---|---|\n| [PEP 751](https://peps.python.org/pep-0751/) | `pylock.toml` | Preferred; standard lock file format |\n| [uv](https://docs.astral.sh/uv/) | `uv.lock` | Full dependency graph walk; dev deps excluded automatically |\n| [pip-compile](https://pip-tools.readthedocs.io/) | `requirements.txt` | Hashes stripped, markers preserved |\n\nAuto-detection checks for these files in the order listed above.\n\n## Quick start\n\nAdd `hatch-locked-deps` as a build dependency and enable the hook:\n\n```toml\n[build-system]\nrequires = [\"hatchling\", \"hatch-locked-deps\"]\nbuild-backend = \"hatchling.build\"\n\n[tool.hatch.build.hooks.locked-deps]\n```\n\nThat's it. Your wheel metadata now define the exact same dependencies as your lock file.\n\n## Configuration\n\nAll options go under `[tool.hatch.build.hooks.locked-deps]`:\n\n```toml\n[tool.hatch.build.hooks.locked-deps]\nlock-file = \"pylock.toml\"\nformat = \"pylock\"\nexclude = [\"numpy\"]\ninclude-extras = [\"test\"]\n```\n\n| Option | Description |\n|---|---|\n| `lock-file` | Path to the lock file, relative to the project root. Only needed for non-standard file names or locations. |\n| `format` | Lock file format: `pylock`, `uv`, or `requirements`. Only needed when using a non-standard file name. |\n| `exclude` | List of package names to exclude from the locked dependencies. |\n| `include-extras` | List of project extras whose dependencies should also be included. |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomasr8%2Fhatch-locked-deps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomasr8%2Fhatch-locked-deps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomasr8%2Fhatch-locked-deps/lists"}