build(linux): fix deb packaging to build from repo root, add console script; bump v0.1.2
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
sshctl (0.1.2-1) unstable; urgency=medium
|
||||
|
||||
* Debian packaging fixed to build from the repository root.
|
||||
* wheel and deb artifacts now share the root build outputs (dist/, dist-deb/).
|
||||
* click declared as an explicit dependency (typer >= 0.26 vendors it).
|
||||
* uv and Python 3.13 CI toolchains resolved from a persistent host toolcache.
|
||||
|
||||
-- Amir Husayn Panahifar <ahp@panahifar.ir> Sat, 12 Sep 2026 01:00:00 +0330
|
||||
|
||||
sshctl (0.1.1-1) unstable; urgency=medium
|
||||
|
||||
* Bug-fix release: parser, configops, jump, CLI type hardening.
|
||||
|
||||
+19
-3
@@ -4,9 +4,25 @@
|
||||
dh $@ --with python3
|
||||
|
||||
override_dh_auto_clean:
|
||||
dh_auto_clean
|
||||
find . -name "__pycache__" -type d -exec rm -rf {} + 2>/dev/null || true
|
||||
rm -rf dist/ dist-deb/
|
||||
|
||||
override_dh_auto_build:
|
||||
@true
|
||||
|
||||
override_dh_auto_install:
|
||||
@true
|
||||
|
||||
override_dh_auto_test:
|
||||
python3 -m pytest tests/ --ignore=tests/__pycache__ -q || true
|
||||
python3 -m pytest --help >/dev/null 2>&1 && python3 -m pytest -q || true
|
||||
|
||||
override_dh_install:
|
||||
dh_install
|
||||
mkdir -p debian/sshctl/usr/bin
|
||||
printf '%s\n' \
|
||||
'#!/usr/bin/python3' \
|
||||
'import sys' \
|
||||
'from sshctl.cli.app import serve' \
|
||||
'if __name__ == "__main__":' \
|
||||
' sys.exit(serve())' \
|
||||
> debian/sshctl/usr/bin/sshctl
|
||||
chmod 755 debian/sshctl/usr/bin/sshctl
|
||||
Reference in New Issue
Block a user