matplotlib / matplotlib/matplotlib

Tests in Distribution Files

未關閉
#30,833 6 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

Maintenance status: needs comment/discussion
主要語言
Python
星號
23.2k
分支
8.5k
平均合併
1 天 6 小時
30 天內合併 PR
66

描述

This may be a stupid question, but I don't see the reason why this is the case.

I was running the following (essentially checking out matplotlib in a venv)
```bash
uv init example
cd example
uv add matplotlib
```
This created a new repo with a virtual environment.
When I was checking out `example/.venv/lib/python3.13/site-packages/matplotlib` I found the `tests` directory with a bunch of `pytest` files.
Basically, [these files](https://github.com/matplotlib/matplotlib/tree/main/lib/matplotlib/tests) seem to be distributed.
I then ran `du -h` and found out that the tests alone amass to just about `2MB`.
This seems to be a lot of wasted disk space.

Therefore, my questions.
- Are these tests actually used in the distributed package?
- Would it make sense to exclude them from the distribution, if they are not used by any user anyway?

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

先檢查 lib/matplotlib/tests,以及產生透過 uv 安裝的 matplotlib 發行版的套件封裝設定。確認分發的測試是否為任何受支援的工作流程所需,並測量產生的套件內容。完成的條件是已有記錄在文件中的答案,且在適當情況下,已有獲同意的套件封裝變更,並驗證已安裝的套件仍可正常運作。

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

評估

技術堆疊
python
領域
build-system
Issue 類型
功能
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
25/100

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

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