-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trouble with the packaging tutorial #604
Comments
Can you try validating your project with something like |
Setting requires = ["setuptools<61.0"] seems to resolve the issue. |
Please open an issue in the setuptools repository if that is the case. If you can also share your |
Please note that setting I did a quick test here and the latest version of setuptools does work normally with the I suspect that the logs providaded by setuptools and build also contain a bit more information about what is going wrong... If you scroll before the traceback you are probably going to see some helpful messages. For example, if you accidentally change
|
Based on the following discussions: - pypa/packaging.python.org#1031 (comment) - pypa/packaging-problems#604 it seems that people are having a hard time finding information about validation error due to the long traceback and debug info. The idea behind this change is to make the most relevant information to fix the error easier to spot.
Hi @eranbet, the upcoming version 63.4.2 of setuptools, should also print a summary of the problem with This should make it easier to spot during debugging. I think I will close this issue for now since you seem to have moved on and did not provide any further information. Please feel free to comment in this issue with extra information if you would like the investigation to proceed (I am more than happy to reopen it). |
having same issue, here is my .toml file contents. [build-system] |
changing to setuptools<61.0 fixes issue for me as well. |
Setting I recommend instead having a look on the traceback and trying to fix the errors described there. |
As a reminder from above, setting setuptools<61 causes the project table to be completely ignored. So it doesn't "fix" it, it just builds a UNKNOWN-0.0.0 package with no configuration. Pasting your traceback (surrounded by triple tick marks for nice GitHub formatting!) would be helpful. |
OS version
Ubuntu 20.04
Python version
3.8.10
Pip version
21.3.1
Guide link
https://packaging.python.org/tutorials/packaging-projects
Problem description
Using setuptools as build-system, running python3 -m build throws an error.
Error message
The text was updated successfully, but these errors were encountered: