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
76 stars 3 forks source link

Updates to account for internal environments #84

Open teruokun opened 3 months ago

teruokun commented 3 months ago

With the new internal environments used for hatch test, hatch fmt, and the internal uv installation, this allows for accounting for the internal environments with --all or by name when updating the constraint files for those environments.

juftin commented 3 months ago

Oh nice, this looks great. This project does quite a bit to maintain compatibility with hatch>=1.7,<2.0 - could you add a conditional check on the hatch version before adding the --internal flag to maintain backwards compatibility?

teruokun commented 3 months ago

Sure, I had originally thought about doing that but hesitated since it added more complexity to the overall logic so I thought I'd go simple first, but it should be relatively straight-forwards. I'll try to get that done today

teruokun commented 3 months ago

Alright, the updates do a parametrize on the mocked cli tests and adds in the hatch version check (wasn't sure if there was already a utility for that or not, but if there is I'm happy to not re-invent it)

teruokun commented 2 months ago

@juftin can you take a look at the newest revision?