Skip to content

Commit cd808df

Browse files
joerickhenryiii
andauthored
Apply suggestions from code review
Co-authored-by: Henry Schreiner <[email protected]>
1 parent 901f07b commit cd808df

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

docs/options.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -417,24 +417,27 @@ Default: reads your package's Python compatibility from `pyproject.toml`
417417
the package is compatible with all versions of Python that it can build.
418418

419419
!!! note
420-
Rather than using this option, it's recommended you set this value
420+
Rather than using this environment variable, it's recommended you set this value
421421
statically in a way that your build backend can use it, too. This ensures
422-
that your package's metadata is correct when published on PyPI.
422+
that your package's metadata is correct when published on PyPI. This
423+
cibuildwheel-specific option is provided as an override, and therefore is only
424+
available in environment variable form.
423425

424426
- If you have a `pyproject.toml` containing a `[project]` table, you can
425427
specify `requires-python` there.
426428

427429
```toml
428430
[project]
431+
...
429432
requires-python = ">=3.6"
430433
```
431434

432-
Note that build backend support for the `[project]` table is still patchy, and
433-
adding `[project]` to `pyproject.toml` can change the behaviour of your build
434-
(e.g. setuptools may ignore `install_requires` specified via `setup.py` or
435-
`setup.cfg`). Make sure to double-check the build after adding.
435+
Note that not all build backends fully support using a `[project]` table yet;
436+
specifically setuptools just added experimental support in version 61.
437+
Adding `[project]` to `pyproject.toml` requires all the other supported
438+
values to be specified there, or to be listed in `dynamic`.
436439

437-
- If you're using setuptools, [you can set this value in `setup.cfg` or `setup.py`](https://setuptools.pypa.io/en/latest/userguide/dependency_management.html#python-requirement)
440+
- If you're using setuptools, [you can set this value in `setup.cfg` (preferred) or `setup.py`](https://setuptools.pypa.io/en/latest/userguide/dependency_management.html#python-requirement)
438441
and cibuildwheel will read it from there.
439442

440443
#### Examples

0 commit comments

Comments
 (0)