Skip to content

Address minor issues causing CI to fail#1615

Merged
wshanks merged 6 commits intoqiskit-community:mainfrom
wshanks:tox-sdist-wheel-pkg-fix
Feb 18, 2026
Merged

Address minor issues causing CI to fail#1615
wshanks merged 6 commits intoqiskit-community:mainfrom
wshanks:tox-sdist-wheel-pkg-fix

Conversation

@wshanks
Copy link
Copy Markdown
Collaborator

@wshanks wshanks commented Feb 16, 2026

This change started as a fix for a change in behavior in tox but evolved into
a set of three unrelated small fixes that are all needed to get the CI to pass
again:

tox 4.36.0 started enforcing the constraint that a `package_env`
environemnt only installs what is listed in `build-system.requires`. We
use `pypa/build` to build the wheel from the sdist instead of building
the wheel directly. `pypa/build` is used as an external command so it
was not listed in `build-system/requires` and was just listed as an
extra tox environemnt dependency. Now listing an extra dependency is not
allowed so we install `pypa/build` in the packaging environment's
commands until a cleaner solution is found.

See tox-dev/tox#3687 (comment)
@wshanks wshanks force-pushed the tox-sdist-wheel-pkg-fix branch from acc7d86 to 660c64b Compare February 16, 2026 15:12
gaborbernat added a commit to tox-dev/tox that referenced this pull request Feb 17, 2026
PR #3687 (fix for #3412) added a hard Fail in
Pep517VenvPackager._setup_env() that rejects any deps on PEP-517
packaging environments. This broke two downstream consumers:

tox-uv — Tests for editable-legacy, workspace, and no_pyproject
scenarios set deps = wheel on .pkg because uv doesn't seed wheel into
venvs by default (unlike virtualenv). The editable-legacy flow needs
wheel importable in the packaging venv for setup.py develop. CI:
https://github.com/tox-dev/tox-uv/actions/runs/22071221669

Uses package = external with deps = build on .pkg to run python -m build
for sdist→wheel workflow. Discussion:
#3491 (reply in thread)
Fix PR: qiskit-community/qiskit-experiments#1615


Only raise the error when call_require_hooks is a subset of {"sdist",
"wheel", "editable"} (standard PEP-517 types). Allow deps when
editable-legacy or external is involved

Fixes: #3731

<!-- Thank you for your contribution!

Please, make sure you address all the checklists (for details on how see
[development
documentation](http://tox.readthedocs.org/en/latest/development.html#development))!
-->

- [x] ran the linter to address style issues (`tox -e fix`)
- [x] wrote descriptive pull request text
- [x] ensured there are test(s) validating the fix
- [x] added news fragment in `docs/changelog` folder
- [ ] updated/extended the documentation

---------

Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@dcmckayibm dcmckayibm added this pull request to the merge queue Feb 18, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Feb 18, 2026
@dcmckayibm dcmckayibm added this pull request to the merge queue Feb 18, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Feb 18, 2026
@wshanks wshanks added this pull request to the merge queue Feb 18, 2026
@wshanks wshanks removed this pull request from the merge queue due to a manual request Feb 18, 2026
@wshanks wshanks changed the title Fix wheel building in tox>=4.36 Address minor issues causing CI to fail Feb 18, 2026
The new fix allows deps only for the external package flow, so we can
reuse the same package environment for the external and default flows
now.

Also, adjust tox version bounds so that they allow a version compatible
with Python 3.9.
@wshanks wshanks force-pushed the tox-sdist-wheel-pkg-fix branch from 4ac8818 to 7716c95 Compare February 18, 2026 16:34
@wshanks wshanks enabled auto-merge February 18, 2026 16:34
@wshanks wshanks added this pull request to the merge queue Feb 18, 2026
Merged via the queue into qiskit-community:main with commit 0b38c31 Feb 18, 2026
12 of 19 checks passed
@wshanks wshanks deleted the tox-sdist-wheel-pkg-fix branch February 18, 2026 17:10
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