Convert requirements.txt to pyproject.toml
Project description
Req2Toml
Adding the dependencies from requirements.txt
to pyproject.toml
and poetry.lock
with one command 😉
Install
$ pip install req2toml
Usages
The entrypoint of the converter is req2lock
Options
-f
[required] The path to therequirements.txt
--install
[optional] By default, it will only update the lock, add this flag to install the dependencies at the same time.--dev
[optional] By default, the flag is disable, pass--dev
to add packages to dev section.-v
: Enable verbose mode to print out the debug logs
# Only update the poetry.lock
$ req2lock -f requirements.txt
# Install
$ req2lock -f requirements.txt --install
# To dev
$ req2lock -f requirements_test.txt --install --dev
Contributing
PR is always welcome <3
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_import_plugin-1.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 389f6db72c544b2f3a9410d826e07a46844c6bc97deaf2934bb8e224ec8f6d71 |
|
MD5 | 9a0b6638af4728d49a4d21daddd8f5a5 |
|
BLAKE2b-256 | 1b91a34bcd08af1e6b7bf85eca4439af91a663d9644ee6a7e1ff429b6062c38d |
Close
Hashes for poetry_import_plugin-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af997576eaf94e3d26e7788875c534b45180cd6fcb97344411537ff643dd43a1 |
|
MD5 | c378333d5a923bce0b689d0851ff98be |
|
BLAKE2b-256 | f45d6e27282e94e75239cbcebbeacf6edf62e0873a7e3f60d050f0af3dd3521e |