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
# export DH_VERBOSE=1
include /usr/share/dpkg/pkg-info.mk
export PYBUILD_SYSTEM=pyproject
export PYBUILD_NAME=keycloak
# this requires a Keycloak instance
export PYBUILD_TEST_ARGS=--ignore=tests/test_keycloak_admin.py --ignore=tests/test_keycloak_uma.py --ignore=tests/test_keycloak_openid.py
%:
dh $@ --buildsystem=pybuild
execute_after_dh_auto_clean:
sed -i -e "/^version =/c version = \"0.0.0\"" $(CURDIR)/pyproject.toml
execute_before_dh_auto_build:
sed -i -e "/^version =/c version = \"$(DEB_VERSION_UPSTREAM:+dfsg=)\"" $(CURDIR)/pyproject.toml
execute_after_dh_auto_install:
rm -f ${CURDIR}/debian/python3-keycloak/usr/lib/python3*/dist-packages/*.md ${CURDIR}/debian/python3-keycloak/usr/lib/python3*/dist-packages/LICENSE
override_dh_auto_test:
ifeq ($(filter nocheck,$(DEB_BUILD_PROFILES)),)
export KEYCLOAK_ADMIN=admin; export KEYCLOAK_ADMIN_PASSWORD=admin; export KEYCLOAK_HOST=localhost; export KEYCLOAK_PORT=8080; dh_auto_test
endif
override_dh_installchangelogs:
dh_installchangelogs CHANGELOG.md
|