Project restart

This commit is contained in:
2025-12-29 10:46:05 +01:00
commit 59d19cb48c
388 changed files with 48020 additions and 0 deletions

7
package/Testium.desktop Normal file
View File

@@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Name=Testium
Exec=testium
Icon=testium
Terminal=false
Categories=Utility;Automated test

View File

@@ -0,0 +1,85 @@
# appimage-builder recipe see https://appimage-builder.readthedocs.io for details
version: 1
script:
- echo "APP_VERSION={{APP_VERSION}}" >> $BUILDER_ENV
- rm -rf AppDir | true
# Make usr and icons dirs
- mkdir -p AppDir/usr/lib/python
- mkdir -p AppDir/usr/share/icons
- mkdir -p AppDir/usr/bin
# Copy the icon
- cp ../testium.png AppDir/usr/share/icons/
AppDir:
path: AppDir/
app_info:
id: testium
name: Testium
icon: testium
version: "{{APP_VERSION}}"
exec: usr/bin/python3
exec_args: -m testium $@
runtime:
env:
SEQUENCER_REV: '{{APP_VERSION}}'
PYTHONPATH: $APPDIR/usr/lib/python3.11/site-packages:$APPDIR/usr/lib/python3.11
QT_QPA_PLATFORM: xcb
path_mappings:
- /usr/share/matplotlib/mpl-data/matplotlibrc:$APPDIR/etc/matplotlibrc
apt:
arch: [amd64]
allow_unauthenticated: true
sources:
- sourceline: deb http://ftp.fr.debian.org/debian bookworm main non-free contrib
- sourceline: deb http://security.debian.org/debian-security bookworm-security
main contrib non-free
- sourceline: deb http://ftp.fr.debian.org/debian bookworm-updates main contrib
non-free
include:
- libxcb-cursor0
- python3
- python3-distutils
- python3-pkg-resources
exclude: []
files:
include: []
exclude:
- usr/share/man
- usr/share/doc/*/README.*
- usr/share/doc/*/changelog.*
- usr/share/doc/*/NEWS.*
- usr/share/doc/*/TODO.*
after_bundle: |
# Set python 3.11 env
export PYTHONHOME=$TARGET_APPDIR/usr
export PYTHONPATH=$TARGET_APPDIR/usr/lib/python3.11/site-packages:$TARGET_APPDIR/usr/lib/python3.11
export PATH=$TARGET_APPDIR/usr/bin:$PATH
# Set python 3.11 as default
ln -fs python3.11 $TARGET_APPDIR/usr/bin/python3
# Install pip
if [ ! -f "get-pip.py" ]; then curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py; fi
python3.11 get-pip.py --break-system-packages
# Install application dependencies in AppDir
python3.11 -m pip install --break-system-packages --upgrade --isolated --no-input --ignore-installed --prefix=$TARGET_APPDIR/usr -r requirements.txt
export PIP_CONFIG_FILE=$HOME/.pip/pip.conf
python3.11 -m pip install --break-system-packages --upgrade --isolated --no-input --ignore-installed --prefix=$TARGET_APPDIR/usr ../../src/dist/testium-{{APP_VERSION}}-py3-none-any.whl
AppImage:
arch: x86_64
update-information: guess

12
package/appimage/build.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/bash
export APP_VERSION=$(<../../src/VERSION)
appimage-builder --recipe AppImageBuilder.yml
RESULT=$?
if [ -n "$1" ] && [ "$1" = "install" ]; then
if [ $RESULT -eq 0 ]; then
install -v "testium-${APP_VERSION}-x86_64.AppImage" "${HOME}/.local/bin/testium"
fi
fi

View File

@@ -0,0 +1,3 @@
tables
pandas
scapy

16
package/pyinstaller/build.sh Executable file
View File

@@ -0,0 +1,16 @@
#! /bin/env sh
SCRIPT_DIR=$(realpath $( dirname "$0"))
rm -r "${SCRIPT_DIR}/build" "${SCRIPT_DIR}/dist"
pwd=$(pwd)
cd ${SCRIPT_DIR}
pyinstaller testium.spec
RESULT=$?
if [ -n "$1" ] && [ "$1" = "install" ]; then
if [ $RESULT -eq 0 ]; then
install -v "dist/testium" "${HOME}/.local/bin/"
fi
fi
cd $pwd

View File

@@ -0,0 +1,58 @@
# -*- mode: python ; coding: utf-8 -*-
a = Analysis(
['../../src/testium/__main__.py'],
pathex=['../../src/testium',
'../../src/testium/main_win/resources'],
binaries=[],
datas=[ ('../../src/VERSION', '.')],
hiddenimports=["git",
"interpreter",
"main_win",
"libs",
"libs.console",
"libs.termconsole",
"libs.console_ssh",
"libs.raw_tcp_console",
"libs.runtime_plot",
"matplotlib.backends.backend_pdf",
"telnetlib3",
"serial",
"yaml",
"pexpect",
"jinja2",
"colorama",
"matplotlib",
"junit_xml",
"lxml",
"tables",
"pandas",],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name='testium',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)

BIN
package/testium.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB