Hatchling plugin to read project dependencies from requirements.txt
Project description
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"]
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
Built Distribution
Hashes for hatch_requirements_txt-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23ccf7e2fbcf2bb320f7e5e0da732035c81e8794050742d5da3d22c330354067 |
|
MD5 | 51742c74677718973215a1ac70f3c919 |
|
BLAKE2b-256 | aebd590c79319876df2ac8243456c8a6eb0c674a125e9fca862d25050629f515 |
Hashes for hatch_requirements_txt-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 168a79430db5ed827033bf3db3921fd18eda3d8d4d4518781e4996e426741b04 |
|
MD5 | 55aabcbd7fa592aea5954304bede9934 |
|
BLAKE2b-256 | 4d1b4cdf49be8761fee294db94ee453fcfec9610f84e29b86fb7fc3caf6430ca |