Skip to content

Commit a6c53ec

Browse files
authored
Merge pull request #618 from mathoudebine/dev/python-3.13-compatibility
Add Python 3.13 support
2 parents bf5d364 + 09d1c4a commit a6c53ec

10 files changed

+13
-13
lines changed

.github/workflows/simple-program-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
python-version: ["3.8", "3.12"]
18+
python-version: ["3.8", "3.13"]
1919

2020
steps:
2121
- uses: actions/checkout@v4

.github/workflows/simple-program-macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
python-version: ["3.8", "3.12"]
18+
python-version: ["3.8", "3.13"]
1919

2020
steps:
2121
- uses: actions/checkout@v4

.github/workflows/simple-program-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
python-version: ["3.8", "3.12"]
18+
python-version: ["3.8", "3.13"]
1919

2020
steps:
2121
- uses: actions/checkout@v4

.github/workflows/system-monitor-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
python-version: ["3.8", "3.12"]
18+
python-version: ["3.8", "3.13"]
1919
theme: [ "3.5inchTheme2" ]
2020

2121
steps:

.github/workflows/system-monitor-macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
python-version: ["3.8", "3.12"]
18+
python-version: ["3.8", "3.13"]
1919
theme: [ "3.5inchTheme2" ]
2020

2121
steps:

.github/workflows/system-monitor-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
python-version: ["3.8", "3.12"]
18+
python-version: ["3.8", "3.13"]
1919
theme: [ "3.5inchTheme2" ]
2020

2121
steps:

.github/workflows/themes-screenshot-on-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010

1111
steps:
1212
- uses: actions/checkout@v4
13-
- name: Set up Python 3.10
13+
- name: Set up Python 3.x
1414
uses: actions/setup-python@v5
1515
with:
16-
python-version: "3.11"
16+
python-version: "3.13"
1717

1818
- name: Install dependencies
1919
run: |

.github/workflows/themes-screenshot-on-push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121

2222
steps:
2323
- uses: actions/checkout@v4
24-
- name: Set up Python 3.10
24+
- name: Set up Python 3.x
2525
uses: actions/setup-python@v5
2626
with:
27-
python-version: "3.11"
27+
python-version: "3.13"
2828

2929
- name: Install dependencies
3030
run: |

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This project is an open-source alternative software, NOT the original software p
99
* for other smart screens, contact your reseller
1010
---
1111

12-
![Linux](https://img.shields.io/badge/Linux-FCC624?style=for-the-badge&logo=linux&logoColor=black) ![Windows](https://img.shields.io/badge/Windows-0078D6?style=for-the-badge&logo=windows&logoColor=white) ![macOS](https://img.shields.io/badge/mac%20os-000000?style=for-the-badge&logo=apple&logoColor=white) ![Raspberry Pi](https://img.shields.io/badge/Raspberry%20Pi-A22846?style=for-the-badge&logo=Raspberry%20Pi&logoColor=white) ![Python](https://img.shields.io/badge/Python-3.8/3.12-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54) [![Licence](https://img.shields.io/github/license/mathoudebine/turing-smart-screen-python?style=for-the-badge)](./LICENSE)
12+
![Linux](https://img.shields.io/badge/Linux-FCC624?style=for-the-badge&logo=linux&logoColor=black) ![Windows](https://img.shields.io/badge/Windows-0078D6?style=for-the-badge&logo=windows&logoColor=white) ![macOS](https://img.shields.io/badge/mac%20os-000000?style=for-the-badge&logo=apple&logoColor=white) ![Raspberry Pi](https://img.shields.io/badge/Raspberry%20Pi-A22846?style=for-the-badge&logo=Raspberry%20Pi&logoColor=white) ![Python](https://img.shields.io/badge/Python-3.8/3.13-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54) [![Licence](https://img.shields.io/github/license/mathoudebine/turing-smart-screen-python?style=for-the-badge)](./LICENSE)
1313

1414

1515
A Python system monitor program and an abstraction library for **small IPS USB-C (UART) displays.**

library/stats.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,8 +476,8 @@ def stats(cls):
476476

477477
# GPU mem. total memory (M)
478478
gpu_mem_total_text_data = theme_gpu_data['MEMORY_TOTAL']['TEXT']
479-
if math.isnan(memory_used_mb):
480-
memory_used_mb = 0
479+
if math.isnan(total_memory_mb):
480+
total_memory_mb = 0
481481
if gpu_mem_total_text_data['SHOW']:
482482
logger.warning("Your GPU total memory capacity (M) is not supported yet")
483483
gpu_mem_total_text_data['SHOW'] = False

0 commit comments

Comments
 (0)