File: rules

package info (click to toggle)
poetry 1.3.2%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,344 kB
  • sloc: python: 40,617; makefile: 66; sh: 7
file content (78 lines) | stat: -rwxr-xr-x 4,113 bytes parent folder | download
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/usr/bin/make -f
# export DH_VERBOSE = 1

export PYBUILD_NAME=poetry

# use especific python versions (3.6, 3.7) so ignore them
export PYBUILD_TEST_ARGS=--ignore=tests/console/commands/env/test_list.py \
			--ignore=tests/console/commands/env/test_remove.py \
			--ignore=tests/console/commands/env/test_use.py \
			--ignore=tests/utils/test_env.py \
			--ignore=tests/config/test_config.py \
			--ignore=tests/utils/test_helpers.py \
			-k 'not test_self_update_should_install_all_necessary_elements \
			and not test_add_file_constraint_sdist \
			and not test_add_file_constraint_sdist_old_installer \
			and not test_publish_dry_run \
			and not test_info_from_sdist \
			and not test_installer_can_install_dependencies_from_forced_source \
			and not test_search_for_file_sdist \
			and not test_search_for_file_sdist_with_extras \
			and not test_solver_can_resolve_sdist_dependencies \
			and not test_solver_can_resolve_sdist_dependencies_with_extras \
			and not test_solver_chooses_from_correct_repository_if_forced \
			and not test_solver_chooses_from_correct_repository_if_forced_and_transitive_dependency \
			and not test_solver_does_not_choose_from_secondary_repository_by_default \
			and not test_solver_chooses_from_secondary_if_explicit \
			and not test_get_package_information_fallback_read_setup \
			and not test_get_package_information_skips_dependencies_with_invalid_constraints \
			and not test_get_package_retrieves_packages_with_no_hashes \
			and not test_fallback_can_read_setup_to_get_dependencies \
			and not test_exporter_can_export_requirements_txt_with_file_packages \
			and not test_exporter_can_export_requirements_txt_with_file_packages_and_markers \
			and not test_lock_no_update \
			and not test_locker_dumps_dependency_information_correctly \
			and not test_package_partial_yank \
			and not test_run_installs_with_same_version_url_files \
			and not test_env_info_displays_complete_info \
			and not test_skip_existing_output \
			and not test_installer_should_use_the_locked_version_of_git_dependencies_with_extras \
			and not test_installer_should_use_the_locked_version_of_git_dependencies_without_reference \
			and not test_installer_uses_prereleases_if_they_are_compatible \
			and not test_requirement_git_subdirectory \
			and not test_check_valid \
			and not test_check_invalid \
			and not test_packages_property_returns_empty_list \
			and not test_parse_dependency_specification \
			and not test_info_setup_missing_mandatory_should_trigger_pep517 \
			and not test_uninstall_git_package_nspkg_pth_cleanup \
			and not test_executor_should_write_pep610_url_references_for_directories \
			and not test_executor_should_write_pep610_url_references_for_git \
			and not test_executor_should_write_pep610_url_references_for_git_with_subdirectories'

export http_proxy=
export https_proxy=

# DESTDIR export variable is used hereunder in execute_after_dh_auto_install
export DESTDIR=$(CURDIR)/debian/python3-poetry
PYVERS := $(shell py3versions -sv)


%:
	dh $@ --with python3 --buildsystem=pybuild


execute_after_dh_install:
	set -e ; for pyver in $(PYVERS); do \
		rm -rf $(DESTDIR)/usr/lib/python$$pyver/dist-packages/foo/ ;\
		rm $(DESTDIR)/usr/lib/python$$pyver/dist-packages/poetry/_vendor/.gitignore ;\
	        chmod -x $(DESTDIR)/usr/lib/python$$pyver/dist-packages/poetry/factory.py ;\
		chmod -x $(DESTDIR)/usr/lib/python$$pyver/dist-packages/poetry/mixology/partial_solution.py ;\
		chmod -x $(DESTDIR)/usr/lib/python$$pyver/dist-packages/poetry/mixology/term.py ;\
		chmod -x $(DESTDIR)/usr/lib/python$$pyver/dist-packages/poetry/mixology/version_solver.py ;\
		chmod -x $(DESTDIR)/usr/lib/python$$pyver/dist-packages/poetry/puzzle/provider.py ;\
		chmod -x $(DESTDIR)/usr/lib/python$$pyver/dist-packages/poetry/repositories/legacy_repository.py ;\
		chmod -x $(DESTDIR)/usr/lib/python$$pyver/dist-packages/poetry/repositories/pool.py ;\
		chmod -x $(DESTDIR)/usr/lib/python$$pyver/dist-packages/poetry/repositories/pypi_repository.py ;\
		chmod -x $(DESTDIR)/usr/lib/python$$pyver/dist-packages/poetry/repositories/repository.py ;\
	done