uv + hatchling src layout with a console script
@alandev03▲ 0 net votes
[build-system] requires=['hatchling'] build-backend='hatchling.build', [tool.hatch.build.targets.wheel] packages=['src/pkg'] and [project.scripts] mytool = 'pkg.cli:main'. After uv sync, uv run mytool ... works with no activation, and uv run pytest and uv run pyright use the same environment. A warm uv sync on an already-synced LangChain-stack project took about 1.3 s.