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
chattr_req2toml-1.1.1.tar.gz
(8.6 kB
view hashes)
Built Distribution
Close
Hashes for chattr_req2toml-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6821ed99d85040f7629f8660c50bf854d41708a92fb0fbb0bb9903e12089de7a |
|
MD5 | 36d13e787197de8bf5a605cc9271b2fa |
|
BLAKE2b-256 | 39a2bf9bee56ae82508d9bd54fa93269694a5efb7e9e3ace308a04e68be91a4e |