uv: “warning: pyproject.toml does not contain `project` table”, though there is a [project] section

Since uv 0.2.5 up until the current version 0.2.24 I get the following warning every time I let uv resolve dependencies:

$ uv pip compile -v -U ../../pyproject.toml --extra=dev -o dev-requirements.txt
warning: pyproject.toml does not contain `project` table: `/home/jens/develop`
DEBUG No workspace root found, using project root
DEBUG Starting interpreter discovery for any Python
DEBUG Looking for exact match for request any Python
DEBUG Searching for Python interpreter in all sources
DEBUG Found CPython 3.11.9 at `/home/jens/.virtualenvs/djangocms3.11/bin/python3` (active virtual environment)
DEBUG Using Python 3.11.9 interpreter at /home/jens/.virtualenvs/djangocms3.11/bin/python3 for builds
DEBUG Using registry request timeout of 30s
DEBUG Solving with target Python version 3.11.9
DEBUG Adding direct dependency: django*
[…]

There definitely is a [project] section in my pyproject.toml. My project root is in /home/jens/develop/djangocms/, pyproject.toml. is in that directory. The django and requirements files are in /home/jens/develop/djangocms/src/django_cms. The warning also shows when I execute uv in the project root directory. It’s strange that the warning refers to the directory one level above the project root: /home/jens/develop.

My system is a current Manjaro Gnome, in my virtualenv I use Python 3.11.9 (for compatibility with the current Debian stable)…

Apart from the warning everything works fine.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (13 by maintainers)

Commits related to this issue

Most upvoted comments

Umm, do you have a pyproject.toml in a directory above your project that’s missing a project table?