1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1
include /usr/share/dpkg/architecture.mk
export PYBUILD_NAME = mastodon
export https_proxy =
# Requires grapheme, which is not yet packaged in debian.
export PYBUILD_TEST_ARGS := --deselect tests/test_status_length.py
ifeq ($(DEB_HOST_ARCH),i386)
# These test scheduling posts for the year 2100, but the Debian i386
# architecture doesn't have 64-bit time support.
PYBUILD_TEST_ARGS += \
--deselect tests/test_entities.py::test_entity_scheduledstatus \
--deselect tests/test_entities.py::test_entity_scheduledstatusparams
endif
ifeq ($(DEB_HOST_ARCH),riscv64)
# Flaky, perhaps due to timing.
PYBUILD_TEST_ARGS += \
--deselect tests/test_streaming.py::test_stream_user_direct \
--deselect tests/test_streaming.py::test_stream_user_local
endif
%:
dh $@ --buildsystem=pybuild
|