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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
req2toml-1.2.0.tar.gz
(8.7 kB
view details)
Built Distribution
req2toml-1.2.0-py3-none-any.whl
(10.2 kB
view details)
File details
Details for the file req2toml-1.2.0.tar.gz
.
File metadata
- Download URL: req2toml-1.2.0.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/57.0.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f32f2853fce236a3c92bcc80e010f4dade05dd0a9a4cb81b9e4712cf855c39cf |
|
MD5 | f3f78510b502454f8fe4cdf5c005e7d2 |
|
BLAKE2b-256 | e04e45753eddf751be715fdf716de9977619d809c0cb4c06774ddfc610536230 |
File details
Details for the file req2toml-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: req2toml-1.2.0-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/57.0.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0b66b7841d3c9ed8902ff3415f90c3010e26e7126b9d12efcb4460218873cb3 |
|
MD5 | 73439b121c4a543db8b4f1028acb74df |
|
BLAKE2b-256 | 9160a6e240af80290e0f1d8ae8a43fc0f2ad5a38614259ece194c1b0583a44c3 |