Skip to content
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

fixes: python -m build fails #14

Merged
merged 3 commits into from
Jul 1, 2024
Merged

Conversation

arenevier
Copy link

python -m build fails with:

running check
error: The docutils package is needed.

since check.restructuredtext is set to 1 in setup.cfg, setuptools with require docutils. I think this is needed to parse the structured text README.
That dependency needs to be specify in pyproject.toml file. It is recommended practice to have a pyproject.toml file anyway. https://packaging.python.org/en/latest/guides/modernize-setup-py-project/#should-pyproject-toml-be-added

python -m build fails with:
> running check
> error: The docutils package is needed.

since check.restructuredtext is set to 1 in setup.cfg, setuptools with
require docutils. I think this is needed to parse the structured text
README.
That dependency needs to be specify in pyproject.toml file. It is recommended practice to have a pyproject.toml file anyway.
https://packaging.python.org/en/latest/guides/modernize-setup-py-project/#should-pyproject-toml-be-added
@ggrossetie
Copy link
Member

ggrossetie commented Jun 30, 2024

@arenevier does it make sense to add a CI with this command python -m build? I want to make sure that we don't break it.

Build a source distribution and a binary distribution when running tox.
This makes sure we don't break those
@arenevier
Copy link
Author

@ggrossetie : good idea. Instead of adding a new CI step, I added two new targets to tox. One to build the source distribution (the one currently failing). And one to build binary distribution (which is not currently broken).

@ggrossetie
Copy link
Member

Just to be sure, the two new targets do not run on the CI? If not, I think we should run them to make sure that a future pull request won't break them.

@ggrossetie
Copy link
Member

Also, I just noticed that we don't have a tox environment for Pillow 10.x

@arenevier
Copy link
Author

Also, I just noticed that we don't have a tox environment for Pillow 10.x

I can make a new PR to add it. And maybe python 3.12. I will wait for this one to be merged first, otherwise there will be merge conflicts.

@arenevier
Copy link
Author

Just to be sure, the two new targets do not run on the CI? If not, I think we should run them to make sure that a future pull request won't break them.

Fixed. They run now with the latest commit of the branch.

@ggrossetie
Copy link
Member

Awesome, thanks 🎉

@ggrossetie ggrossetie merged commit 540be67 into yuzutech:master Jul 1, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants