Pre-commit hook to convert Poetry dependancies to pip requirements.txt.
Project description
Pre-commit hooks
Poetry to Pip requirements
This pre-commit hook can be used to generate a (requirements
)[https://pip.pypa.io/en/stable/user_guide/#requirements-files] file for pip from Poetry's dependency list.
General Usage
In each of your repos, add a file called .pre-commit-config.yaml with the following contents:
repos:
- repo: https://github.com/christopherpickering/pre-commit-hooks
rev: <VERSION> # Get the latest from: https://github.com/christopherpickering/pre-commit-hooks/releases
hooks:
- id: poetry-to-requirements
args: [--dev,--output=subfolder/requirements.txt]
Arguments
- --dev: include dev requirements. Default= False
- --output=folder/requirements.txt: output file name. Default= requirements.txt. This path should be relative to the --input path.
- (optional) --input=path/to/project_root: path to the project root. Default= .
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
Built Distribution
Close
Hashes for poetry_to_requirements-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 936a40aa0deba4adcbe296be6658fcdc460d73455fa12cb4b8608e10bbc3cf41 |
|
MD5 | d998e4b8938471f81ab564226c8513b0 |
|
BLAKE2b-256 | 99143fb0151be5dd1935a517deafd3ea610f782ed35d26c305c4824cda5660cd |
Close
Hashes for poetry_to_requirements-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b44e59cfda10e46e7b21e87ebae5e0fd6d0c1dac7065db693bcd3490d120ea71 |
|
MD5 | d526ecb4357d5b2d7cdd46c1d796d75d |
|
BLAKE2b-256 | c06a1a21d3b71aed0500808d9e0ebc5a070fd835ce789649f50b04bf80419c47 |