microsoftgraph / microsoftgraph/msgraph-beta-sdk-python

exclude extraneous files from package

未關閉
#600 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

bug type:bug
主要語言
Python
星號
44
分支
16
平均合併
20 小時 39 分鐘
30 天內合併 PR
3

描述

similar to https://github.com/microsoftgraph/msgraph-sdk-python-core/pull/709 those extra files slow down the installation, and can pose security issues like this https://github.com/microsoftgraph/msgraph-sdk-php-core/security/advisories/GHSA-mhhp-c3cm-2r86
directories to be excluded:

  • .github
  • docs
    files to be excluded:
  • .gitignore
  • .release-please-manifest
  • CHANGELOG.md
  • CODE_OF_CONDUCT.md
  • CONTRIBUTING.md
  • release-please-config
  • UPGRADING.md

to test simply run python -m build locally, and check what's in the archive under dist

貢獻指南

開啟貢獻指南

從這裡開始

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

研究方向

在本機執行 python -m build,並檢查 dist 下的封存檔,以查看列出的目錄和檔案中哪些被包含。找到控制封存檔內容的套件建置設定,排除指定的路徑,然後重新執行建置以確認它們不存在。

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

評估

技術堆疊
python
領域
build-system
Issue 類型
重構
難度
2/5
預估耗時
1-3 小時
活躍度
停滯
描述清晰度
描述清楚
新手友好度
35/100

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

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