Hatchling plugin to read project dependencies from requirements.txt
Tests
PyPI
Anaconda
Activity
QA
Other
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"]
fast
|