Skip to content

Commit 293d95a

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 d28dc35 commit 293d95a

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/issues/1114>`__
2021

2122
Added
2223
~~~~~

tox.ini

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

3636

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

0 commit comments

Comments
 (0)