Akaisteph7
Akaisteph7

Reputation: 6554

How do I get dependabot to not look for `[tool.poetry]`?

I'm getting the following error from dependabot after a recent change.

Dependabot can't parse your pyproject.toml
Dependabot failed to update your dependencies because there was an error parsing the pyproject.toml found at /pyproject.toml.

Dependabot encountered the following error:

/pyproject.toml is missing the following sections:
  * tool.poetry.name
  * tool.poetry.version
  * tool.poetry.description
  * tool.poetry.authors

Dependabot had been paused before but I'm assuming this error is from following the recent poetry recommendations to use [project] instead.

What my pyproject.toml looks like now is:

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[project]
name = "repo"
version = "1"
description = ""
authors = []
maintainers = []
requires-python = ">=3.12,<3.13"
dependencies = []

[project.urls]
Homepage = "https://github.com/Org/repo"

[tool.poetry.dependencies]
arrow = "*"
attrdict3 = "*"
...

Is there a way to get dependabot to run with my current setup?

Upvotes: 2

Views: 145

Answers (1)

nathanmjpark
nathanmjpark

Reputation: 31

Looks like this is being worked on here: https://github.com/dependabot/dependabot-core/issues/11237

Upvotes: 1

Related Questions