Skip to main content

Hatchling plugin to read project dependencies from requirements.txt

Project description

Hatchling plugin to read project dependencies from requirements.txt

Tests

Linux Test Status Windows Test Status macOS Test Status Coverage

PyPI

PyPI - Package Version PyPI - Supported Python Versions PyPI - Supported Implementations PyPI - Wheel

Anaconda

Conda - Package Version Conda - Platform

Activity

GitHub last commit GitHub commits since tagged version Maintenance PyPI - Downloads

QA

CodeFactor Grade Flake8 Status mypy status

Other

Hatch project License GitHub top language Requirements Status

Installation

hatch-requirements-txt can be installed from PyPI or Anaconda.

To install with pip:

$ python -m pip install hatch-requirements-txt

To install with conda:

  • First add the required channels

$ conda config --add channels https://conda.anaconda.org/conda-forge
  • Then install

$ conda install hatch-requirements-txt

Usage

In your pyproject.toml make the following changes:

  • Append hatch-requirements-txt to build-system.requires.

  • Append dependencies to project.dynamic.

  • Add the following table:

[tool.hatch.metadata.hooks.requirements_txt]
files = ["requirements.txt"]

Optionally, you can also define groups of optional dependencies (also known as “features”) by appending optional-dependencies to project.dynamic and adding a table like:

[tool.hatch.metadata.hooks.requirements_txt.optional-dependencies]
crypto = ["requirements-crypto.txt"]
fastjson = ["requirements-fastjson.txt"]
cli = ["requirements-cli.txt"]

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

hatch_requirements_txt-0.2.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hatch_requirements_txt-0.2.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file hatch_requirements_txt-0.2.0.tar.gz.

File metadata

  • Download URL: hatch_requirements_txt-0.2.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for hatch_requirements_txt-0.2.0.tar.gz
Algorithm Hash digest
SHA256 23ccf7e2fbcf2bb320f7e5e0da732035c81e8794050742d5da3d22c330354067
MD5 51742c74677718973215a1ac70f3c919
BLAKE2b-256 aebd590c79319876df2ac8243456c8a6eb0c674a125e9fca862d25050629f515

See more details on using hashes here.

File details

Details for the file hatch_requirements_txt-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for hatch_requirements_txt-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 168a79430db5ed827033bf3db3921fd18eda3d8d4d4518781e4996e426741b04
MD5 55aabcbd7fa592aea5954304bede9934
BLAKE2b-256 4d1b4cdf49be8761fee294db94ee453fcfec9610f84e29b86fb7fc3caf6430ca

See more details on using hashes here.

Supported by

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