Merge branch 'actions:main' into main
This commit is contained in:
commit
08fbd4e9ed
|
@ -183,6 +183,18 @@ jobs:
|
||||||
body: |
|
body: |
|
||||||
Python ${{ env.VERSION }}
|
Python ${{ env.VERSION }}
|
||||||
|
|
||||||
|
- name: Generate hash for packages
|
||||||
|
run: |
|
||||||
|
$childItems = Get-Childitem -Path '.'
|
||||||
|
$childItems | Foreach-Object {
|
||||||
|
$packageObj = Get-Childitem -Path $_.FullName | Select-Object -First 1
|
||||||
|
Write-Host "Package: $($packageObj.Name)"
|
||||||
|
$actualHash = (Get-FileHash -Path $packageObj.FullName -Algorithm sha256).Hash
|
||||||
|
$hashString = "$actualHash $($packageObj.Name)"
|
||||||
|
Write-Host "$hashString"
|
||||||
|
Add-Content -Path ./hashes.sha256 -Value "$hashString"
|
||||||
|
}
|
||||||
|
|
||||||
- name: Upload release assets
|
- name: Upload release assets
|
||||||
uses: actions/github-script@v6
|
uses: actions/github-script@v6
|
||||||
with:
|
with:
|
||||||
|
@ -190,14 +202,15 @@ jobs:
|
||||||
script: |
|
script: |
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
for (let artifactDir of fs.readdirSync('.')) {
|
for (let artifactDir of fs.readdirSync('.')) {
|
||||||
let artifactName = fs.readdirSync(`${artifactDir}`)[0];
|
let artifactName = fs.lstatSync(artifactDir).isDirectory() ? fs.readdirSync(`${artifactDir}`)[0] : artifactDir;
|
||||||
|
|
||||||
console.log(`Upload ${artifactName} asset`);
|
console.log(`Upload ${artifactName} asset`);
|
||||||
github.rest.repos.uploadReleaseAsset({
|
github.rest.repos.uploadReleaseAsset({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
release_id: ${{ steps.create_release.outputs.id }},
|
release_id: ${{ steps.create_release.outputs.id }},
|
||||||
name: artifactName,
|
name: artifactName,
|
||||||
data: fs.readFileSync(`./${artifactDir}/${artifactName}`)
|
data: fs.lstatSync(artifactDir).isDirectory() ? fs.readFileSync(`./${artifactDir}/${artifactName}`) : fs.readFileSync(`./${artifactName}`).toString()
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [macos-latest, windows-latest, ubuntu-20.04, ubuntu-22.04]
|
os: [macos-latest, windows-latest, ubuntu-20.04, ubuntu-22.04]
|
||||||
python: [3.9.12, 3.10.8, 3.11.10]
|
python: [3.9.12, 3.10.8, 3.11.8]
|
||||||
steps:
|
steps:
|
||||||
- name: setup-python ${{ matrix.python }}
|
- name: setup-python ${{ matrix.python }}
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
|
|
|
@ -21,5 +21,7 @@ We aim to make new versions of Python available as soon as they are released. Bo
|
||||||
|
|
||||||
When a new version of an operating system is released and made available for use with [GitHub hosted runners](https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources), we will provide the **latest existing patch versions of Python for all major versions that have not reached [end-of-life](https://devguide.python.org/versions/)**. Any subsequent Python versions will be made available for the new OS as well.
|
When a new version of an operating system is released and made available for use with [GitHub hosted runners](https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources), we will provide the **latest existing patch versions of Python for all major versions that have not reached [end-of-life](https://devguide.python.org/versions/)**. Any subsequent Python versions will be made available for the new OS as well.
|
||||||
|
|
||||||
|
Beginning **approximately six months prior** to the removal of a Python version from the [versions-manifest.json](https://github.com/actions/python-versions/blob/main/versions-manifest.json) file, a pinned issue will be created in the [setup-python](https://github.com/actions/setup-python) repository. This pinned issue will provide important details about the upcoming end of support, including the specific date, as well as any other notes, relevant updates or alternatives. We encourage users to regularly check pinned issues for updates on tool versions they are using for maximum transparency, security, performance and overall compatibility with their projects.
|
||||||
|
|
||||||
## Contribution
|
## Contribution
|
||||||
Contributions are welcome! See [Contributor's Guide](./CONTRIBUTING.md) for more details about contribution process and code structure
|
Contributions are welcome! See [Contributor's Guide](./CONTRIBUTING.md) for more details about contribution process and code structure
|
||||||
|
|
|
@ -31,6 +31,14 @@ class macOSPythonBuilder : NixPythonBuilder {
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Prepare system environment by installing dependencies and required packages.
|
Prepare system environment by installing dependencies and required packages.
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
if ($this.Version -eq "3.7.17") {
|
||||||
|
# We have preinstalled ncurses and readLine on the hoster runners. But we need to install bzip2 for
|
||||||
|
# setting up an environemnt
|
||||||
|
# If we get any issues realted to ncurses or readline we can try to run this command
|
||||||
|
# brew install ncurses readline
|
||||||
|
Execute-Command -Command "brew install bzip2"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[void] Configure() {
|
[void] Configure() {
|
||||||
|
@ -67,7 +75,7 @@ class macOSPythonBuilder : NixPythonBuilder {
|
||||||
|
|
||||||
# For Python 3.7.2 and 3.7.3 we need to provide PATH for zlib to pack it properly. Otherwise the build will fail
|
# For Python 3.7.2 and 3.7.3 we need to provide PATH for zlib to pack it properly. Otherwise the build will fail
|
||||||
# with the error: zipimport.ZipImportError: can't decompress data; zlib not available
|
# with the error: zipimport.ZipImportError: can't decompress data; zlib not available
|
||||||
if ($this.Version -eq "3.7.2" -or $this.Version -eq "3.7.3") {
|
if ($this.Version -eq "3.7.2" -or $this.Version -eq "3.7.3" -or $this.Version -eq "3.7.17") {
|
||||||
$env:LDFLAGS = "-L/usr/local/opt/zlib/lib"
|
$env:LDFLAGS = "-L/usr/local/opt/zlib/lib"
|
||||||
$env:CFLAGS = "-I/usr/local/opt/zlib/include"
|
$env:CFLAGS = "-I/usr/local/opt/zlib/include"
|
||||||
}
|
}
|
||||||
|
@ -75,6 +83,11 @@ class macOSPythonBuilder : NixPythonBuilder {
|
||||||
if ($this.Version -gt "3.7.12") {
|
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'"
|
$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'"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($this.Version -eq "3.7.17") {
|
||||||
|
$env:LDFLAGS += " -L$(brew --prefix bzip2)/lib -L$(brew --prefix readline)/lib -L$(brew --prefix ncurses)/lib"
|
||||||
|
$env:CFLAGS += " -I$(brew --prefix bzip2)/include -I$(brew --prefix readline)/include -I$(brew --prefix ncurses)/include"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
### Compile with support of loadable sqlite extensions. Unavailable for Python 2.*
|
### Compile with support of loadable sqlite extensions. Unavailable for Python 2.*
|
||||||
|
|
|
@ -72,6 +72,7 @@ class UbuntuPythonBuilder : NixPythonBuilder {
|
||||||
$tkinterInstallString = "sudo apt install -y python-tk tk-dev"
|
$tkinterInstallString = "sudo apt install -y python-tk tk-dev"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Execute-Command -Command "sudo apt-get update"
|
||||||
Execute-Command -Command $tkinterInstallString
|
Execute-Command -Command $tkinterInstallString
|
||||||
|
|
||||||
### Install dependent packages
|
### Install dependent packages
|
||||||
|
|
2
helpers
2
helpers
|
@ -1 +1 @@
|
||||||
Subproject commit 896369fc7db1c89563d9a164d1ffc7f32d6c1c63
|
Subproject commit 6fbb1f0f2098254142702dba05fe75cd8e77c4ae
|
|
@ -274,6 +274,27 @@ if sys.version_info >= (3, 12):
|
||||||
standard_library.remove('asyncore')
|
standard_library.remove('asyncore')
|
||||||
standard_library.remove('asynchat')
|
standard_library.remove('asynchat')
|
||||||
|
|
||||||
|
# 'aifc', 'cgi', 'cgitb', 'chunk', 'crypt', 'imghdr', 'lib2to3', 'mailcap', 'nntplib',
|
||||||
|
# 'pipes', 'sndhdr', 'sunau', 'telnetlib', 'uu' and 'xdrlib' modules have been removed
|
||||||
|
# from Python 3.13
|
||||||
|
# https://docs.python.org/dev/whatsnew/3.13.html
|
||||||
|
if sys.version_info >= (3, 13):
|
||||||
|
standard_library.remove('aifc')
|
||||||
|
standard_library.remove('cgi')
|
||||||
|
standard_library.remove('cgitb')
|
||||||
|
standard_library.remove('chunk')
|
||||||
|
standard_library.remove('crypt')
|
||||||
|
standard_library.remove('imghdr')
|
||||||
|
standard_library.remove('lib2to3')
|
||||||
|
standard_library.remove('mailcap')
|
||||||
|
standard_library.remove('nntplib')
|
||||||
|
standard_library.remove('pipes')
|
||||||
|
standard_library.remove('sndhdr')
|
||||||
|
standard_library.remove('sunau')
|
||||||
|
standard_library.remove('telnetlib')
|
||||||
|
standard_library.remove('uu')
|
||||||
|
standard_library.remove('xdrlib')
|
||||||
|
|
||||||
# Remove tkinter and Easter eggs
|
# Remove tkinter and Easter eggs
|
||||||
excluded_modules = [
|
excluded_modules = [
|
||||||
'antigravity',
|
'antigravity',
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue