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 30 31 32 33 34
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
include /usr/share/dpkg/pkg-info.mk
export PDM_BUILD_SCM_VERSION=$(shell dpkg-parsechangelog -S Version | cut -d- -f 1)
export PYBUILD_TEST_ARGS = -k 'not network \
and not test_conda_backend_create \
and not test_resolve_local_artifacts \
and not test_resolve_two_extras_from_the_same_package \
and not test_resolve_file_req_with_prerelease \
and not test_project_packages_path \
and not test_build_with_no_isolation \
and not test_find_candidates_from_find_links \
and not test_session_sources_all_proxy \
and not test_create_venv_in_project \
and not test_find_interpreters_with_PDM_IGNORE_ACTIVE_VENV \
and not test_run \
and not test_find_python'
%:
dh $@ --buildsystem=pybuild
override_dh_installchangelogs:
dh_installchangelogs -k CHANGELOG.md
execute_after_dh_python3:
# Drop .pdm.toml
rm -fv debian/*/usr/lib/python3/dist-packages/.pdm.toml
# Drop __pypackages__
rm -rfv debian/*/usr/lib/python3/dist-packages/__pypackages__
# Drop .pdm-python
rm -fv debian/*/usr/lib/python3/dist-packages/.pdm-python
|