| 1 | #! /usr/bin/make -f |
| 2 | # |
| 3 | # debian/rules |
| 4 | # Part of Debian ‘towncrier’ package. |
| 5 | # |
| 6 | # This is free software, and you are welcome to redistribute it under |
| 7 | # certain conditions; see the end of this file for copyright |
| 8 | # information, grant of license, and disclaimer of warranty. |
| 9 | |
| 10 | PACKAGE_NAME = towncrier |
| 11 | |
| 12 | MAIN_PYTHON_PACKAGE = towncrier |
| 13 | |
| 14 | # Send HTTP traffic to the “discard” service during packaging actions. |
| 15 | export http_proxy = http://127.0.1.1:9/ |
| 16 | export https_proxy = ${http_proxy} |
| 17 | |
| 18 | export PYBUILD_SYSTEM := pyproject |
| 19 | |
| 20 | export PYBUILD_INSTALL_ARGS ?= \ |
| 21 | --install-option="--install-layout=deb" |
| 22 | |
| 23 | export PYBUILD_TEST_ARGS = "{dir}"/src/ |
| 24 | |
| 25 | # Twisted Trial creates temporary Python modules and doesn't clean up. |
| 26 | twisted_trial_cruft = ${MAIN_PYTHON_PACKAGE}.test.* |
| 27 | export PYBUILD_AFTER_TEST = rm -r "{build_dir}"/${twisted_trial_cruft} |
| 28 | |
| 29 | |
| 30 | %: |
| 31 | dh $@ --with python3 --buildsystem=pybuild |
| 32 | |
| 33 | |
| 34 | override_dh_installchangelogs: |
| 35 | dh_installchangelogs NEWS.rst |
| 36 | |
| 37 | |
| 38 | # Copyright © 2010–2024 Ben Finney <[email protected]> |
| 39 | # |
| 40 | # This is free software: you may copy, modify, and/or distribute this work |
| 41 | # under the terms of the GNU General Public License as published by the |
| 42 | # Free Software Foundation; version 3 of that license or any later version. |
| 43 | # No warranty expressed or implied. |
| 44 | |
| 45 | |
| 46 | # Local variables: |
| 47 | # coding: utf-8 |
| 48 | # mode: gnumakefile |
| 49 | # End: |
| 50 | # vim: fileencoding=utf-8 filetype=make : |