We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8dd909 commit a45f237Copy full SHA for a45f237
manifests/pip.pp
@@ -239,6 +239,8 @@
239
240
'latest': {
241
# Unfortunately this is the smartest way of getting the latest available package version with pip as of now
242
+ # Note: we DO need to repeat ourselves with "from version" in both grep and sed as on some systems pip returns
243
+ # more than one line with paretheses.
244
$latest_version = join(["${pip_env} install ${proxy_flag} ${pkgname}==notreallyaversion 2>&1",
245
' | grep -oP "\(from versions: .*\)" | sed -E "s/\(from versions: (.*?, )*(.*)\)/\2/g"',
246
' | tr -d "[:space:]"'])
0 commit comments