From 892e788488571a1e0878ca6c2f5bf72e35a23b41 Mon Sep 17 00:00:00 2001 From: Ryanjiena <43134606+Ryanjiena@users.noreply.github.com> Date: Mon, 22 Jul 2024 15:37:14 +0800 Subject: [PATCH 1/2] pdm: Add version 2.17.1 --- bucket/pdm.json | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 bucket/pdm.json diff --git a/bucket/pdm.json b/bucket/pdm.json new file mode 100644 index 0000000000000..a96685263cd68 --- /dev/null +++ b/bucket/pdm.json @@ -0,0 +1,38 @@ +{ + "version": "2.17.1", + "description": "PDM, as described, is a modern Python package and dependency manager supporting the latest PEP standards.", + "homepage": "http://pdm.fming.dev", + "license": "MIT", + "depends": "python", + "notes": [ + "Activate powershell completions by running:", + "Add-Content -Path $Profile -Value \"`n. `\"`$(scoop prefix pdm)\\pdm_completion.ps`\"\"" + ], + "url": "https://files.pythonhosted.org/packages/py3/p/pdm/pdm-2.17.1-py3-none-any.whl", + "hash": "2ef7bb1424217f267b81e40f9c5326af27a519e9535e3272aa3b454ad5ab096c", + "installer": { + "script": [ + "Push-Location \"$dir\"", + "python -m venv venv", + "& \"venv\\Scripts\\python.exe\" -m pip install \"$fname\"", + "& \"venv\\Scripts\\pdm.exe\" completion powershell | Out-File -Encoding utf8 pdm_completion.ps1", + "Pop-Location" + ] + }, + "uninstaller": { + "script": [ + "$oldPath = [Environment]::GetEnvironmentVariable(\"PYTHONPATH\", [System.EnvironmentVariableTarget]::User)", + "If (-not [string]::IsNullOrWhiteSpace($oldPath)) {", + " $newPath = ($oldPath.Split(';') | Where { $_ -notlike \"$dir\\venv\\*\" }) -join ';'", + " [Environment]::SetEnvironmentVariable(\"PYTHONPATH\", $newPath, [System.EnvironmentVariableTarget]::User)", + "}" + ] + }, + "bin": "venv\\Scripts\\pdm.exe", + "checkver": { + "github": "https://github.com/pdm-project/pdm" + }, + "autoupdate": { + "url": "https://files.pythonhosted.org/packages/py3/p/pdm/pdm-$version-py3-none-any.whl" + } +} From 39f2bb012fe647ee6616a736d1aad13077ba1cb3 Mon Sep 17 00:00:00 2001 From: Ryanjiena <43134606+Ryanjiena@users.noreply.github.com> Date: Mon, 22 Jul 2024 15:40:01 +0800 Subject: [PATCH 2/2] pdm: fix typo --- bucket/pdm.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bucket/pdm.json b/bucket/pdm.json index a96685263cd68..ea4969c3c04b4 100644 --- a/bucket/pdm.json +++ b/bucket/pdm.json @@ -6,7 +6,7 @@ "depends": "python", "notes": [ "Activate powershell completions by running:", - "Add-Content -Path $Profile -Value \"`n. `\"`$(scoop prefix pdm)\\pdm_completion.ps`\"\"" + "Add-Content -Path $Profile -Value \"`n. `\"`$(scoop prefix pdm)\\pdm_completion.ps1`\"\"" ], "url": "https://files.pythonhosted.org/packages/py3/p/pdm/pdm-2.17.1-py3-none-any.whl", "hash": "2ef7bb1424217f267b81e40f9c5326af27a519e9535e3272aa3b454ad5ab096c",