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
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.
13 # This file was automatically generated using the following command:
14 # $WS_TOOLS/python-integrate-project -d python/ansible-core ansible_core
17 BUILD_STYLE
= pyproject
19 include ..
/..
/..
/make-rules
/shared-macros.mk
21 COMPONENT_NAME
= ansible_core
22 HUMAN_VERSION
= 2.15.12
23 COMPONENT_SUMMARY
= Radically simple IT automation
24 COMPONENT_PROJECT_URL
= https
://ansible.com
/
25 COMPONENT_ARCHIVE_HASH
= \
26 sha256
:5fde82cd3928d9857ad880782c644f27d3168b0f25321d5a8d6befa524aa1818
27 COMPONENT_LICENSE
= GPL-3.0
-only
28 COMPONENT_LICENSE_FILE
= COPYING
30 # ansible-core >= 2.14.0 requires Python >= 3.9
31 UNSUPPORTED_PYTHON_VERSIONS
=
32 PYTHON_VERSIONS
:= $(filter-out $(UNSUPPORTED_PYTHON_VERSIONS
), $(PYTHON_VERSIONS
))
34 # ansible-core use custom testing (see below)
37 include $(WS_MAKE_RULES
)/common.mk
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
)
43 # https://docs.ansible.com/ansible/latest/dev_guide/testing_running_locally.html#testing-ansible-core
44 COMPONENT_TEST_CMD
= bin
/ansible-test
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
=
54 # This project does not support tox so we need to provide test requirements
56 TEST_REQUIREMENTS
+= test/lib
/ansible_test
/_data
/requirements
/units.txt
58 # testing fails without HOME environment variable
59 COMPONENT_TEST_ENV
+= HOME
=/tmp
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
= \
66 | $(COMPONENT_TEST_TRANSFORMER) \
67 -e 's/^\[gw.\] \[...%\] //' \
68 -e 's/\([^ ]\{1,\}\) \(.*\)$$/\2 \1/' \
69 -e 's/\(test_distribution_version\[stdin\)[0-9]*/\1/' \
70 -e 's|$(@D)|\$$(@D)|g' \
72 | $(COMPONENT_TEST_TRANSFORMER) -e ''"
74 # Auto-generated dependencies
75 PYTHON_REQUIRED_PACKAGES
+= library
/python
/cryptography
76 PYTHON_REQUIRED_PACKAGES
+= library
/python
/importlib-resources
77 PYTHON_REQUIRED_PACKAGES
+= library
/python
/jinja2
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
84 TEST_REQUIRED_PACKAGES.python
+= library
/python
/mock
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