#!/bin/bash set -x set -euo pipefail echo "debian python tooling not working for packaging pypi" exit 1 # sudo apt update # sudo apt install -y cookiecutter git devscripts jq # Check dependencies for cmd in cookiecutter git jq uscan; do if ! command -v "$cmd" &>/dev/null; then echo "Error: $cmd is not installed." exit 1 fi done # Package details (modify as needed) PACKAGE_OWNER="elParaguayo" PACKAGE_NAME="qtile-extras" BUILD_DIR="/var/tmp/build_${PACKAGE_NAME}" UPSTREAM_REPO="https://github.com/${PACKAGE_OWNER}/${PACKAGE_NAME}" DEBIANIZED_MOLD_REPO="https://github.com/Springerle/debianized-pypi-mold.git" OUTPUT_DIR="${PACKAGE_NAME}-debian" SRC_DIR="${BUILD_DIR}/${OUTPUT_DIR}/${PACKAGE_NAME}" VERSION=$(curl -s "https://pypi.org/pypi/${PACKAGE_NAME}/json" | jq -r '.info.version') # Create and enter build directory mkdir -p "${BUILD_DIR}" cd "${BUILD_DIR}" || exit 1 # Clone mold if missing if [ ! -d "debianized-pypi-mold" ]; then git clone "$DEBIANIZED_MOLD_REPO" fi conf_print_watch4() { cat <