question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Projects that contain `pyproject.toml` not compliant with standards are failing on v61.

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:9
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
tapicercommented, Mar 25, 2022

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

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 with asyncpg = {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.

2reactions
sabuhishcommented, Mar 25, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

pyproject.toml won't find project name with setuptools python
A build called using python -m build results in the following error. running check warning: check: missing required meta-data: name, url warning ...
Read more >
History - setuptools 65.6.3.post20221216 documentation
Projects that currently don't specify both packages and py_modules in their configuration and contain extra folders or Python files (not meant for distribution) ......
Read more >
PEP 621 – Storing project metadata in pyproject.toml
This PEP does not attempt to standardize all possible metadata required by a build back-end, only the metadata covered by the core metadata...
Read more >
Frequently Asked Questions - PyScaffold 4.3.1 documentation
That means if someone clones your repository and tries to build it, the dependencies in pyproject.toml will be automatically pulled.
Read more >
Python 3.11 Preview: TOML and tomllib
To resolve the situation, PEP 518 introduced the pyproject.toml configuration file, which specifies Python project build dependencies. PEP 518 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found