From fa1a7f83ed374800d790d54563feb14abd6d3283 Mon Sep 17 00:00:00 2001 From: Dane Hillard Date: Thu, 15 Jun 2023 19:37:03 -0400 Subject: [PATCH] Speed up unit tests On my machine, running tests against just three of the environments, this change speeds up the total run time of the tests from about 8.8s (across three runs) to 3.0s (across three runs). --- CHANGELOG.md | 4 ++++ setup.cfg | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3db9363..5358d06 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [7.1.0-post.2] - 2023-06-14 +### Changed +- Use `package` and `wheel_build_env` to speed up tests as this is a pure Python package. See the [tox docs](https://tox.wiki/en/latest/upgrading.html#universal-wheels) for more detail. + ## [7.1.0-post.1] - 2023-04-24 ### Changed - Use PyPI trusted publishing instead of manual token authentication diff --git a/setup.cfg b/setup.cfg index 180877c..e7157e2 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = apiron -version = 7.1.0-post.1 +version = 7.1.0-post.2 description = apiron helps you cook a tasty client for RESTful APIs. Just don't wash it with SOAP. author = Ithaka Harbors, Inc. author_email = opensource@ithaka.org @@ -87,6 +87,8 @@ envlist = py37,py38,py39,py310,py311 isolated_build = True [testenv] +package = wheel +wheel_build_env = .pkg deps = pytest>=6.0.0,<7 pytest-cov>=2.8.1,<3