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.3b1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c49d2ffbd7184f54dec3b755a7a22fadf7cb912de021e0a8fbe3428f32fad26e |
|
MD5 | 988acb59d292dc870d21c0a838e1c590 |
|
BLAKE2b-256 | 5fe57b93c38de3fb73ac0080597fe2ee042bbd3470d9bca536cf5b6b1b5a5c83 |
Hashes for edwh_pipcompile_plugin-0.5.3b1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e045d43b8dec09c020993122bd461a859a840fe52a606e639938d3cfdfda3888 |
|
MD5 | cde83eaf92523379221c783103703124 |
|
BLAKE2b-256 | bf2eef44b4441f0b946075cc335d680dbb48278197e5f0afede2f1815b7150a8 |