# Development Dependencies In pyproject.toml

**URL:** <https://discuss.python.org/t/development-dependencies-in-pyproject-toml/26149>\
**Category:** Packaging\
**Created:** [April 24, 2023, 12:19pm UTC](https://discuss.python.org/t/development-dependencies-in-pyproject-toml/26149 "2023-04-24T12:19:05Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Zomatree](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/zomatree/32/11722_2.png) [@Zomatree](https://discuss.python.org/u/Zomatree)\
**Post date:** [April 24, 2023, 1:31pm UTC](https://discuss.python.org/t/development-dependencies-in-pyproject-toml/26149/7 "2023-04-24T13:31:05Z")

</div>

It could be made to be either a list of dependencies or a mapping like how `optional-dependencies` accepts, so either of these could be accepted:

```toml
[project]
dev-dependencies = [
    "foo",
    "bar"
]

```

```toml
[project.dev-dependencies]
docs = ["foo", "bar"]
tests = ["bar", "baz"]

```

Supporting both I feel will be the best solution to allow both simple and advance uses of dev dependencies.

---

_[View the full topic](https://discuss.python.org/t/development-dependencies-in-pyproject-toml/26149)._
