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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | be9d7d7e31780e8666b7f1c2aed336736596913a2ce255d67658c5806951b747 |
|
MD5 | 29bd380a43dc1ef1b06bbd384c13cad0 |
|
BLAKE2b-256 | 177d667cf74ea9b30c6955d73bebe46aef6cc55737c95cfb08643ec764bc252f |
Close
Hashes for poetry_to_requirements-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 600256764f26df6dfac67c467af9d00ded3a1f05284aa0b508de25371715d22b |
|
MD5 | 1859e31c02378fba7ab877f2004677bb |
|
BLAKE2b-256 | a9bce5430216d53504e83a786a4b238dd0c95ef216ca29100bc201a15da6d768 |