mirror of
https://github.com/actions/python-versions.git
synced 2025-12-15 15:32:11 +00:00
Compare commits
4 Commits
3.11.0-rc.
...
3.9.15-327
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1982aae0b6 | ||
|
|
1e1d9f9032 | ||
|
|
a1a012d197 | ||
|
|
ff7fd271bf |
@@ -20,6 +20,7 @@ PYTHON_TOOLCACHE_PATH=$TOOLCACHE_ROOT/Python
|
||||
PYTHON_TOOLCACHE_VERSION_PATH=$PYTHON_TOOLCACHE_PATH/$PYTHON_FULL_VERSION
|
||||
PYTHON_TOOLCACHE_VERSION_ARCH_PATH=$PYTHON_TOOLCACHE_VERSION_PATH/x64
|
||||
PYTHON_FRAMEWORK_PATH="/Library/Frameworks/Python.framework/Versions/${MAJOR_VERSION}.${MINOR_VERSION}"
|
||||
PYTHON_APPLICATION_PATH="/Applications/Python ${MAJOR_VERSION}.${MINOR_VERSION}"
|
||||
|
||||
echo "Check if Python hostedtoolcache folder exist..."
|
||||
if [ ! -d $PYTHON_TOOLCACHE_PATH ]; then
|
||||
@@ -64,5 +65,8 @@ echo "Upgrading pip..."
|
||||
./python -m ensurepip
|
||||
./python -m pip install --ignore-installed pip --disable-pip-version-check --no-warn-script-location
|
||||
|
||||
echo "Install OpenSSL certificates"
|
||||
sh -e "${PYTHON_APPLICATION_PATH}/Install Certificates.command"
|
||||
|
||||
echo "Create complete file"
|
||||
touch $PYTHON_TOOLCACHE_VERSION_PATH/x64.complete
|
||||
|
||||
@@ -96,4 +96,8 @@ Describe "Tests" {
|
||||
"./dist/simple-test" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
It "Check urlopen with HTTPS works" {
|
||||
"python ./sources/python-urlopen-https.py" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
10
tests/sources/python-urlopen-https.py
Normal file
10
tests/sources/python-urlopen-https.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import sys
|
||||
|
||||
if sys.version_info[0] == 2:
|
||||
from urllib2 import urlopen
|
||||
else:
|
||||
from urllib.request import urlopen
|
||||
|
||||
response = urlopen("https://raw.githubusercontent.com/actions/python-versions/c641695f6a07526c18f10e374e503e649fef9427/.gitignore")
|
||||
data = response.read()
|
||||
assert len(data) == 140, len(data)
|
||||
@@ -2,46 +2,46 @@
|
||||
{
|
||||
"version": "3.11.0-rc.2",
|
||||
"stable": false,
|
||||
"release_url": "https://github.com/actions/python-versions/releases/tag/3.11.0-rc.2-3038386004",
|
||||
"release_url": "https://github.com/actions/python-versions/releases/tag/3.11.0-rc.2-3172748327",
|
||||
"files": [
|
||||
{
|
||||
"filename": "python-3.11.0-rc.2-darwin-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "darwin",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.11.0-rc.2-3038386004/python-3.11.0-rc.2-darwin-x64.tar.gz"
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.11.0-rc.2-3172748327/python-3.11.0-rc.2-darwin-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.11.0-rc.2-linux-18.04-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "linux",
|
||||
"platform_version": "18.04",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.11.0-rc.2-3038386004/python-3.11.0-rc.2-linux-18.04-x64.tar.gz"
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.11.0-rc.2-3172748327/python-3.11.0-rc.2-linux-18.04-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.11.0-rc.2-linux-20.04-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "linux",
|
||||
"platform_version": "20.04",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.11.0-rc.2-3038386004/python-3.11.0-rc.2-linux-20.04-x64.tar.gz"
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.11.0-rc.2-3172748327/python-3.11.0-rc.2-linux-20.04-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.11.0-rc.2-linux-22.04-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "linux",
|
||||
"platform_version": "22.04",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.11.0-rc.2-3038386004/python-3.11.0-rc.2-linux-22.04-x64.tar.gz"
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.11.0-rc.2-3172748327/python-3.11.0-rc.2-linux-22.04-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.11.0-rc.2-win32-x64.zip",
|
||||
"arch": "x64",
|
||||
"platform": "win32",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.11.0-rc.2-3038386004/python-3.11.0-rc.2-win32-x64.zip"
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.11.0-rc.2-3172748327/python-3.11.0-rc.2-win32-x64.zip"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.11.0-rc.2-win32-x86.zip",
|
||||
"arch": "x86",
|
||||
"platform": "win32",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.11.0-rc.2-3038386004/python-3.11.0-rc.2-win32-x86.zip"
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.11.0-rc.2-3172748327/python-3.11.0-rc.2-win32-x86.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user