Skip to content

Fix for tox -e build_docs#3584

Closed
snbianco wants to merge 1 commit into
astropy:mainfrom
snbianco:fix-docs-build
Closed

Fix for tox -e build_docs#3584
snbianco wants to merge 1 commit into
astropy:mainfrom
snbianco:fix-docs-build

Conversation

@snbianco

Copy link
Copy Markdown
Contributor

The tox -e build_docs command has been failing for me, and I think it's because of recent updates to setuptools. These changes to pyproject.toml fixed the build for me.

@codecov

codecov Bot commented Apr 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.22%. Comparing base (a1fee2a) to head (6c5b5dc).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3584   +/-   ##
=======================================
  Coverage   73.22%   73.22%           
=======================================
  Files         226      226           
  Lines       21000    21000           
=======================================
  Hits        15378    15378           
  Misses       5622     5622           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@snbianco snbianco requested a review from bsipocz April 29, 2026 19:31
@snbianco snbianco marked this pull request as ready for review April 29, 2026 19:31
@bsipocz

bsipocz commented Apr 29, 2026

Copy link
Copy Markdown
Member

This is weird, I don't have any issues with it neither on my default 3.12 nor with python 3.14. Can you show some tracebacks (either here or on slack).

@bsipocz bsipocz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We had some dive in here and concluded not to have this PR.

Note
If you get a build error that license should be a dict/table, your build backend doesn’t yet support the new format. See the above section for more context. The now deprecated format is described in PEP 621.

@bsipocz

bsipocz commented Apr 30, 2026

Copy link
Copy Markdown
Member

OK, closing it, but thanks for the rabbit hole dive, we clearly don't cover all the build cases and versions, but based on the python packaging documentation, what we have in the toml file should be correct.

I have patched up some of the inconsistencies we run into, but haven't dived into adding further recommendations into the narrative docs.

@bsipocz bsipocz closed this Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants