Marcel Telka
2024-03-28 22f007a7e50fb2b0264244eb98ffb733ed55afd9
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
22f007 22 HUMAN_VERSION =            2.15.10
f67cd3 23 COMPONENT_SUMMARY =        ansible-core - Radically simple IT automation
MT 24 COMPONENT_PROJECT_URL =        https://ansible.com/
25 COMPONENT_ARCHIVE_HASH =    \
22f007 26     sha256:954dbe8e4e802a4dd5df0366193975b692a05806aa8d7358418a7e617346b20f
f67cd3 27 COMPONENT_LICENSE =        GPL-3.0-only
MT 28 COMPONENT_LICENSE_FILE =    COPYING
29
30 # ansible-core >= 2.14.0 requires Python >= 3.9
9cfccb 31 UNSUPPORTED_PYTHON_VERSIONS =
f67cd3 32 PYTHON_VERSIONS := $(filter-out $(UNSUPPORTED_PYTHON_VERSIONS), $(PYTHON_VERSIONS))
MT 33
34 # ansible-core use custom testing (see below)
35 TEST_STYLE = custom
36
37 include $(WS_MAKE_RULES)/common.mk
38
39 # Make sure the unversioned generic package depends on unsupported versioned package(s) too.
40 $(BUILD_DIR)/mkgeneric-python:    PYTHON_VERSIONS := $(UNSUPPORTED_PYTHON_VERSIONS) $(PYTHON_VERSIONS)
41
42 # custom testing
43 # https://docs.ansible.com/ansible/latest/dev_guide/testing_running_locally.html#testing-ansible-core
44 COMPONENT_TEST_CMD = bin/ansible-test
45 COMPONENT_TEST_ARGS =
46 COMPONENT_TEST_ARGS += units
47 COMPONENT_TEST_ARGS += --python $(PYTHON_VERSION)
48 COMPONENT_TEST_ARGS += --python-interpreter $(PYTHON)
49 COMPONENT_TEST_ARGS += --local
50 COMPONENT_TEST_ARGS += --color no
51 COMPONENT_TEST_ARGS += --verbose
52 COMPONENT_TEST_TARGETS =
53
22f007 54 # This project does not support tox so we need to provide test requirements
MT 55 # manually.
56 TEST_REQUIREMENTS += test/lib/ansible_test/_data/requirements/units.txt
57
f67cd3 58 # testing fails without HOME environment variable
MT 59 COMPONENT_TEST_ENV += HOME=/tmp
60
61 # The ansible-test is running pytest several times in a row with pytest-xdist
62 # plugin enabled.  This is hard to normalize properly, so we just pick most
63 # important lines from the test log and normalize them.
64 COMPONENT_TEST_TRANSFORMS = \
65     "-n -e '/^\[gw/p' \
66     | $(COMPONENT_TEST_TRANSFORMER) \
67         -e 's/^\[gw.\] \[...%\] //' \
68         -e 's/\([^ ]\{1,\}\) \(.*\)$$/\2 \1/' \
69         -e 's/\(test_distribution_version\[stdin\)[0-9]*/\1/' \
30ca6b 70         -e 's|$(@D)|\$$(@D)|g' \
f67cd3 71     | $(SORT) \
MT 72     | $(COMPONENT_TEST_TRANSFORMER) -e ''"
73
74 # Auto-generated dependencies
75 PYTHON_REQUIRED_PACKAGES += library/python/cryptography
16bdf3 76 PYTHON_REQUIRED_PACKAGES += library/python/importlib-resources
f67cd3 77 PYTHON_REQUIRED_PACKAGES += library/python/jinja2
MT 78 PYTHON_REQUIRED_PACKAGES += library/python/packaging
79 PYTHON_REQUIRED_PACKAGES += library/python/pyyaml
80 PYTHON_REQUIRED_PACKAGES += library/python/resolvelib
81 PYTHON_REQUIRED_PACKAGES += library/python/setuptools
82 PYTHON_REQUIRED_PACKAGES += library/python/wheel
83 PYTHON_REQUIRED_PACKAGES += runtime/python
22f007 84 TEST_REQUIRED_PACKAGES.python += library/python/mock
MT 85 TEST_REQUIRED_PACKAGES.python += library/python/pytest
86 TEST_REQUIRED_PACKAGES.python += library/python/pytest-forked
87 TEST_REQUIRED_PACKAGES.python += library/python/pytest-mock
88 TEST_REQUIRED_PACKAGES.python += library/python/pytest-xdist
89 TEST_REQUIRED_PACKAGES.python += library/python/pyyaml