Skip to content

Commit 8ef5c1a

Browse files
committed
Merge branch 'main' into signal-register-init
2 parents 4f6526a + 26b127f commit 8ef5c1a

196 files changed

Lines changed: 3866 additions & 684 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/testing.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ on:
1212

1313
jobs:
1414
test-autogen:
15+
name: Test AutoGen Code
1516
runs-on: self-hosted
1617
steps:
1718
- uses: actions/checkout@v4
1819
with:
1920
ref: ${{ github.sha }}
20-
- run: |
21+
- name: Check Autogen Code is up to dated
22+
run: |
2123
PYTHONPATH=libs/pyTermTk tools/autogenForwarded.py --apply
2224
if [[ $(git status --porcelain) ]] ; then
2325
git diff
@@ -29,14 +31,15 @@ jobs:
2931
echo "✅ - Release Clean"
3032
fi
3133
32-
build:
34+
test-pyTermTk:
35+
name: Test pyTermTk
3336
# runs-on: ubuntu-latest
3437
runs-on: self-hosted
3538

3639
strategy:
3740
fail-fast: false
3841
matrix:
39-
python-version: ['3.9', '3.10', '3.11', '3.12']
42+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
4043

4144
steps:
4245
- uses: actions/checkout@v3
@@ -64,7 +67,12 @@ jobs:
6467
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
6568
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
6669
67-
- name: Test with pytest
70+
- name: pytest
71+
run: |
72+
DDDD=$(pwd)
73+
pytest ${DDDD}/tests/pytest
74+
75+
- name: Dumb Smoke Test
6876
run: |
6977
# To fix a folder permissin issue let's try to run the test from /tmp
7078
DDDD=$(pwd)
@@ -75,5 +83,4 @@ jobs:
7583
wget -O tmp/test.input.001.bin https://github.com/ceccopierangiolieugenio/binaryRepo/raw/master/pyTermTk/tests/test.input.001.bin
7684
wget -O tmp/test.input.002.bin https://github.com/ceccopierangiolieugenio/binaryRepo/raw/master/pyTermTk/tests/test.input.002.bin
7785
wget -O tmp/test.input.003.bin https://github.com/ceccopierangiolieugenio/binaryRepo/raw/master/pyTermTk/tests/test.input.003.bin
78-
pytest ${DDDD}/tests/pytest
7986
pytest ${DDDD}/tests/pytest/run_*

.vscode/settings.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
"python.testing.unittestEnabled": false,
77
"python.testing.pytestEnabled": true,
88
"mypy-type-checker.args": [
9-
"--config-file=pyproject.toml"
9+
"--config-file=libs/pyTermTk/pyproject.toml"
1010
],
1111
"python.analysis.extraPaths": [
12-
"./libs/pyTermTk",
12+
"libs/pyTermTk",
13+
"apps/",
1314
]
1415
}

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,14 @@ test: .venv
133133
# tests/pytest/test_001_demo.py -r test.input.bin
134134
# Play the test stream
135135
# tests/pytest/test_001_demo.py -p test.input.bin
136-
mkdir -p tmp
137-
wget -O tmp/test.input.001.bin https://github.com/ceccopierangiolieugenio/binaryRepo/raw/master/pyTermTk/tests/test.input.001.bin
138-
wget -O tmp/test.input.002.bin https://github.com/ceccopierangiolieugenio/binaryRepo/raw/master/pyTermTk/tests/test.input.002.bin
139-
wget -O tmp/test.input.003.bin https://github.com/ceccopierangiolieugenio/binaryRepo/raw/master/pyTermTk/tests/test.input.003.bin
140136
tools/check.import.sh
141137
. .venv/bin/activate ; \
142138
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude .venv,build,tmp,experiments ;
143139
. .venv/bin/activate ; \
144140
pytest tests/pytest
141+
mkdir -p tmp
142+
wget -O tmp/test.input.001.bin https://github.com/ceccopierangiolieugenio/binaryRepo/raw/master/pyTermTk/tests/test.input.001.bin
143+
wget -O tmp/test.input.002.bin https://github.com/ceccopierangiolieugenio/binaryRepo/raw/master/pyTermTk/tests/test.input.002.bin
144+
wget -O tmp/test.input.003.bin https://github.com/ceccopierangiolieugenio/binaryRepo/raw/master/pyTermTk/tests/test.input.003.bin
145145
. .venv/bin/activate ; \
146146
pytest tests/pytest/run_*

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ Unravel your inner artist with [The Terminal ASCII Photoshop](https://ceccopiera
6969
```bash
7070
pip3 install --upgrade pyTermTk
7171
```
72-
72+
Install from the dev branch:
73+
```bash
74+
pip install --upgrade git+https://github.com/ceccopierangiolieugenio/pyTermTk.git#subdirectory=libs/pyTermTk
75+
```
7376
## Quick Test/Try - no install required
7477

7578
#### Clone

apps/dumbPaintTool/dumbPaintTool/app/paintarea.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def __init__(self, *args, **kwargs):
5757
super().__init__(*args, **kwargs)
5858
self.setTrans(ttk.TTkColor.bg('#FF00FF'))
5959
self.resizeCanvas(*glbls.documentSize)
60-
self.setFocusPolicy(ttk.TTkK.ClickFocus + ttk.TTkK.TabFocus)
60+
self.setFocusPolicy(ttk.TTkK.ClickFocus | ttk.TTkK.TabFocus)
6161

6262
glbls.brush.toolTypeChanged.connect(self.setTool)
6363
glbls.brush.areaChanged.connect( self.setAreaBrush)

apps/dumbPaintTool/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# SOFTWARE.
2323

2424
import sys,os
25-
sys.path.append(os.path.join(sys.path[0],'../../'))
25+
sys.path.append(os.path.join(sys.path[0],'../../libs/pyTermTk'))
2626

2727
from dumbPaintTool.app import main
2828

apps/perspectivator/perspectivator.pil.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
from PIL import Image, ImageDraw, ImageFilter, ImageChops, ImageOps
3535

36-
sys.path.append(os.path.join(sys.path[0],'../..'))
36+
sys.path.append(os.path.join(sys.path[0],'../../libs/pyTermTk'))
3737

3838
import TermTk as ttk
3939

apps/ttkDesigner/ttkDesigner/app/menuBarEditor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def __init__(self, menuButton, designer, **kwargs):
172172
super().__init__(**kwargs)
173173
self.layout().addWidget(self._btnAddSpacer)
174174
self.layout().addWidget(self._btnAddMenu )
175-
self.setFocusPolicy(ttk.TTkK.ClickFocus + ttk.TTkK.TabFocus)
175+
self.setFocusPolicy(ttk.TTkK.ClickFocus | ttk.TTkK.TabFocus)
176176
self.viewChanged.connect(self._viewChangedHandler)
177177
self._btnAddSpacer.clicked.connect(self.addSpacer)
178178
self._btnAddMenu.clicked.connect(self.addMenu)

demo/games/breakout/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import sys, os, math
2626
from dataclasses import dataclass
2727

28-
sys.path.append(os.path.join(sys.path[0],'../../..'))
28+
sys.path.append(os.path.join(sys.path[0],'../../../libs/pyTermTk'))
2929
import TermTk as ttk
3030

3131
@dataclass

demo/games/breakoutrl/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import sys, os
2626
from random import randint
2727

28-
sys.path.append(os.path.join(sys.path[0],'../../..'))
28+
sys.path.append(os.path.join(sys.path[0],'../../../libs/pyTermTk'))
2929
import TermTk as ttk
3030

3131
from bolib import *

0 commit comments

Comments
 (0)