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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file poetry_to_requirements-1.0.1.tar.gz.
File metadata
- Download URL: poetry_to_requirements-1.0.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.0 Linux/5.15.0-1031-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
936a40aa0deba4adcbe296be6658fcdc460d73455fa12cb4b8608e10bbc3cf41
|
|
| MD5 |
d998e4b8938471f81ab564226c8513b0
|
|
| BLAKE2b-256 |
99143fb0151be5dd1935a517deafd3ea610f782ed35d26c305c4824cda5660cd
|
File details
Details for the file poetry_to_requirements-1.0.1-py3-none-any.whl.
File metadata
- Download URL: poetry_to_requirements-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.0 Linux/5.15.0-1031-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b44e59cfda10e46e7b21e87ebae5e0fd6d0c1dac7065db693bcd3490d120ea71
|
|
| MD5 |
d526ecb4357d5b2d7cdd46c1d796d75d
|
|
| BLAKE2b-256 |
c06a1a21d3b71aed0500808d9e0ebc5a070fd835ce789649f50b04bf80419c47
|