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

✨ command line interface #62

Closed juftin closed 7 months ago

juftin commented 7 months ago

This PR adds a CLI to the hatch-pip-compile package to handle the upgrading process. Relates to https://github.com/juftin/hatch-pip-compile/discussions/59

Examples

Upgrade the default environment

The below command will upgrade all packages in the default environment.

hatch-pip-compile --upgrade

Upgrade a non-default environment

The below command will upgrade all packages in the docs environment.

hatch-pip-compile docs --upgrade

Upgrade a specific package

The below command will upgrade the requests package in the default environment.

hatch-pip-compile --upgrade-package requests

Upgrade all pip-compile environments

The below command will upgrade all packages in all pip-compile environments.

hatch-pip-compile --upgrade --all
codecov-commenter commented 7 months ago

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (969c7ca) 91.23% compared to head (5bdc904) 93.06%.

Files Patch % Lines
hatch_pip_compile/cli.py 95.52% 2 Missing and 1 partial :warning:
hatch_pip_compile/__main__.py 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #62 +/- ## ========================================== + Coverage 91.23% 93.06% +1.83% ========================================== Files 11 16 +5 Lines 639 808 +169 Branches 95 128 +33 ========================================== + Hits 583 752 +169 - Misses 34 35 +1 + Partials 22 21 -1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

juftin commented 7 months ago

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

The release is available on GitHub release

Your semantic-release bot :package::rocket: