Metadata-Version: 2.1
Name: dep2req
Version: 1.0.5
Summary: Create a requirements.txt from dependencies in a pyproject.toml
Author-Email: Greg Smethells <gsmethells@gmail.com>
License: GPL-2.0+
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)
Classifier: Operating System :: OS Independent
Project-URL: Homepage, https://gitlab.com/oldmission/dep2req
Project-URL: Bug tracker, https://gitlab.com/oldmission/dep2req/-/issues
Requires-Python: >=3.7
Requires-Dist: toml
Description-Content-Type: text/markdown

# dep2req

## Overview

With `dep2req` you can extract dependencies from `pyproject.toml` files to `requirements.txt` in seconds. No more waiting for `pip-compile` to finish. 

## Installation

```
pip install dep2req
```

## Usage

Simply run in any directory containing a `pyproject.toml` file: 

```
dep2req
```` 

and a `requirements.txt` will be created in the current working directory.

```
usage: dep2req [-h] [-f FILENAME] [-a] [-s OPTIONAL_SECTIONS] [-o OUTPUT] [-v]

optional arguments:
  -h, --help            show this help message and exit
  -f FILENAME, --filename FILENAME
                        path to the input pyproject.toml file
  -a, --add-optional    whether to include "optional-dependencies" [defaults
                        to including all sections]
  -s OPTIONAL_SECTIONS, --optional-sections OPTIONAL_SECTIONS
                        name(s) of "optional-dependencies" section(s) to
                        include, comma-delimited
  -o OUTPUT, --output OUTPUT
                        path to the output requirements.txt file
  -v, --verbose         print details about what the script is doing  
```

