Associate .py with python on Windows
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- github-actions, python
研究方向
從 actions/setup-python@v4 的 Windows 設定路徑開始,並查看連結的關於 Windows 檔案關聯的 Python 文件。確認該 action 目前如何安裝或提供 Python,然後驗證使用 shebang 的 .py 指令碼能否在 Windows action 中執行;完成的標準是該關聯在其中能夠一致地運作。
由索引模型根據 Issue 內容生成。
描述
Description:
Associate .py with python on Windows when running actions/setup-python@v4
Justification:
I want to test that my .py have executable permission set relying on shebang line. That passes on Ubuntu. Windows doesn't care about file permissions set by git, but it has a different mechanism:
https://docs.python.org/3/faq/windows.html#how-do-i-make-python-scripts-executable
On Windows, the standard Python installer already associates the .py extension with a file type (Python.File) and gives that file type an open command that runs the interpreter (D:\Program Files\Python\python.exe "%1" %*).
and https://docs.python.org/3/using/windows.html#from-file-associations:
The launcher should have been associated with Python files (i.e. .py, .pyw, .pyc files) when it was installed.
Apparently that doesn't happen when using actions/setup-python@v4
Are you willing to submit a PR?
No
- 主要語言
- TypeScript
- 星號
- 2.2k
- 分支
- 739
- 平均合併
- 6 天 18 小時
- 30 天內合併 PR
- 1
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
actions/setup-python 的其他 Issue
-
bug
難度 4/5 3-5 天 新手友好度 55/100
actions/setup-python#1348 · 5 則留言 ·
-
feature request
難度 5/5 一週以上 新手友好度 35/100
actions/setup-python#1346 · 12 則留言 ·
-
feature request
難度 3/5 1-2 天 新手友好度 58/100
actions/setup-python#1308 · 8 則留言 ·
-
feature request
難度 2/5 1-3 小時 新手友好度 35/100
actions/setup-python#1301 · 5 則留言 ·
-
feature request
難度 4/5 3-5 天 新手友好度 55/100
actions/setup-python#1294 · 3 則留言 · 2 個 reaction ·
查看 actions/setup-python 的全部 Issue
相似的 Issue
-
blocklist removal
難度 2/5 1-3 小時 新手友好度 65/100
MetaMask/eth-phishing-detect#296544 ·
-
難度 2/5 1-3 小時 新手友好度 70/100
pastelsky/bundlephobia#1122 ·
-
難度 2/5 1-3 小時 新手友好度 70/100
-
category/development priority/P2 scope/file-operations scope/testing type/enhancement
難度 2/5 1-3 小時 新手友好度 75/100
-
難度 2/5 1-3 小時 新手友好度 75/100