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

Inline dependency-versions syntax #2122

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions docs/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -1353,9 +1353,10 @@ Options can be supplied after the name.


### `CIBW_DEPENDENCY_VERSIONS` {: #dependency-versions}
> Specify how cibuildwheel controls the versions of the tools it uses

Options: `pinned` `latest` `<your constraints file>`
> Control the versions of the tools cibuildwheel uses

Options: `pinned` `latest` `inline: SPECIFIER...` `<your constraints file>`

Default: `pinned`

Expand All @@ -1370,7 +1371,8 @@ fixes that can't wait for a new cibuildwheel release.

To control the versions of dependencies yourself, you can supply a [pip
constraints](https://pip.pypa.io/en/stable/user_guide/#constraints-files) file
here and it will be used instead.
here and it will be used instead. Alternatively, you can list constraint
specifiers inline with the `inline: SPECIFIER...` syntax.

!!! note
If you need different dependencies for each python version, provide them
Expand Down Expand Up @@ -1401,6 +1403,12 @@ Platform-specific environment variables are also available:<br/>

# Use your own pip constraints file
CIBW_DEPENDENCY_VERSIONS: ./constraints.txt

# Specify requirements inline
CIBW_DEPENDENCY_VERSIONS: "inline: auditwheel==6.2.0"

# Choose a specific pyodide-build version
CIBW_DEPENDENCY_VERSIONS_PYODIDE: "inline: pyodide-build==0.29.1"
```

!!! tab examples "pyproject.toml"
Expand All @@ -1415,6 +1423,13 @@ Platform-specific environment variables are also available:<br/>

# Use your own pip constraints file
dependency-versions = "./constraints.txt"

# Specify requirements inline
dependency-versions = { inline = ["auditwheel==6.2.0"] }

[tool.cibuildwheel.pyodide]
# Choose a specific pyodide-build version
dependency-versions = { inline = ["pyodide-build==0.29.1"] }
```


Expand Down
Loading