You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/options.md
+10-7Lines changed: 10 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -417,24 +417,27 @@ Default: reads your package's Python compatibility from `pyproject.toml`
417
417
the package is compatible with all versions of Python that it can build.
418
418
419
419
!!! 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
421
421
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.
423
425
424
426
- If you have a `pyproject.toml` containing a `[project]` table, you can
425
427
specify `requires-python` there.
426
428
427
429
```toml
428
430
[project]
431
+
...
429
432
requires-python = ">=3.6"
430
433
```
431
434
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`.
436
439
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)
0 commit comments