Skip to content

Commit

Permalink
Add empty dependencies section to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
adamltyson committed Feb 20, 2024
1 parent 32e0695 commit 43ff2b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,10 @@ from . import *
```

### Add dependencies
To ensure any dependencies are installed at the same time as installing your package, add them to your `pyproject.toml` file. E.g. to add `numpy` and `pandas` as dependencies, add the following line to the `pyproject.toml` file, under the `[project]` heading:
To ensure any dependencies are installed at the same time as installing
your package, add them to your `pyproject.toml` file. E.g. to add `numpy`
and `pandas` as dependencies, add them to the `dependencies = []` list under
the `[project]` heading:

```toml
dependencies = ["numpy", "pandas"]
Expand Down
2 changes: 2 additions & 0 deletions {{cookiecutter.package_name}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ readme = "README.md"
requires-python = ">=3.9.0"
dynamic = ["version"]

dependencies = []

{% if cookiecutter.license == "MIT" -%}
license = {text = "{{cookiecutter.license}}"}
{%- elif cookiecutter.license == "BSD-3" -%}
Expand Down

0 comments on commit 43ff2b7

Please sign in to comment.