mirror of
https://github.com/actions/python-versions.git
synced 2025-12-15 15:32:11 +00:00
Compare commits
14 Commits
3.10.4-244
...
3.11.0-bet
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
714163cc44 | ||
|
|
eaa180e241 | ||
|
|
12ba6443e8 | ||
|
|
73379f970f | ||
|
|
8a2b258410 | ||
|
|
d974a7a429 | ||
|
|
34c0e9a4d6 | ||
|
|
edcd32dbf1 | ||
|
|
045abfcc36 | ||
|
|
6524532238 | ||
|
|
0f97bcdc23 | ||
|
|
bf3c64f950 | ||
|
|
f59a9522eb | ||
|
|
290229025b |
@@ -7,6 +7,10 @@ class macOSPythonBuilder : NixPythonBuilder {
|
|||||||
|
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Contains methods that required to build macOS Python artifact from sources. Inherited from base NixPythonBuilder.
|
Contains methods that required to build macOS Python artifact from sources. Inherited from base NixPythonBuilder.
|
||||||
|
|
||||||
|
While python.org provides precompiled binaries for macOS, switching to them risks breaking existing customers.
|
||||||
|
If we wanted to start using the official binaries instead of building from source, we should avoid changing previous versions
|
||||||
|
so we remain backwards compatible.
|
||||||
|
|
||||||
.PARAMETER platform
|
.PARAMETER platform
|
||||||
The full name of platform for which Python should be built.
|
The full name of platform for which Python should be built.
|
||||||
@@ -46,9 +50,10 @@ class macOSPythonBuilder : NixPythonBuilder {
|
|||||||
### will never be used itself by a Github Actions runner but using a universal2 Python is the only way to build
|
### will never be used itself by a Github Actions runner but using a universal2 Python is the only way to build
|
||||||
### universal2 C extensions and wheels. This is supported by Python >= 3.10 and was backported to Python >=
|
### universal2 C extensions and wheels. This is supported by Python >= 3.10 and was backported to Python >=
|
||||||
### 3.9.1 and >= 3.8.10.
|
### 3.9.1 and >= 3.8.10.
|
||||||
if ($this.Version -ge "3.8.10" -and $this.Version -ne "3.9.0" ) {
|
### Disabled, discussion: https://github.com/actions/python-versions/pull/114
|
||||||
$configureString += " --enable-universalsdk --with-universal-archs=universal2"
|
# if ($this.Version -ge "3.8.10" -and $this.Version -ne "3.8.13" -and $this.Version -ne "3.9.0" ) {
|
||||||
}
|
# $configureString += " --enable-universalsdk --with-universal-archs=universal2"
|
||||||
|
# }
|
||||||
|
|
||||||
### OS X 10.11, Apple no longer provides header files for the deprecated system version of OpenSSL.
|
### OS X 10.11, Apple no longer provides header files for the deprecated system version of OpenSSL.
|
||||||
### Solution is to install these libraries from a third-party package manager,
|
### Solution is to install these libraries from a third-party package manager,
|
||||||
@@ -59,6 +64,9 @@ class macOSPythonBuilder : NixPythonBuilder {
|
|||||||
$env:CFLAGS = "-I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/zlib/include"
|
$env:CFLAGS = "-I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/zlib/include"
|
||||||
} else {
|
} else {
|
||||||
$configureString += " --with-openssl=/usr/local/opt/openssl@1.1"
|
$configureString += " --with-openssl=/usr/local/opt/openssl@1.1"
|
||||||
|
if ($this.Version -gt "3.7.12") {
|
||||||
|
$configureString += " --with-tcltk-includes='-I /usr/local/opt/tcl-tk/include' --with-tcltk-libs='-L/usr/local/opt/tcl-tk/lib -ltcl8.6 -ltk8.6'"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
### Compile with support of loadable sqlite extensions. Unavailable for Python 2.*
|
### Compile with support of loadable sqlite extensions. Unavailable for Python 2.*
|
||||||
@@ -70,6 +78,9 @@ class macOSPythonBuilder : NixPythonBuilder {
|
|||||||
$env:CPPFLAGS += "-I$(brew --prefix sqlite3)/include"
|
$env:CPPFLAGS += "-I$(brew --prefix sqlite3)/include"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Write-Host "The passed configure options are: "
|
||||||
|
Write-Host $configureString
|
||||||
|
|
||||||
Execute-Command -Command $configureString
|
Execute-Command -Command $configureString
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,6 +48,9 @@ class UbuntuPythonBuilder : NixPythonBuilder {
|
|||||||
$configureString += " --enable-loadable-sqlite-extensions"
|
$configureString += " --enable-loadable-sqlite-extensions"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Write-Host "The passed configure options are: "
|
||||||
|
Write-Host $configureString
|
||||||
|
|
||||||
Execute-Command -Command $configureString
|
Execute-Command -Command $configureString
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -49,6 +49,13 @@ Describe "Tests" {
|
|||||||
"python ./sources/simple-test.py" | Should -ReturnZeroExitCode
|
"python ./sources/simple-test.py" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# linux has no display name and no $DISPLAY environment variable - skip tk test
|
||||||
|
# if (-not (($Platform -match "ubuntu") -or ($Platform -match "linux"))) {
|
||||||
|
# It "Check if tcl/tk has the same headed and library versions" {
|
||||||
|
# "python ./sources/tcltk.py" | Should -ReturnZeroExitCode
|
||||||
|
# }
|
||||||
|
# }
|
||||||
|
|
||||||
if (($Version -ge "3.2.0") -and -not ([semver]"$($Version.Major).$($Version.Minor)" -eq [semver]"3.11" -and $Version.PreReleaseLabel)) {
|
if (($Version -ge "3.2.0") -and -not ([semver]"$($Version.Major).$($Version.Minor)" -eq [semver]"3.11" -and $Version.PreReleaseLabel)) {
|
||||||
It "Check if sqlite3 module is installed" {
|
It "Check if sqlite3 module is installed" {
|
||||||
"python ./sources/python-sqlite3.py" | Should -ReturnZeroExitCode
|
"python ./sources/python-sqlite3.py" | Should -ReturnZeroExitCode
|
||||||
|
|||||||
10
tests/sources/tcltk.py
Normal file
10
tests/sources/tcltk.py
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
import tkinter
|
||||||
|
import _tkinter
|
||||||
|
|
||||||
|
header = _tkinter.TK_VERSION
|
||||||
|
lib = tkinter.Tk().getvar('tk_version')
|
||||||
|
|
||||||
|
if lib != header:
|
||||||
|
print('header version=' + header)
|
||||||
|
print('lib version=' + lib)
|
||||||
|
exit(1)
|
||||||
@@ -410,49 +410,95 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"version": "3.10.5",
|
||||||
|
"stable": true,
|
||||||
|
"release_url": "https://github.com/actions/python-versions/releases/tag/3.10.5-2452607758",
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"filename": "python-3.10.5-darwin-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.5-2452607758/python-3.10.5-darwin-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "python-3.10.5-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.10.5-2452607758/python-3.10.5-linux-18.04-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "python-3.10.5-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.10.5-2452607758/python-3.10.5-linux-20.04-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "python-3.10.5-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.10.5-2452607758/python-3.10.5-linux-22.04-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "python-3.10.5-win32-x64.zip",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "win32",
|
||||||
|
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.5-2452607758/python-3.10.5-win32-x64.zip"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "python-3.10.5-win32-x86.zip",
|
||||||
|
"arch": "x86",
|
||||||
|
"platform": "win32",
|
||||||
|
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.5-2452607758/python-3.10.5-win32-x86.zip"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"version": "3.10.4",
|
"version": "3.10.4",
|
||||||
"stable": true,
|
"stable": true,
|
||||||
"release_url": "https://github.com/actions/python-versions/releases/tag/3.10.4-2268648287",
|
"release_url": "https://github.com/actions/python-versions/releases/tag/3.10.4-2447350680",
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"filename": "python-3.10.4-darwin-x64.tar.gz",
|
"filename": "python-3.10.4-darwin-x64.tar.gz",
|
||||||
"arch": "x64",
|
"arch": "x64",
|
||||||
"platform": "darwin",
|
"platform": "darwin",
|
||||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.4-2268648287/python-3.10.4-darwin-x64.tar.gz"
|
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.4-2447350680/python-3.10.4-darwin-x64.tar.gz"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename": "python-3.10.4-linux-18.04-x64.tar.gz",
|
"filename": "python-3.10.4-linux-18.04-x64.tar.gz",
|
||||||
"arch": "x64",
|
"arch": "x64",
|
||||||
"platform": "linux",
|
"platform": "linux",
|
||||||
"platform_version": "18.04",
|
"platform_version": "18.04",
|
||||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.4-2268648287/python-3.10.4-linux-18.04-x64.tar.gz"
|
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.4-2447350680/python-3.10.4-linux-18.04-x64.tar.gz"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename": "python-3.10.4-linux-20.04-x64.tar.gz",
|
"filename": "python-3.10.4-linux-20.04-x64.tar.gz",
|
||||||
"arch": "x64",
|
"arch": "x64",
|
||||||
"platform": "linux",
|
"platform": "linux",
|
||||||
"platform_version": "20.04",
|
"platform_version": "20.04",
|
||||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.4-2268648287/python-3.10.4-linux-20.04-x64.tar.gz"
|
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.4-2447350680/python-3.10.4-linux-20.04-x64.tar.gz"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename": "python-3.10.4-linux-22.04-x64.tar.gz",
|
"filename": "python-3.10.4-linux-22.04-x64.tar.gz",
|
||||||
"arch": "x64",
|
"arch": "x64",
|
||||||
"platform": "linux",
|
"platform": "linux",
|
||||||
"platform_version": "22.04",
|
"platform_version": "22.04",
|
||||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.4-2268648287/python-3.10.4-linux-22.04-x64.tar.gz"
|
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.4-2447350680/python-3.10.4-linux-22.04-x64.tar.gz"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename": "python-3.10.4-win32-x64.zip",
|
"filename": "python-3.10.4-win32-x64.zip",
|
||||||
"arch": "x64",
|
"arch": "x64",
|
||||||
"platform": "win32",
|
"platform": "win32",
|
||||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.4-2268648287/python-3.10.4-win32-x64.zip"
|
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.4-2447350680/python-3.10.4-win32-x64.zip"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename": "python-3.10.4-win32-x86.zip",
|
"filename": "python-3.10.4-win32-x86.zip",
|
||||||
"arch": "x86",
|
"arch": "x86",
|
||||||
"platform": "win32",
|
"platform": "win32",
|
||||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.4-2268648287/python-3.10.4-win32-x86.zip"
|
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.4-2447350680/python-3.10.4-win32-x86.zip"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -2067,6 +2113,40 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"version": "3.8.13",
|
||||||
|
"stable": true,
|
||||||
|
"release_url": "https://github.com/actions/python-versions/releases/tag/3.8.13-2529578966",
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"filename": "python-3.8.13-darwin-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/python-versions/releases/download/3.8.13-2529578966/python-3.8.13-darwin-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "python-3.8.13-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.8.13-2529578966/python-3.8.13-linux-18.04-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "python-3.8.13-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.8.13-2529578966/python-3.8.13-linux-20.04-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "python-3.8.13-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.8.13-2529578966/python-3.8.13-linux-22.04-x64.tar.gz"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"version": "3.8.12",
|
"version": "3.8.12",
|
||||||
"stable": true,
|
"stable": true,
|
||||||
|
|||||||
Reference in New Issue
Block a user