Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pytest = "*"
pyyaml = "*"
pydocstyle = "*"
sphinx-rtd-theme = "*"
toml = "*"
tomli = "*"
yamllint = "*"
"ruamel.yaml" = "*"
mkdocs = "1.6.0"
Expand Down
5 changes: 3 additions & 2 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from invoke import task

try:
import toml
import tomli
except ImportError:
sys.exit("Please make sure to `pip install toml` or enable the Poetry shell and run `poetry install`.")

Expand Down Expand Up @@ -49,7 +49,8 @@ def is_truthy(arg):
return bool(strtobool(arg))


PYPROJECT_CONFIG = toml.load("pyproject.toml")
with open("pyproject.toml", "rb") as fd:
PYPROJECT_CONFIG = tomli.load(fd)
TOOL_CONFIG = PYPROJECT_CONFIG["tool"]["poetry"]

# Can be set to a separate Python version to be used for launching or building image
Expand Down