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
File details
Details for the file edwh_pipcompile_plugin-0.5.3.tar.gz
.
File metadata
- Download URL: edwh_pipcompile_plugin-0.5.3.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f6f3a9f556bfc8ad06a3a72234cef0e3dd0162024bf34d6e7acc18a853fc0e4 |
|
MD5 | 29f1af4601e6094b8138d3cb70245cb3 |
|
BLAKE2b-256 | 5271a69309d9f2dd5b7b4800eb55343540eb08b24d170e66318598a8d85a2c10 |
File details
Details for the file edwh_pipcompile_plugin-0.5.3-py3-none-any.whl
.
File metadata
- Download URL: edwh_pipcompile_plugin-0.5.3-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f6b276d9357d3c7e6e5553f3948b5f3e7a508a9a6fc1703a2b647091319bff2 |
|
MD5 | 395398ff7f29b16d979bf893f362975a |
|
BLAKE2b-256 | b1c966e0fcf64187bfbb5bc5cb1fd69e1036587d9ce68fef1ba4cadcf86fb352 |