Migrate dxtbx build backend to hatchling #778
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.
Hatch/Hatchling Uses standard pyproject.toml
[project]table settings, like setuptools, but provides more places for extensibility. That's used here to automatically generate thedxtbx.formatandconsole_scriptsentry-points on build. This also helps get rid of pip warnings that the previous way we were using setup.py is going to go away.Opportunity taken to do a little more pyproject.toml consolidation, and removing now-vestigial libtbx behaviour.
The first attempt (#766) caused
In hindsight, this might have been related to the other libtbx entry_point-breaking-behaviour that happened around the same time, which we now account for.
This should be investigated here before re-merging.