What is the correct format for supplying a name to a python package in a pyproject.toml?
pyproject.toml file
[project]
name = "foobar"
version = "0.0.1"
[build-system]
requires = ["setuptools>=40.8.0", "wheel"]
build-backend = "setuptools.build_meta"
A build called using python -m build
results in the following error.
running check
warning: check: missing required meta-data: name, url
warning: check: missing meta-data: either (author and author_email) or (maintainer and maintainer_email) should be supplied
Based on this reddit post question. I had the same issue.
CodePudding user response:
It seems that you are trying to write a PEP 621-style pyproject.toml
with the setuptools build back-end.
But, as of now, setuptools does not have support for PEP 621 yet. The work is ongoing:
- https://discuss.python.org/t/help-testing-experimental-features-in-setuptools/13821
- https://github.com/pypa/setuptools/tree/experimental/support-pyproject
- https://github.com/pypa/setuptools/search?q=621&type=issues
Until PEP 621 support arrives in setuptools, one can: