Skip to main content

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= .

Metadata

Release files for poetry-to-requirements 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for poetry-to-requirements 1.0.1
File Size Uploaded
poetry_to_requirements-1.0.1.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for poetry-to-requirements 1.0.1
File Interpreter ABI Platform
poetry_to_requirements-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.2 kB

Release files / poetry_to_requirements-1.0.1.tar.gz

Download URL poetry_to_requirements-1.0.1.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
936a40aa0deba4adcbe296be6658fcdc460d73455fa12cb4b8608e10bbc3cf41
BLAKE2b-256 checksum
How to use checksums
99143fb0151be5dd1935a517deafd3ea610f782ed35d26c305c4824cda5660cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.11.0 Linux/5.15.0-1031-azure

Release files / poetry_to_requirements-1.0.1-py3-none-any.whl

Download URL poetry_to_requirements-1.0.1-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b44e59cfda10e46e7b21e87ebae5e0fd6d0c1dac7065db693bcd3490d120ea71
BLAKE2b-256 checksum
How to use checksums
c06a1a21d3b71aed0500808d9e0ebc5a070fd835ce789649f50b04bf80419c47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.11.0 Linux/5.15.0-1031-azure

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

0.0.6

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page