Skip to content

Commit

Permalink
Build a wheel once
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtmckee authored and Ned Batchelder committed Jul 21, 2023
1 parent ae71faa commit 7727ac5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions changelog.d/20230205_171012_kurtmckee_reduce_ci_usage.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Changed
.......

- Configure tox to build a wheel once.

This decreases CI total usage from ~20 minutes to ~15 minutes.
It decreases CI duration from ~10 minutes to ~7 minutes.

Tox's default behavior is to build a ``.tar.gz`` file.
However, pip will convert it to a ``.whl`` file prior to installation.
This results in a measurable decrease in performance on slow CI runners like Windows.
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ labels =
ci-tests = py{37,38,39,310,311,py3}, py{37,311}-no_extras

[testenv]
package = wheel
wheel_build_env = .pkg
deps =
-r{toxinidir}/requirements/test.txt
extras =
Expand Down

0 comments on commit 7727ac5

Please sign in to comment.