[Python] Jobs fail if Pyarrow version is not correctly generated due to missing remote dev tags
- Dominant language
- C++
- Stars
- 17.1k
- Forks
- 4.3k
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 88
Description
### Describe the bug, including details regarding any error messages, version, and platform.
Sometimes we get some job failures when a contributor makes a PR and their remote git repository does not contain development tags.
The pyarrow generated version on those cases looks like `pyarrow-0.1.dev16896+ge3b9892`.
An example of this issue can be seen on this comment: https://github.com/apache/arrow/pull/44720#issuecomment-2490314967
and the build fails with:
```
self = <[AttributeError("'ArrowDtype' object has no attribute 'pyarrow_dtype'") raised in repr()] ArrowDtype object at 0x7f5b9b45f610>
pyarrow_dtype = DataType(int64)
def __init__(self, pyarrow_dtype: pa.DataType) -> None:
super().__init__("pyarrow")
if pa_version_under10p1:
> raise ImportError("pyarrow>=10.0.1 is required for ArrowDtype")
E ImportError: pyarrow>=10.0.1 is required for ArrowDtype
```
on the:
- [example-python-minimal-build-fedora-conda](https://github.com/ursacomputing/crossbow/actions/runs/11943636788/job/33293053196)
- [example-python-minimal-build-ubuntu-venv](https://github.com/ursacomputing/crossbow/actions/runs/11943636730/job/33293052678)
We should find a workaround for those cases instead of having to tell users to push tags to their remote.
### Component(s)
Python
Contributor guide
Assessment
This issue has not been assessed yet.