Convert from setuptools to flit-core + check-sdist #1223
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Switching to
flit-coremoves us to a more modern but very minimal backend (flit-coreis considered the simplest production-ready PEP 517 backend and has no dependencies).This change allows us to establish some tighter control over our build process, but driven by
check-sdist, which is configured to verify our includes/excludes.Although debatable, this change makes the decision to strip out the various testing and linting tools from the builds. (
tox.ini,tests/*, etc)The rationale is that slimmer builds install faster (good) and that redistributors should always be working from the source repo anyway (so that they are not trusting our builds, Trusted Publishing notwithstanding).
Changes:
check-sdist(this could be moved to a separate tox env if preferable)I hesitated about not including a changelog for this, but for 99% of users the impact is nil.
Therefore, there is no changelog entry. One can be added on request during review.
Not included: this does not yet configure reproducible builds, but flit-core does support this as long as
SOURCE_DATE_EPOCHis set. That is intended as a small fast-follow.