Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check the pyproject.toml file. Find the pyproject.toml file in the project directory and check the file content, especially the group line. According to the modified error message, group is not a valid attribute and should be deleted or #206

Open
sdohuajia opened this issue Feb 14, 2025 · 2 comments

Comments

@sdohuajia
Copy link

No description provided.

@sdohuajia
Copy link
Author

sdohuajia commented Feb 14, 2025

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

[tool.poetry]
name = "node"
version = "0.1.0"
description = ""
authors = ["moarshy [email protected]"]
readme = "README.md"
[[tool.poetry.packages]]
include = "node"
from = "."

[tool.poetry.dependencies]
python = ">=3.11,<3.13"
aiofiles = "^23.2.1"
pydantic = "^2.5.3"
uvicorn = "^0.25.0"
fastapi = "0.112.2"
python-multipart = "^0.0.6"
python-dotenv = "^1.0.0"
httpx = "^0.27.0"
backoff = "^2.2.1"
docker = "^7.0.0"
celery = "^5.4.0"
redis = "^5.0.1"
surrealdb = "^0.3.2"
pyjwt = "^2.8.0"
psutil = "^5.9.7"
pytz = "^2024.1"
gitpython = "^3.1.40"
poetry-core = "^1.8.1"
poetry = "^1.7.1"
setuptools = "^69.0.3"
pyyaml = "^6.0.1"
protobuf = "^5.26.1"
ecdsa = "^0.19.0"
ipfshttpclient = "^0.7.0"
grpcio = "^1.66.2"
grpcio-tools = "^1.66.2"
charset-normalizer = "3.3.2"
sqlalchemy = "^2.0.36"
alembic = "^1.13.3"
aiohttp = "^3.11.9"
psycopg2 = "^2.9.10"

正确的开发依赖部分是 dev-dependencies

[tool.poetry.dev-dependencies]
ruff = "^0.1.11"
ipykernel = "^6.29.2"

@richardblythman
Copy link
Contributor

What version of poetry are you using @@sdohuajia?

Here is what Claude says:

However, there seems to be some confusion about the correct syntax. Let me clarify:
The modern Poetry syntax (Poetry 1.2+) uses [tool.poetry.group.dev.dependencies] which is actually correct in your current file.
The older syntax used [tool.poetry.dev-dependencies]
Your current syntax is actually the correct modern way to specify dev dependencies in Poetry. The issue report suggesting to use [tool.poetry.dev-dependencies] is referring to the older syntax, which is deprecated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants