Azure / Azure/azure-functions-durable-python
Package is accidentally shipping its tests
- 主要言語
- Python
- スター
- 157
- フォーク
- 70
- 平均マージ
- 2日 10時間
- マージ済み PR(30日)
- 2
説明
🐛 **Describe the bug**
It looks like this package is accidentally shipping its tests. This can be easily verified with:
```sh
pip show --files azure-functions-durable
```
Which shows that there are 76 tests files shipped by the package into a top-level package called `tests`. This has a few small issues:
- It bloats the package size.
- It leads to collisions with other packages that accidentally ship their tests as `tests` module (they just overwrite each other in the `site-packages` directory).
- It can lead to issues for users if it conflicts with _their_ `tests` package.
🤔 **Expected behavior**
The shipped package should not include its tests.
**Possible cause / solution**
It looks like the `setup.py` already lists `tests` under `exclude`:
https://github.com/Azure/azure-functions-durable-python/blob/b30d0a64f7b8c1042f066006af57b74976cdf9d2/setup.py#L29-L34
However if I remember correctly the pattern should be `tests/*` or `tests*` or `tests.*` or so to really affect _subfolders_. Otherwise the listing of `azure` itself would lead to the exclusion of the whole code (in this case it is most likely just about the exclusion of the top-level `__init__.py`).
☕ **Steps to reproduce**
```sh
pip install azure-functions-durable
pip show --files azure-functions-durable
```
コントリビューションガイド
調査の方向性
まず setup.py のパッケージ除外設定、特に既存の tests エントリを確認します。パッケージをビルドまたはインストールし、pip show --files azure-functions-durable を実行して結果を確認します。インストールされたパッケージにトップレベルの tests パッケージまたはそのテストファイルが含まれなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- build-system
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 72/100