python-poetry / python-poetry/install.python-poetry.org
[Doc] Add PowerShell snippet in the installation instructions (web & scripts) to allow Windows users to modify `%PATH%` easier
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Python
- Estrellas
- 255
- Forks
- 65
- Merge medio
- 2 h 48 min
- PR fusionados (30 d)
- 1
Descripción
- I have searched the issues of this repo and believe that this is not a duplicate.
Issue
https://python-poetry.org/docs/master/#installing-with-the-official-installer
Add Poetry to your PATH
The installer creates a
poetrywrapper in a well-known, platform-specific directory:
$HOME/.local/binon Unix.%APPDATA%\Python\Scriptson Windows.If this directory is not present in your $PATH, you can add it in order to invoke Poetry as
poetry.Alternatively, the full path to the
poetrybinary can always be used:
$POETRY_HOME/bin/poetryif$POETRY_HOMEis set.~/Library/Application Support/pypoetry/bin/poetryon MacOS.~/.local/share/pypoetry/bin/poetryon Linux/Unix.%APPDATA%\pypoetry\Scripts\poetryon Windows.
The following snippet is helpful and should be appended in the document for Windows users:
if (-not (Get-Command poetry -ErrorAction Ignore)) { [Environment]::SetEnvironmentVariable("Path", [Environment]::GetEnvironmentVariable("Path", "User") + ";$env:APPDATA\Python\Scripts", "User") }
or (for PowerShell 6+)
if (-not (Get-Command poetry -ErrorAction Ignore)) { echo 'if (-not (Get-Command poetry -ErrorAction Ignore)) { $env:Path += ";$env:APPDATA\Python\Scripts" }' | Out-File -Append $PROFILE }
P.S. The script provided by https://install.python-poetry.org also needs this fix.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza con las instrucciones de instalación de la sección enlazada de la documentación de official-installer e inspecciona el script de instalación proporcionado por install.python-poetry.org. Compara las indicaciones de Windows PATH para PowerShell estándar y PowerShell 6+, y verifica después que tanto la documentación como el script abordan el caso de configuración de Windows reportado.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- powershell, python
- Área
- cli, documentation
- Tipo de issue
- Documentación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100