Skip to content

Conversation

@ndevenish
Copy link
Collaborator

@ndevenish ndevenish commented Jan 9, 2025

Hatch/Hatchling Uses standard pyproject.toml [project] table settings, like setuptools, but provides more places for extensibility. That's used here to automatically generate the dxtbx.format and console_scripts entry-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

failures in libtbx builds where the entry_points are not being picked up from the specific-installation location in the build/dxtbx/lib folder. Revert to fix main, so this can be investigated separately.

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.

@ndevenish
Copy link
Collaborator Author

Now that 8ecaa44 has fixed these issues we should be able to reapply this

@ndevenish ndevenish marked this pull request as ready for review May 2, 2025 08:14
@ndevenish ndevenish merged commit 6cf4b60 into main May 22, 2025
10 checks passed
@ndevenish ndevenish deleted the hatch_2 branch May 22, 2025 22:01
aaronfinke pushed a commit to aaronfinke/dxtbx that referenced this pull request Oct 7, 2025
Hatch/Hatchling (https://hatch.pypa.io/) Uses standard pyproject.toml
[project] table settings, like setuptools, but provides more places
for extensibility. That's used here to automatically generate the
`dxtbx.format` and `console_scripts` entry-points on build.

Opportunity take to do some more pyproject.toml consolidations.

This patch originally had issues and was backed out because of DIALS
using old packaging approaches. This was solved in 8ecaa44 so this
should be safe to put back.
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.

2 participants