Code: Select all
dashboard/
├── config/
│ ├── __init__.py
│ └── connection_config.py
│ └── env/
├── packages/
│ └── src/
│ └── (other packages/modules with __init__.py)
├── services/
│ └── data_ingestion/
│ └── ingest_data.py
├── pyproject.toml
└── .venv/
< /code>
und mein pyproject.toml: < /p>
[project]
name = "dashboard"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"loguru>=0.7.3",
"mysql-connector>=2.2.9",
"pandas>=2.2.3",
"paramiko>=3.5.1",
"polars>=1.23.0",
"pydantic-settings>=2.8.0",
"streamlit>=1.41.1",
]
[project.optional-dependencies]
test = ["pytest>=8.3.5"]
[tool.setuptools.packages.find]
where = ["packages/src", "config"] # Search in both directories
include = ["*"] # Include all packages found
exclude = ["tests*"] # Exclude test directories
[tool.pytest.ini_options]
pythonpath = "."
ModuleNotFoundError: No module named 'config'
< /code>
Ich vermute, dass ich PYProject.toml falsch konfiguriere oder falsch versteht, wie UV- und Setuptools mit editablen Installationen umgehen. Dinge, die ich ausprobiert habe:
uv pip install -e. Gibt es Best Practices für die Strukturierung und Ausführung eines solchen Projekts mit UV, ich möchte das wirklich besser verstehen? Jede Hilfe wird geschätzt!