admin管理员组文章数量:1399006
After creating the project.toml for my project and building it with pip install -e packgedir
, it is not being recognized by Pylance in VSCode. The problem do not happen for a standard installation (pip install packgedir
), but I want to use the editable mode. Do you know what's wrong?
The Pylance warning: warning
The basic structure of my project:
packgedir/
├── LICENSE
├── pyproject.toml
├── README.md
├── VERSION
├── packge/
├── __init__.py
└── file.py
pyproject.toml:
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools >= 75"]
[project]
name = "packge"
dynamic = ["version"]
description = "Test Package"
readme = "README.md"
authors = [
{name = "author_name", email = "[email protected]"}
]
requires-python = ">=3.8"
dependencies = [
"numpy >= 1.2.2",
]
license = {file = "LICENSE"}
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
]
[tool.setuptools.dynamic]
version = {file = "VERSION"}
I also tried to use a minimal, empty, setuptools.setup() into a setup.py together with the pyproject.toml and didn't solve.
版权声明:本文标题:python - Pylance can't recognize installed package built in editable mode using pyproject.toml - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744178001a2594092.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论