Skip to content

Use python -m build to create wheels for tox and only do it once per tox invocation#231

Merged
fohrloop merged 1 commit into
devfrom
improve-tox-and-build
Mar 31, 2024
Merged

Use python -m build to create wheels for tox and only do it once per tox invocation#231
fohrloop merged 1 commit into
devfrom
improve-tox-and-build

Conversation

@fohrloop
Copy link
Copy Markdown
Member

@fohrloop fohrloop commented Mar 30, 2024

Previously: when running tox, it created wheels directly from the source tree and installed

Now: When running tox, always run against a wheel which is created from sdist created from the source tree (using python -m build). This way (1) also the sdist is tested and (2) the same exact wheel files which are uploaded to PyPI will be tested in the unit tests.

In addition, start using the .pkg_external tox environment for building the wheel -- with a small adjustment: Always only build the wheel once (makes the tests run faster).

Previously: when running tox, it created wheels directly from the
 source tree and installed

Now: When running tox, always run against a wheel which is created
 from sdist created from the source tree (using python -m build). This
 way (1) also the sdist is tested and (2) the same exact wheel files
 which are uploaded to PyPI will be tested in the unit tests.

In addition, start using the .pkg_external tox environment for building
the wheel -- with a small adjustment: Always only build the wheel once
(makes the tests run faster).
@fohrloop fohrloop force-pushed the improve-tox-and-build branch from 9b6ca2f to 2714805 Compare March 31, 2024 15:50
@fohrloop fohrloop changed the title Improve testing Use python -m build to create wheels for tox and only do it once Mar 31, 2024
@fohrloop fohrloop changed the title Use python -m build to create wheels for tox and only do it once Use python -m build to create wheels for tox and only do it once per tox invocation Mar 31, 2024
@fohrloop fohrloop merged commit 2154c45 into dev Mar 31, 2024
@fohrloop fohrloop deleted the improve-tox-and-build branch March 31, 2024 16: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.

1 participant