Add dependencies specified in requirements.txt file(s) to your Poetry project
Project description
poetry-add-requirements.txt
Add dependencies specified in requirements.txt file(s) to your Poetry project
Features
- Auto detect charset of requirements.txt file(s) and feed normalized dependency specs to
poetry. - Stop on first
poetry adderror. - Ignore dependency version requirements specified in requirements.txt file(s).
- Ignore errors when installing individual dependencies.
- Pass arbitrary arguments to
poetry addafter--at the end of the command.
Installation
pipx
This is the recommended installation method.
$ pipx install poetry-add-requirements.txt
pip
$ pip install poetry-add-requirements.txt
Usage
Run poetry-add-requirements.txt, optionally specify your requirements.txt files and --dev for dev dependencies.
poeareq is provided is an alias to poetry-add-requirements.txt.
$ poeareq --help
usage: poetry-add-requirements.txt [-h] [-D] [-I] [-i] [-V] [requirements.txt file(s) ...] ...
Add dependencies specified in requirements.txt to your Poetry project
positional arguments:
requirements.txt file(s)
Path(s) to your requirements.txt file(s) (default: requirements.txt)
poetry_args Poetry args, pass them after -- at the end of the command
options:
-h, --help show this help message and exit
-D, --dev Add to development dependencies (default: False)
-I, --ignore-version-requirements
Ignore dependency version requirements in requirements.txt file(s) (default: False)
-i, --ignore-errors Ignore errors (default: False)
-V, --version show program's version number and exit
Develop
$ git clone https://github.com/tddschn/poetry-add-requirements.txt.git
$ cd poetry-add-requirements.txt
$ poetry install
Project details
Release history Release notifications | RSS feed
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 poetry_add_requirements_txt-1.2.0.tar.gz.
File metadata
- Download URL: poetry_add_requirements_txt-1.2.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.1 Darwin/23.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62122e6187ba53382aba65031a735b48c94c83cceca614d90955fb702e5ec29a
|
|
| MD5 |
2e580796b6e3c90e2ae1822f158bdbf5
|
|
| BLAKE2b-256 |
b9b288345cbebf6156371f1af27f3d5a8816c9c5571b49673c7ff925de3374e6
|
File details
Details for the file poetry_add_requirements_txt-1.2.0-py3-none-any.whl.
File metadata
- Download URL: poetry_add_requirements_txt-1.2.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.1 Darwin/23.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f909a855f0d611ea8efa6c841fb6c3b509d5b6e01a3ae94209982c0fb8e8e264
|
|
| MD5 |
21ffe9c69546a495bb53781d28318751
|
|
| BLAKE2b-256 |
08ca20afce62de7cb14f24c2cc5026a38842655f63a6e3e81910fc53176737cd
|