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 add
error. - Ignore dependency version requirements specified in requirements.txt file(s).
- Ignore errors when installing individual dependencies.
- Pass arbitrary arguments to
poetry add
after--
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
Close
Hashes for poetry_add_requirements_txt-1.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62122e6187ba53382aba65031a735b48c94c83cceca614d90955fb702e5ec29a |
|
MD5 | 2e580796b6e3c90e2ae1822f158bdbf5 |
|
BLAKE2b-256 | b9b288345cbebf6156371f1af27f3d5a8816c9c5571b49673c7ff925de3374e6 |
Close
Hashes for poetry_add_requirements_txt-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f909a855f0d611ea8efa6c841fb6c3b509d5b6e01a3ae94209982c0fb8e8e264 |
|
MD5 | 21ffe9c69546a495bb53781d28318751 |
|
BLAKE2b-256 | 08ca20afce62de7cb14f24c2cc5026a38842655f63a6e3e81910fc53176737cd |