Skip to content

Conversation

@dbaty
Copy link
Member

@dbaty dbaty commented Jan 4, 2026

We can build the C extension on ReadTheDocs, so we can get rid of the
optional argument in Extension() in setup.py. The rest of the
build config can be moved to pyproject.toml.

A warning appears when building:

.../setuptools/config/pyprojecttoml.py:72: _ExperimentalConfiguration: `[tool.setuptools.ext-modules]` in `pyproject.toml` is still *experimental* and likely to change in future releases.

... but it's the only difference. So let's be adventurous and put
everything in pyproject.toml! :)

@dbaty dbaty marked this pull request as draft January 4, 2026 16:45
@dbaty dbaty force-pushed the dbaty/simplify_setup_py branch 4 times, most recently from 3a47369 to 908c07f Compare January 4, 2026 21:24
@dbaty dbaty marked this pull request as ready for review January 4, 2026 21:25
We can build the C extension on ReadTheDocs, so we can get rid of the
`optional` argument in `Extension()` in `setup.py`. The rest of the
build config can be moved to `pyproject.toml`.

A warning appears when building:

    .../setuptools/config/pyprojecttoml.py:72: _ExperimentalConfiguration: `[tool.setuptools.ext-modules]` in `pyproject.toml` is still *experimental* and likely to change in future releases.

... but it's the only difference. So let's be adventurous and put
everything in `pyproject.toml`! :)
@dbaty dbaty force-pushed the dbaty/simplify_setup_py branch from 908c07f to 76bd6c5 Compare January 4, 2026 21:25
@dbaty dbaty merged commit 76bd6c5 into master Jan 4, 2026
6 checks passed
@dbaty dbaty deleted the dbaty/simplify_setup_py branch January 4, 2026 21:28
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