setuptools: Projects that contain `pyproject.toml` not compliant with standards are failing on v61.
Hi, We have been using pyproject.toml file in setup.py and when we build using setup.py sdist bdist_wheel it was always working. Suddenly it started complaining today-
/pyprojecttoml.py💯 _ExperimentalProjectMetadata: Support for project metadata in pyproject.toml
is still experimental and may be removed (or change) in future releases.
[05:42:53] [Step 3/5] warnings.warn(msg, _ExperimentalProjectMetadata)
[05:42:53] [Step 3/5] ERROR:setuptools.config.pyprojecttoml:configuration error: project
must not contain {‘python_requires’} properties
ValueError: invalid pyproject.toml config: project
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 10
- Comments: 15 (7 by maintainers)
Commits related to this issue
- Dependabot and PEP 621 (#64) This adds dependabot to the repo, helping us keep our dependencies fresh. Due to bugfix creep, it also includes adding [PEP 621](https://peps.python.org/pep-0621) data to... — committed to hopsparser/hopsparser by LoicGrobol 2 years ago
- Upgrade asyncpg, because of this https://github.com/pypa/setuptools/issues/3199 — committed to dantheman39/fast-api-quickstart by dantheman39 2 years ago
- Rename zip_safe to zip-safe `zip_safe` is not a valid keyword for `tool.setuptools` table and must be `zip-safe` instead (underscore bad, hyphen good). The actual error is sloppy though and does not ... — committed to eirrgang/cookiecutter-cms by Lnaden 2 years ago
- Dependabot and PEP 621 (#64) This adds dependabot to the repo, helping us keep our dependencies fresh. Due to bugfix creep, it also includes adding [PEP 621](https://peps.python.org/pep-0621) data to... — committed to hopsparser/hopsparser by LoicGrobol 2 years ago
I had the same issue with
asyncpg
as a dependency. As a temporary fix I had to fork asyncpg’s repo and change the build-system dependency of setuptools to be <=60.10.0 as shown here: https://github.com/tapicer/asyncpg/commit/9ee0e4a04e8690d0a7fd534153b3f733de92c672, and pointed the asyncpg dependency to my repo withasyncpg = {git = "https://github.com/tapicer/asyncpg.git"}
in my pyproject.toml.Expecting setuptools’ issue to be fixed to I can switch back to the original asyncpg lib.
Hi, there same issue arises in asyncpg module. Although
requires-python
key is specified in the pyproject.toml file. ValueError: invalid pyproject.toml config:project
In the
pikepdf
project,requires-python
is used, but it still fails because[project]
doesn’t have aname
value apparently. This started yesterday.let me try