-
Notifications
You must be signed in to change notification settings - Fork 422
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inject additional packages from text file (#1252)
* Naive `pipx inject <package> -r requirements.txt` Fixes #934 * Fix imports * Better combination of packages * Better help text for `inject -r` * Add unit test * Add changelog * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Rename changelog file * Fix pylint and mypy errors * Fix default for requirements * Use assignment operator since Python >= 3.8 * Update src/pipx/commands/inject.py Co-authored-by: chrysle <[email protected]> * Update src/pipx/main.py Co-authored-by: chrysle <[email protected]> * Update tests/test_inject.py Co-authored-by: chrysle <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update changelog.d/1252.feature.md Co-authored-by: chrysle <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update tests/test_inject.py Add comments to test file Co-authored-by: chrysle <[email protected]> * Update test_inject.py Add a blank line in inject-requirements file * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Logging at INFO level Also move after exception * Discard duplicated package specifications * Update 1252.feature.md * Update install-all command * Expand pipx inject example * Clarify changelog entry * Mention in main README * Check stdout and logs in test * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Better test for injected packages * Clarify ignoring of comments in example Co-authored-by: chrysle <[email protected]> * Clarify use of "requirement" file Co-authored-by: chrysle <[email protected]> * Update README.md Co-authored-by: chrysle <[email protected]> * Update README.md Co-authored-by: chrysle <[email protected]> * Check can inject each package independently * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix handling of tricky characters * Use logger where possible * More messages in logs * More debugging messages * Inject additional package that isn't already installed * Make inject order deterministic * Fix mypy error * tidy test_inject_single_package cases * Better comments on tests * Update 1252.feature.md Simplify news fragment * Update 1252.feature.md Fix new fragement * Update examples.md Be more explicit about the syntax for the "inject -r" files. * Fix examples.md * Update 1252.feature.md Fix markdown link * Update 1252.feature.md --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: chrysle <[email protected]> Co-authored-by: chrysle <[email protected]> Co-authored-by: Xuan (Sean) Hu <[email protected]>
- Loading branch information
1 parent
5589b69
commit fca8a40
Showing
8 changed files
with
190 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add `--requirement` option to `inject` command to read list of packages from a text file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters