Skip to main content

Plugin that integrates `pip-tools` with `edwh`

Project description

edwh-pipcompile-plugin

PyPI - Version PyPI - Python Version


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

See CHANGELOG.md

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

edwh_pipcompile_plugin-0.5.3.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

edwh_pipcompile_plugin-0.5.3-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file edwh_pipcompile_plugin-0.5.3.tar.gz.

File metadata

File hashes

Hashes for edwh_pipcompile_plugin-0.5.3.tar.gz
Algorithm Hash digest
SHA256 3f6f3a9f556bfc8ad06a3a72234cef0e3dd0162024bf34d6e7acc18a853fc0e4
MD5 29f1af4601e6094b8138d3cb70245cb3
BLAKE2b-256 5271a69309d9f2dd5b7b4800eb55343540eb08b24d170e66318598a8d85a2c10

See more details on using hashes here.

File details

Details for the file edwh_pipcompile_plugin-0.5.3-py3-none-any.whl.

File metadata

File hashes

Hashes for edwh_pipcompile_plugin-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0f6b276d9357d3c7e6e5553f3948b5f3e7a508a9a6fc1703a2b647091319bff2
MD5 395398ff7f29b16d979bf893f362975a
BLAKE2b-256 b1c966e0fcf64187bfbb5bc5cb1fd69e1036587d9ce68fef1ba4cadcf86fb352

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page