Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bd6b4b6

Browse filesBrowse files
Add warning for python 2.7 (actions#673)
1 parent 0cbcb9a commit bd6b4b6
Copy full SHA for bd6b4b6

File tree

Expand file treeCollapse file tree

2 files changed

+8
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+8
-0
lines changed

‎dist/setup/index.js

Copy file name to clipboardExpand all lines: dist/setup/index.js
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67612,6 +67612,9 @@ function run() {
6761267612
core.info(`Successfully set up PyPy ${installed.resolvedPyPyVersion} with Python (${installed.resolvedPythonVersion})`);
6761367613
}
6761467614
else {
67615+
if (version.startsWith('2')) {
67616+
core.warning('The support for python 2.7 will be removed on June 19. Related issue: https://github.com/actions/setup-python/issues/672');
67617+
}
6761567618
const installed = yield finder.useCpythonVersion(version, arch, updateEnvironment, checkLatest, allowPreReleases);
6761667619
pythonVersion = installed.version;
6761767620
core.info(`Successfully set up ${installed.impl} (${pythonVersion})`);

‎src/setup-python.ts

Copy file name to clipboardExpand all lines: src/setup-python.ts
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ async function run() {
9898
`Successfully set up PyPy ${installed.resolvedPyPyVersion} with Python (${installed.resolvedPythonVersion})`
9999
);
100100
} else {
101+
if (version.startsWith('2')) {
102+
core.warning(
103+
'The support for python 2.7 will be removed on June 19. Related issue: https://github.com/actions/setup-python/issues/672'
104+
);
105+
}
101106
const installed = await finder.useCpythonVersion(
102107
version,
103108
arch,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.