Plugin that integrates `pip-tools` with `edwh`
Project description
edwh-pipcompile-plugin
Table of Contents
Installation
pip install edwh-pipcompile-plugin
But probably you want to install the whole edwh package:
pipx install edwh[pip]
# or
pipx install edwh[plugins,omgeving]
Usage
To see all available subcommands or get help for a specific command, you can use:
edwh help pip
edwh help pip.compile
You can use pip.compile
(and pip.upgrade
, etc.) in multiple ways.
You can run it on a specific file: ew pip.compile <myfile.in>
. This will result in a myfile.txt
.
You can run it on a directory: ew pip.compile <mydirectory>
or ew pip.compile .
.
This will transform all .in
files into .out
files (with the same name):
mydirectory/first.in
->mydirectory/first.txt
mydirectory/second.in
->mydirectory/second.txt
You can also add --combine
to combine multiple .in
files into a single .txt
file (
called <directory>/requirements.txt
).
If you want to modify this behavior, you can do so via pyproject.toml
:
[tool.edwh.pipcompile.directory]
input = ["first.in", "../second.in"] # will ignore other .in files;
# transformed to directory/first.in and ./second.in
output = "output.txt" # directory/output.txt
Where 'directory' is the name of a specific folder.
You can use the special symbol __cwd__
to target the project folder.
License
edwh-pipcompile-plugin
is distributed under the terms of the MIT license.
Changelog
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for edwh_pipcompile_plugin-0.5.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ac46a5b60421cb6da0a9a2d93639ee8ee7fcf364bc3701d50db1db1d005246d |
|
MD5 | 8e31820c23d65743f14e4d86706bf071 |
|
BLAKE2b-256 | 1769cdd1990ca6090d8ebd739fbb07199eee43af65479e0ac5fe5aee8efe56bc |
Hashes for edwh_pipcompile_plugin-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82140423c4198eae912cfde8737b8f1eeb0ad92535f5f14d30a0a3a2d2ee349d |
|
MD5 | fc30dfdc8cbd645a1165712de6ddb8a2 |
|
BLAKE2b-256 | 2af4a657dad2df9caa13e7ba4cf09ca0e72f546560aa829ccd36f1cc513e1b46 |