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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23ccf7e2fbcf2bb320f7e5e0da732035c81e8794050742d5da3d22c330354067
|
|
| MD5 |
51742c74677718973215a1ac70f3c919
|
|
| BLAKE2b-256 |
aebd590c79319876df2ac8243456c8a6eb0c674a125e9fca862d25050629f515
|
File details
Details for the file hatch_requirements_txt-0.2.0-py3-none-any.whl.
File metadata
- Download URL: hatch_requirements_txt-0.2.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
168a79430db5ed827033bf3db3921fd18eda3d8d4d4518781e4996e426741b04
|
|
| MD5 |
55aabcbd7fa592aea5954304bede9934
|
|
| BLAKE2b-256 |
4d1b4cdf49be8761fee294db94ee453fcfec9610f84e29b86fb7fc3caf6430ca
|