Compare commits

..

2 Commits

Author SHA1 Message Date
github-actions[bot] 54c77b6778 Update versions-manifest (#325)
Co-authored-by: Service account <no-reply@microsoft.com>
2024-12-16 10:23:58 -06:00
HarithaVattikuti 87721c9ae3 Fix tkinter issues (#324) 2024-12-12 12:49:43 -06:00
5 changed files with 109 additions and 60 deletions
@@ -109,6 +109,10 @@ jobs:
with:
submodules: true
- name: Adding Symlink
if: matrix.os == 'macos-13'
run: ln -sf /usr/local/opt/tcl-tk@8 /usr/local/opt/tcl-tk
- name: Build Python ${{ env.VERSION }}
run: |
./builders/build-python.ps1 -Version $env:VERSION `
-44
View File
@@ -1,44 +0,0 @@
name: Test Python Tk
on:
push:
branches:
- tcl-tk
workflow_dispatch:
jobs:
tests-poetry:
strategy:
matrix:
os: [macos-13]
# python-version: ["3.8.10", "3.8.17", "3.9.1", "3.9.19", "3.9.19", "3.10.1", "3.10.14", "3.11.9"]
python-version: [ "3.10.16"]
fail-fast: false
name: ${{ matrix.python-version }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v5
# uses: priya-kinthali/setup-python@test-930
uses: priya-kinthali/setup-python@test-tcl
with:
python-version: ${{ matrix.python-version }}
# - name: Print Tcl/Tk version
# run: |
# tclsh <<< 'puts [info patchlevel]; exit'
# wish <<< 'puts [info patchlevel]; exit'
- name: Verify Python Tk Version
run: |
python -c "import tkinter; print(f'Tkinter TkVersion: {tkinter.TkVersion}')"
- name: Prepare Ubuntu xvfb
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libxkbcommon-x11-0 xvfb
- name: Run tk script (closes itself after 5 seconds) - Ubuntu
if: runner.os == 'Linux'
run: xvfb-run python tk_min.py
- name: Run tk script (closes itself after 5 seconds)
if: runner.os != 'Linux'
run: python tk_min.py
+2 -2
View File
@@ -80,9 +80,9 @@ class macOSPythonBuilder : NixPythonBuilder {
$env:CFLAGS = "-I/usr/local/opt/zlib/include"
}
if ($this.Version -lt "3.11.0") {
# if ($this.Version -gt "3.7.12") {
$configureString += " --with-tcltk-includes='-I /usr/local/opt/tcl-tk/include/tcl-tk' --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"
-7
View File
@@ -1,7 +0,0 @@
import tkinter as tk
root = tk.Tk()
label = tk.Label(root, text="Hello World!")
label.pack(padx=20, pady=20)
root.after(5000, root.destroy) # Close the Window after 5 seconds
root.mainloop()
+103 -7
View File
@@ -3759,6 +3759,54 @@
}
]
},
{
"version": "3.10.16",
"stable": true,
"release_url": "https://github.com/actions/python-versions/releases/tag/3.10.16-12302993382",
"files": [
{
"filename": "python-3.10.16-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.16-12302993382/python-3.10.16-darwin-x64.tar.gz"
},
{
"filename": "python-3.10.16-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.16-12302993382/python-3.10.16-linux-20.04-x64.tar.gz"
},
{
"filename": "python-3.10.16-linux-22.04-arm64.tar.gz",
"arch": "arm64",
"platform": "linux",
"platform_version": "22.04",
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.16-12302993382/python-3.10.16-linux-22.04-arm64.tar.gz"
},
{
"filename": "python-3.10.16-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.16-12302993382/python-3.10.16-linux-22.04-x64.tar.gz"
},
{
"filename": "python-3.10.16-linux-24.04-arm64.tar.gz",
"arch": "arm64",
"platform": "linux",
"platform_version": "24.04",
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.16-12302993382/python-3.10.16-linux-24.04-arm64.tar.gz"
},
{
"filename": "python-3.10.16-linux-24.04-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"platform_version": "24.04",
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.16-12302993382/python-3.10.16-linux-24.04-x64.tar.gz"
}
]
},
{
"version": "3.10.15",
"stable": true,
@@ -5212,6 +5260,54 @@
}
]
},
{
"version": "3.9.21",
"stable": true,
"release_url": "https://github.com/actions/python-versions/releases/tag/3.9.21-12303000710",
"files": [
{
"filename": "python-3.9.21-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/python-versions/releases/download/3.9.21-12303000710/python-3.9.21-darwin-x64.tar.gz"
},
{
"filename": "python-3.9.21-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.9.21-12303000710/python-3.9.21-linux-20.04-x64.tar.gz"
},
{
"filename": "python-3.9.21-linux-22.04-arm64.tar.gz",
"arch": "arm64",
"platform": "linux",
"platform_version": "22.04",
"download_url": "https://github.com/actions/python-versions/releases/download/3.9.21-12303000710/python-3.9.21-linux-22.04-arm64.tar.gz"
},
{
"filename": "python-3.9.21-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.9.21-12303000710/python-3.9.21-linux-22.04-x64.tar.gz"
},
{
"filename": "python-3.9.21-linux-24.04-arm64.tar.gz",
"arch": "arm64",
"platform": "linux",
"platform_version": "24.04",
"download_url": "https://github.com/actions/python-versions/releases/download/3.9.21-12303000710/python-3.9.21-linux-24.04-arm64.tar.gz"
},
{
"filename": "python-3.9.21-linux-24.04-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"platform_version": "24.04",
"download_url": "https://github.com/actions/python-versions/releases/download/3.9.21-12303000710/python-3.9.21-linux-24.04-x64.tar.gz"
}
]
},
{
"version": "3.9.20",
"stable": true,
@@ -6469,48 +6565,48 @@
{
"version": "3.8.18",
"stable": true,
"release_url": "https://github.com/actions/python-versions/releases/tag/3.8.18-9962543870",
"release_url": "https://github.com/actions/python-versions/releases/tag/3.8.18-12303122501",
"files": [
{
"filename": "python-3.8.18-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/python-versions/releases/download/3.8.18-9962543870/python-3.8.18-darwin-x64.tar.gz"
"download_url": "https://github.com/actions/python-versions/releases/download/3.8.18-12303122501/python-3.8.18-darwin-x64.tar.gz"
},
{
"filename": "python-3.8.18-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.18-9962543870/python-3.8.18-linux-20.04-x64.tar.gz"
"download_url": "https://github.com/actions/python-versions/releases/download/3.8.18-12303122501/python-3.8.18-linux-20.04-x64.tar.gz"
},
{
"filename": "python-3.8.18-linux-22.04-arm64.tar.gz",
"arch": "arm64",
"platform": "linux",
"platform_version": "22.04",
"download_url": "https://github.com/actions/python-versions/releases/download/3.8.18-9962543870/python-3.8.18-linux-22.04-arm64.tar.gz"
"download_url": "https://github.com/actions/python-versions/releases/download/3.8.18-12303122501/python-3.8.18-linux-22.04-arm64.tar.gz"
},
{
"filename": "python-3.8.18-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.18-9962543870/python-3.8.18-linux-22.04-x64.tar.gz"
"download_url": "https://github.com/actions/python-versions/releases/download/3.8.18-12303122501/python-3.8.18-linux-22.04-x64.tar.gz"
},
{
"filename": "python-3.8.18-linux-24.04-arm64.tar.gz",
"arch": "arm64",
"platform": "linux",
"platform_version": "24.04",
"download_url": "https://github.com/actions/python-versions/releases/download/3.8.18-9962543870/python-3.8.18-linux-24.04-arm64.tar.gz"
"download_url": "https://github.com/actions/python-versions/releases/download/3.8.18-12303122501/python-3.8.18-linux-24.04-arm64.tar.gz"
},
{
"filename": "python-3.8.18-linux-24.04-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"platform_version": "24.04",
"download_url": "https://github.com/actions/python-versions/releases/download/3.8.18-9962543870/python-3.8.18-linux-24.04-x64.tar.gz"
"download_url": "https://github.com/actions/python-versions/releases/download/3.8.18-12303122501/python-3.8.18-linux-24.04-x64.tar.gz"
}
]
},