Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Mar 31, 2024

Conversation

fohrloop
Copy link
Owner

@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
7 checks passed
@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