actions / actions/setup-python
Associate .py with python on Windows
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 2.2k
- Forks
- 739
- Ø Merge
- 6 T. 18 Std.
- Gemergte PRs (30 T.)
- 1
Beschreibung
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
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit dem Windows-Setup-Pfad für actions/setup-python@v4 und prüfe die verlinkte Python-Dokumentation zu Windows-Dateizuordnungen. Bestätige, wie die Action Python derzeit installiert oder verfügbar macht, und verifiziere anschließend, dass ein .py-Skript mit einer Shebang in einer Windows-Action ausgeführt werden kann; als abgeschlossen gilt die Aufgabe, wenn die Zuordnung dort konsistent funktioniert.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- github-actions, python
- Bereich
- ci-cd, operating-systems
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100