actions / actions/setup-python

Associate .py with python on Windows

オープン
#900 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

feature request
主要言語
TypeScript
スター
2.2k
フォーク
739
平均マージ
6日 18時間
マージ済み PR(30日)
1

説明

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

actions/setup-python@v4 の Windows セットアップパスから始め、Windows のファイル関連付けに関するリンク先の Python ドキュメントを確認します。アクションが現在どのように Python をインストールまたは公開しているかを確認し、その後、shebang を使用する .py スクリプトを Windows アクションで実行できることを検証します。関連付けがそこで一貫して機能すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
github-actions, python
領域
ci-cd, operating-systems
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。