Table of Contents
pip install edwh-pipcompile-pluginBut probably you want to install the whole edwh package:
pipx install edwh[pip]
# or
pipx install edwh[plugins,omgeving]To see all available subcommands or get help for a specific command, you can use:
edwh help pip
edwh help pip.compileYou 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.txtmydirectory/second.in->mydirectory/second.txt
You can also add --combine to combine multiple .in files into a single .txt file (
called <directory>/requirements.txt).
Build options in a .in file, such as a standalone --no-binary lxml line, are
included in the generated .txt file. This lets installs build selected packages
from source without editing the generated file.
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.txtWhere 'directory' is the name of a specific folder.
You can use the special symbol __cwd__ to target the project folder.
edwh-pipcompile-plugin is distributed under the terms of the MIT license.