apache / apache/datafusion-python

Update `build-sdist` job

未關閉
#832 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
604
分支
174
平均合併
2 天 22 小時
30 天內合併 PR
5

描述

Follow on from #829

## The Issue
`build-sdist` does not generate any artifact.

The `actions/upload-artifact` step is looking to archive files in `target/wheels/*`, which `sdist` builds do not generate.

The generated archive from the logs ([reference job run](https://github.com/apache/datafusion-python/actions/runs/10501567861/job/29091775728)):

```console
Built source distribution to /home/runner/work/datafusion-python/datafusion-python/dist/datafusion-40.0.0.tar.gz
```

## Context
The release documentation currently expects only `wheels` to be included in `dist.zip` and for the `sdist` to be generated manually.

https://github.com/apache/datafusion-python/blob/805183bd9ae32b628e641d9552f1d0dded4a7a85/dev/release/README.md?plain=1#L142-L155

## Options

- Update the step to upload the tar archive as an artifact and update the release docs to use that.
- Update the step to assert that no wheels are generated in `target/wheels/*`, which will verify the sdist build and ensure the behavior doesn't change under our feet.
- Remove the step altogether.

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

先檢查 `build-sdist` job 和 `actions/upload-artifact` 步驟,然後將它們與所參照的 job 執行進行比較。閱讀第 142-155 行附近的 release 文件,以判斷應如何反映所選的 artifact 處理選項。當 sdist artifact 的行為與 release 說明一致時,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
github-actions, python
領域
ci-cd, documentation, release
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。