Skip to content

Commit b6540f8

Browse files
committed
Build a shared wheel once in the test suite
This cuts the setup times for tox environments roughly in half, and reduces `tox p` invocations from ~18s to ~14s.
1 parent c0eae05 commit b6540f8

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Fixed
1717
- Improve typing/logic for `options` in decode, decode_complete by @pachewise in `#1045 <https://github.com/jpadilla/pyjwt/pull/1045>`__
1818
- Declare float supported type for lifespan and timeout by @nikitagashkov in `#1068 <https://github.com/jpadilla/pyjwt/pull/1068>`__
1919
- Fix ``SyntaxWarning``\s/``DeprecationWarning``\s caused by invalid escape sequences by @kurtmckee in `#1103 <https://github.com/jpadilla/pyjwt/pull/1103>`__
20+
- Development: Build a shared wheel once to speed up test suite setup times by @kurtmckee in `#1114 <https://github.com/jpadilla/pyjwt/pull/1114>`__
2021

2122
Added
2223
~~~~~

tox.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ isolated_build = True
3434

3535

3636
[testenv]
37+
# Build a shared wheel once, rather than building a .tar.gz file
38+
# and forcing each individual tox environment to convert it to a wheel.
39+
package = wheel
40+
wheel_build_env = build_wheel
3741
# Prevent random setuptools/pip breakages like
3842
# https://github.com/pypa/setuptools/issues/1042 from breaking our builds.
3943
setenv =

0 commit comments

Comments
 (0)