Metadata-Version: 2.1
Name: req2toml
Version: 1.1.2
Summary: Convert requirements.txt to pyproject.toml
Home-page: https://github.com/benbenbang/req2toml
License: Apache-2.0
Keywords: poetry,pyproject,toml,requirements,convert
Author: Ben Chen
Author-email: benbenbang@github.com
Requires-Python: >=3.6.1,<4.0.0
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: click (==7.1.2)
Requires-Dist: pytest-cov (>=2.10.1,<3.0.0)
Project-URL: Repository, https://github.com/benbenbang/req2toml
Description-Content-Type: text/markdown

# Req2Toml

Adding the dependencies from `requirements.txt` to `pyproject.toml` and `poetry.lock` with one command 😉



## Install

```bash
$ pip install req2toml
```



## Usages

The entrypoint of the converter is `req2lock`

#### Options

- `-f` [required]  The  path to the `requirements.txt`
- `--install` [optional] By default, it will only update the lock, add this flag to install the dependencies at the same time.
- `-v`: Enable verbose mode to print out the debug logs



```shell
# Only update the poetry.lock
$ req2lock -f requirements.txt

# Install
$ req2lock -f requirements.txt --install
```



## Contributing

PR is always welcome <3

