Files
dgtlmoon 4298c52a7e
Build Debian Package / Build and Package changedetection.io (push) Has been cancelled
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Build distribution 📦 (push) Has been cancelled
ChangeDetection.io Container Build Test / test-container-build (push) Has been cancelled
ChangeDetection.io App Test / lint-code (push) Has been cancelled
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Test the built 📦 package works basically. (push) Has been cancelled
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to PyPI (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-10 (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-11 (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-12 (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-13 (push) Has been cancelled
initial WIP
2025-11-02 00:34:21 +01:00

38 lines
995 B
Makefile
Executable File

#!/usr/bin/make -f
# Debian rules file for changedetection.io
# This uses a Python virtual environment approach for isolated dependencies
export PYBUILD_NAME=changedetection.io
export DH_VERBOSE=1
# Use venv installation method
VENV_DIR = debian/changedetection.io/opt/changedetection
PYTHON = python3
%:
dh $@ --with python3 --buildsystem=pybuild
override_dh_auto_install:
# Create virtual environment
$(PYTHON) -m venv $(VENV_DIR)
# Install the package and dependencies into venv
$(VENV_DIR)/bin/pip install --upgrade pip setuptools wheel
$(VENV_DIR)/bin/pip install .
# Remove pip and setuptools to reduce size (optional)
# $(VENV_DIR)/bin/pip uninstall -y pip setuptools wheel
# Create wrapper script directory
install -d debian/changedetection.io/usr/bin
override_dh_auto_test:
# Skip tests during package build
# Tests can be run separately with pytest
@echo "Skipping tests during package build"
override_dh_auto_clean:
dh_auto_clean
rm -rf build dist *.egg-info