Associate .py with python on Windows
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- github-actions, python
- Bereich
- ci-cd, operating-systems
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.
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
- Vorherrschende Sprache
- TypeScript
- Sterne
- 2.2k
- Forks
- 739
- Ø Merge
- 6 T. 18 Std.
- Gemergte PRs (30 T.)
- 1
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus actions/setup-python
-
bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
actions/setup-python#1348 · 5 Kommentare ·
-
feature request
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
actions/setup-python#1346 · 12 Kommentare ·
-
feature request
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 58/100
actions/setup-python#1308 · 8 Kommentare ·
-
feature request
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 35/100
actions/setup-python#1301 · 5 Kommentare ·
-
feature request
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
actions/setup-python#1294 · 3 Kommentare · 2 Reaktionen ·
Alle Issues in actions/setup-python
Ähnliche Issues
-
blocklist removal
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
MetaMask/eth-phishing-detect#296544 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
pastelsky/bundlephobia#1122 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
-
category/development priority/P2 scope/file-operations scope/testing type/enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
-
Enatega Customer and Rider app: Add-ons price is not visible to customer after order is placed. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100