From 1fa129e2a3572542cc22452588dae4eaeca4c263 Mon Sep 17 00:00:00 2001 From: Eugenio Parodi Date: Thu, 25 Aug 2022 18:47:42 +0100 Subject: [PATCH] Refined here and there --- Makefile | 12 +++++++++++- README.md | 4 ++-- tests/sandbox/Makefile | 5 ++++- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 0a8cceb8..dcbcfbc9 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: doc runGittk runDemo build deploy buildTest deployTest +.PHONY: doc runGittk runDemo build deploy buildTest deployTest deploySandbox .venv: python3 -m venv .venv @@ -68,6 +68,16 @@ deployDoc: git push origin gh-pages git checkout main +deploySandbox: + cp -a tests/sandbox tmp/ + + git checkout gh-pages + cp tmp/sandbox/*.html sandbox + + git commit -m "Sandbox Updated" + git push origin gh-pages + git checkout main + deployTest: .venv . .venv/bin/activate ; \ python3 -m twine upload --repository testpypi tmp/dist/* --verbose diff --git a/README.md b/README.md index edfc49e0..c3f64b7d 100644 --- a/README.md +++ b/README.md @@ -29,8 +29,8 @@ and inspired by a mix of [Qt5](https://www.riverbankcomputing.com/static/Docs/Py - The native **Windows** porting is not ready yet but it works with [Cygwin](https://www.cygwin.com) or **WSL**. - Only the key combinations forwarded by the terminal emulator used are detected (ALT,CTRL may not be handled) -## Try -[![screenshot](https://github.com/ceccopierangiolieugenio/binaryRepo/blob/master/pyTermTk/replit.pytermtk.banner.png?raw=true)](https://replit.com/@EugenioP/pyTermTk?v=1) +## Try the Sandbox +[![screenshot](https://github.com/ceccopierangiolieugenio/binaryRepo/blob/master/pyTermTk/replit.pytermtk.banner.png?raw=true)](https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html) ## [Tutorial](tutorial) Be inspired by the [tutorial examples](https://github.com/ceccopierangiolieugenio/pyTermTk/tree/main/tutorial) diff --git a/tests/sandbox/Makefile b/tests/sandbox/Makefile index cede7f93..8a0c37f9 100644 --- a/tests/sandbox/Makefile +++ b/tests/sandbox/Makefile @@ -31,6 +31,9 @@ www: buildSandbox: www rm -rf bin mkdir -p bin - find ../../TermTk/ -name "*.py" | sort | xargs tar cvzf bin/TermTk.tgz + + $( cd ../../ ; tools/prepareBuild.sh release ; ) + + find ../../tmp/TermTk/ -name "*.py" | sed 's,.*tmp/,,' | sort | xargs tar cvzf bin/TermTk.tgz -C ../../tmp find ../../tutorial -name "*.py" | sort | xargs tar cvzf bin/tutorial.tgz find ../../demo/paint.py ../../demo/ttkode.py ../../demo/demo.py ../../demo/showcase/*.* | sort | xargs tar cvzf bin/demo.tgz \ No newline at end of file