# PEP 631 - Dependency specification in pyproject.toml based on PEP 508

**URL:** <https://discuss.python.org/t/pep-631-dependency-specification-in-pyproject-toml-based-on-pep-508/5018>\
**Category:** Packaging\
**Created:** [August 20, 2020, 7:01pm UTC](https://discuss.python.org/t/pep-631-dependency-specification-in-pyproject-toml-based-on-pep-508/5018 "2020-08-20T19:01:57Z")\
**Posts on this page:** 1\
**Showing post:** 31

<div class="post-metadata">

**Author:** ![pradyunsg](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/pradyunsg/32/206_2.png) [@pradyunsg](https://discuss.python.org/u/pradyunsg)\
**Post date:** [September 18, 2020, 8:24am UTC](https://discuss.python.org/t/pep-631-dependency-specification-in-pyproject-toml-based-on-pep-508/5018/31 "2020-09-18T08:24:07Z")

</div>

> [@How to specify dependencies: PEP 508 strings or a table in TOML?](https://discuss.python.org/t/how-to-specify-dependencies-pep-508-strings-or-a-table-in-toml/5243/5):
>
> > [@How to specify dependencies: PEP 508 strings or a table in TOML?](https://discuss.python.org/t/how-to-specify-dependencies-pep-508-strings-or-a-table-in-toml/5243/3):
> >
> > it would also be cool if we allowed multiline literal strings in addition to arrays to get rid of quoting and commas
> 
> That would be very cool, though I have no real idea what the syntactic complications of that look like in TOML.

Honestly, TOML is pretty-Python like on most fronts:

```auto
dependencies = """
a == 1.0.0
b == 2.0.0
"""

```

We can use the `textwrap.dedent` / `line.strip()` logic, allowing all the lines to be indented.

---

_[View the full topic](https://discuss.python.org/t/pep-631-dependency-specification-in-pyproject-toml-based-on-pep-508/5018)._
