1
0
Fork 0
mirror of https://github.com/python-poetry/install.python-poetry.org.git synced 2024-11-23 06:20:57 -05:00

Compare commits

...

5 commits

Author SHA1 Message Date
Tatsunori Uchino
2243411693 Additional fix of previous commit
Co-authored-by: Arun Babu Neelicattu <arun.neelicattu@gmail.com>
2024-11-21 00:11:05 +01:00
Tatsunori Uchino
cc3ef283e7 Correcting verbs to the present tense
Co-authored-by: Arun Babu Neelicattu <arun.neelicattu@gmail.com>
2024-11-21 00:11:05 +01:00
Tatsunori Uchino
1fdd7fb233 Add PowerShell snippets for postinstall 2024-11-21 00:11:05 +01:00
pre-commit-ci[bot]
290e92f756 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-11-20 15:40:47 +01:00
pre-commit-ci[bot]
6dc43458ef [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black-pre-commit-mirror: 23.9.1 → 24.10.0](https://github.com/psf/black-pre-commit-mirror/compare/23.9.1...24.10.0)
- [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v5.0.0)
- [github.com/astral-sh/ruff-pre-commit: v0.0.290 → v0.7.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.290...v0.7.4)
2024-11-20 15:40:47 +01:00
2 changed files with 19 additions and 5 deletions

View file

@ -1,11 +1,11 @@
repos: repos:
- repo: https://github.com/psf/black-pre-commit-mirror - repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.9.1 rev: 24.10.0
hooks: hooks:
- id: black - id: black
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0 rev: v5.0.0
hooks: hooks:
- id: trailing-whitespace - id: trailing-whitespace
- id: end-of-file-fixer - id: end-of-file-fixer
@ -15,6 +15,6 @@ repos:
- id: check-json - id: check-json
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.290 rev: v0.7.4
hooks: hooks:
- id: ruff - id: ruff

View file

@ -22,7 +22,7 @@ installs, or use of pipx as alternatives to executing arbitrary, unversioned cod
script to alternatives, consider maintaining a local copy as part of your infrastructure. script to alternatives, consider maintaining a local copy as part of your infrastructure.
For full documentation, visit https://python-poetry.org/docs/#installation. For full documentation, visit https://python-poetry.org/docs/#installation.
""" # noqa: E501 """
import sys import sys
@ -269,7 +269,21 @@ POST_MESSAGE_CONFIGURE_FISH = """
You can execute `set -U fish_user_paths {poetry_home_bin} $fish_user_paths` You can execute `set -U fish_user_paths {poetry_home_bin} $fish_user_paths`
""" """
POST_MESSAGE_CONFIGURE_WINDOWS = """""" POST_MESSAGE_CONFIGURE_WINDOWS = """
You can choose and execute one of the following commands in PowerShell:
A. Append the bin directory to your user environment variable `PATH`:
```
[Environment]::SetEnvironmentVariable("Path", [Environment]::GetEnvironmentVariable("Path", "User") + ";{poetry_home_bin}", "User")
```
B. Try to append the bin directory to PATH every when you run PowerShell (>=6 recommended):
```
echo 'if (-not (Get-Command poetry -ErrorAction Ignore)) {{ $env:Path += ";{poetry_home_bin}" }}' | Out-File -Append $PROFILE
```
"""
class PoetryInstallationError(RuntimeError): class PoetryInstallationError(RuntimeError):