Description
If a package's dependencies also define other third-party dependencies.. and they are using pre-release versions of those third-parties... we have an issue with UV
UV doesn't allow to install the secondary-level dependencies if they are pre-release candidates AND you have not enabled the --prerelease=allow
flag for uv. I have the feeling that this should always be allowed.
See example of problem here: ansys/pyansys#972
When we first introduced pygranta==2025.2.0rc0 ... uv complained about pygranta defining a dependency on ansys-grantami-bomanalytics with a pre-release version... and thus failing the installation. See https://github.com/ansys/pyansys/actions/runs/15494472742/job/43627723690
The moment we added ansys-grantami-bomanalytics==2.3.0rc0 as a direct dependency of the metapackage, it stopped complaining about this specific package and moved on to the next problematic dependency. See https://github.com/ansys/pyansys/actions/runs/15509809000/job/43669259901?pr=972
This is a no-go. IMO we should just enable pre-releases by default with UV.
Refs: https://docs.astral.sh/uv/concepts/resolution/#pre-release-handling and https://docs.astral.sh/uv/pip/compatibility/#pre-release-compatibility