Andreas Wacknitz
2024-03-26 5289b57b9e7e1beae0b0d33715b8b899692f9ac4
commit | author | age
f67cd3 1 #
MT 2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
6 #
7 # A full copy of the text of the CDDL should have accompanied this
8 # source.  A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
10 #
11
12 #
13 # This file was automatically generated using the following command:
14 #   $WS_TOOLS/python-integrate-project ansible-core
15 #
16
17 BUILD_STYLE = pyproject
18
19 include ../../../make-rules/shared-macros.mk
20
21 COMPONENT_NAME =        ansible-core
4ad85f 22 HUMAN_VERSION =            2.15.9
f67cd3 23 COMPONENT_SUMMARY =        ansible-core - Radically simple IT automation
MT 24 COMPONENT_PROJECT_URL =        https://ansible.com/
25 COMPONENT_ARCHIVE_URL =        \
4ad85f 26     https://files.pythonhosted.org/packages/47/0b/5e46aeee6c72adc3507d9909e57fa1e9a66b3f4929c463bdbe102441a062/ansible-core-2.15.9.tar.gz
f67cd3 27 COMPONENT_ARCHIVE_HASH =    \
4ad85f 28     sha256:25f9b1b5a5af3c0986bd3928ed086eaddb867527fb5c83afef1a03cfad34f345
f67cd3 29 COMPONENT_LICENSE =        GPL-3.0-only
MT 30 COMPONENT_LICENSE_FILE =    COPYING
31
32 # ansible-core >= 2.14.0 requires Python >= 3.9
9cfccb 33 UNSUPPORTED_PYTHON_VERSIONS =
f67cd3 34 PYTHON_VERSIONS := $(filter-out $(UNSUPPORTED_PYTHON_VERSIONS), $(PYTHON_VERSIONS))
MT 35
36 # ansible-core use custom testing (see below)
37 TEST_STYLE = custom
38
39 include $(WS_MAKE_RULES)/common.mk
40
41 # Make sure the unversioned generic package depends on unsupported versioned package(s) too.
42 $(BUILD_DIR)/mkgeneric-python:    PYTHON_VERSIONS := $(UNSUPPORTED_PYTHON_VERSIONS) $(PYTHON_VERSIONS)
43
44 # custom testing
45 # https://docs.ansible.com/ansible/latest/dev_guide/testing_running_locally.html#testing-ansible-core
46 COMPONENT_TEST_CMD = bin/ansible-test
47 COMPONENT_TEST_ARGS =
48 COMPONENT_TEST_ARGS += units
49 COMPONENT_TEST_ARGS += --python $(PYTHON_VERSION)
50 COMPONENT_TEST_ARGS += --python-interpreter $(PYTHON)
51 COMPONENT_TEST_ARGS += --local
52 COMPONENT_TEST_ARGS += --color no
53 COMPONENT_TEST_ARGS += --verbose
54 COMPONENT_TEST_TARGETS =
55
56 # testing fails without HOME environment variable
57 COMPONENT_TEST_ENV += HOME=/tmp
58
59 # The ansible-test is running pytest several times in a row with pytest-xdist
60 # plugin enabled.  This is hard to normalize properly, so we just pick most
61 # important lines from the test log and normalize them.
62 COMPONENT_TEST_TRANSFORMS = \
63     "-n -e '/^\[gw/p' \
64     | $(COMPONENT_TEST_TRANSFORMER) \
65         -e 's/^\[gw.\] \[...%\] //' \
66         -e 's/\([^ ]\{1,\}\) \(.*\)$$/\2 \1/' \
67         -e 's/\(test_distribution_version\[stdin\)[0-9]*/\1/' \
30ca6b 68         -e 's|$(@D)|\$$(@D)|g' \
f67cd3 69     | $(SORT) \
MT 70     | $(COMPONENT_TEST_TRANSFORMER) -e ''"
71
72 # Auto-generated dependencies
73 PYTHON_REQUIRED_PACKAGES += library/python/cryptography
16bdf3 74 PYTHON_REQUIRED_PACKAGES += library/python/importlib-resources
f67cd3 75 PYTHON_REQUIRED_PACKAGES += library/python/jinja2
MT 76 PYTHON_REQUIRED_PACKAGES += library/python/packaging
77 PYTHON_REQUIRED_PACKAGES += library/python/pyyaml
78 PYTHON_REQUIRED_PACKAGES += library/python/resolvelib
79 PYTHON_REQUIRED_PACKAGES += library/python/setuptools
80 PYTHON_REQUIRED_PACKAGES += library/python/wheel
81 PYTHON_REQUIRED_PACKAGES += runtime/python