juftin / hatch-pip-compile

hatch plugin to use pip-compile (or uv) to manage project dependencies and lockfiles
http://juftin.com/hatch-pip-compile/
MIT License
74 stars 3 forks source link

✨ exhaustive dependencies_in_sync #51

Closed juftin closed 8 months ago

juftin commented 8 months ago

resolves #50

Changes

Instead of only checking packages specified on the pyproject.toml when running self.dependencies_in_sync() this PR uses all packages from the lockfile instead.

This is done by reading an exhaustive list of dependencies from the lockfile and passing them to hatchling.dep.core.dependencies_in_sync.

This PR uses piptools._compat.pip_compat to interface with the lockfile.

juftin commented 8 months ago

I'm super happy with this one. It goes along perfectly with https://github.com/juftin/hatch-pip-compile/pull/48. I tested by changing a minor version of a package on the lockfile and it picked it up automatically and installed the new version.

juftin commented 8 months ago

:tada: This PR is included in version 1.9.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: