Compare commits

..

138 commits

Author SHA1 Message Date
Fedora Release Engineering
99b9eaafbd Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-16 03:43:36 +00:00
Maxwell G
0d8611fc1b
Update to 2.20.1. Fixes rhbz#2382388.
- Update bundled() Provides
- Update License to GPL-3.0-or-later AND BSD-2-Clause AND BSD-3-Clause AND PSF-2.0 AND MIT AND Apache-2.0
- Remove upstreamed patches
- Remove old Provides and Obsoletes for ansible-base and Ansible <= 2.9
2025-12-11 17:38:12 -06:00
Maxwell G
b1149c15f6 packit: update stable branches 2025-11-17 22:04:58 -06:00
Packit
bbb03c2bb1 Update to 2.18.11 upstream release
Upstream tag: v2.18.11
Upstream commit: 932dc80f

Commit authored by Packit automation (https://packit.dev/)
2025-11-17 14:59:11 +00:00
Maxwell G
38bca2f841
Update to 2.18.9. 2025-09-27 02:13:26 -05:00
Python Maint
8919faacd5 Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 12:06:55 +02:00
Python Maint
d1ce53157f Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 12:38:08 +02:00
Fedora Release Engineering
24d3ca7b59 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 17:02:18 +00:00
Maxwell G
46821bd2bf
Update to 2.18.7. Fixes rhbz#2380244. 2025-07-16 14:06:20 -05:00
Maxwell G
f0b7fba103
Add initial support for Python 3.14 (rhbz#2366307) 2025-06-07 16:03:18 -05:00
Maxwell G
2140cacf0d
Update to 2.18.6. Fixes rhbz#2354908. 2025-06-07 01:51:20 -05:00
Python Maint
097797b333 Rebuilt for Python 3.14 2025-06-04 01:05:51 +02:00
Packit
4393c9cc08 Update to 2.18.4 upstream release
- Resolves: rhbz#2354908

Upstream tag: v2.18.4
Upstream commit: 06c507c0

Commit authored by Packit automation (https://packit.dev/)
2025-03-25 19:05:50 +00:00
Maxwell G
e07cd22941
packit: remove sync note 2025-03-16 21:26:40 -05:00
Packit
4f3593d370 Update to 2.18.3 upstream release
- Resolves: rhbz#2342365

Upstream tag: v2.18.3
Upstream commit: b9d76325

Commit authored by Packit automation (https://packit.dev/)
2025-03-17 02:16:58 +00:00
Maxwell G
1541de5363 packit: add upstream_tag_include 2025-03-17 02:14:28 +00:00
Maxwell G
67ee763e31 packit: add rawhide configuration 2025-03-17 02:14:28 +00:00
Miro Hrončok
4d318e99cc No longer BuildRequire python3-crypt-r, it is not used 2025-03-11 11:30:02 +01:00
Fedora Release Engineering
68783103c4 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-16 11:08:44 +00:00
Maxwell G
fe2a4316f3
Backport support for automatically installing python3-libdnf5
Resolves: https://bugzilla.redhat.com/2322751
2024-12-03 21:57:42 -06:00
Maxwell G
0071dba023
Reformat specfile 2024-12-03 21:46:50 -06:00
Maxwell G
2395935814
Update to 2.18.1. Fixes rhbz#2330005. 2024-12-03 21:41:56 -06:00
Maxwell G
a9a09d3ee1
Update to 2.18.0. Fixes rhbz#2282011. 2024-11-25 23:06:04 -06:00
Maxwell G
254e2fdd7f
Update to 2.16.12. 2024-10-10 19:59:42 -05:00
Maxwell G
6d9802f8cc
Update to 2.16.11. 2024-09-10 12:23:54 -05:00
Maxwell G
3f1424111d
Update to 2.16.10. 2024-08-13 11:37:16 -05:00
Maxwell G
a5c5662309 Update to 2.16.9. 2024-07-19 16:45:23 -05:00
Fedora Release Engineering
a19f61d2fd Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-17 17:04:53 +00:00
Maxwell G
8fca20130c
Update to 2.16.8. 2024-06-23 17:42:33 -05:00
Python Maint
b090e5c67a Rebuilt for Python 3.13 2024-06-09 12:02:40 +02:00
Maxwell G
e47bff80f7
Update to 2.16.7. 2024-06-04 14:15:18 -05:00
Miro Hrončok
7f2cec40bf Fix build with Python 3.13 2024-05-27 23:00:47 +02:00
Maxwell G
fcd2a59670
Revert "Update to 2.17.0~rc1."
This reverts commit 21e6d2cf86.
The update has some major breaking changes that need to be more
carefully handled.
2024-05-02 02:55:37 +00:00
Maxwell G
21e6d2cf86
Update to 2.17.0~rc1. 2024-05-02 02:10:01 +00:00
Maxwell G
b7689b3984
Update to 2.16.6. Fixes rhbz#2261507. 2024-04-16 18:56:28 +00:00
Maxwell G
3d878943c9
Update to 2.16.5. Fixes rhbz#2261507. 2024-03-29 10:59:58 +00:00
Maxwell G
b2387b93d1
Update to 2.16.4. Fixes rhbz#2261507. 2024-03-02 01:21:02 +00:00
Maxwell G
507d69e36e
Update to 2.16.3. Fixes rhbz#2261507. 2024-02-01 05:11:30 +00:00
Fedora Release Engineering
346abe7064 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-22 23:07:48 +00:00
Fedora Release Engineering
f96881eb51 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-19 13:03:23 +00:00
Maxwell G
6e04299ce9
Mitigate CVE-2024-0690. 2024-01-18 23:58:16 +00:00
Maxwell G
4050056a1b
Update to 2.16.2. Fixes rhbz#2254093. 2023-12-11 22:53:21 +00:00
Maxwell G
84bbf6cc64
Update to 2.16.1. Fixes rhbz#2252860. 2023-12-06 04:50:16 +00:00
Maxwell G
2398cc2533
Update to 2.16.0. Fixes rhbz#2248187. 2023-11-10 17:32:38 -06:00
Maxwell G
1460e52f18
Update to 2.16.0~rc1. 2023-10-18 22:54:47 -05:00
Maxwell G
b05ac2e918
Remove unnecessary dependency on /usr/bin/python
The test no longer uses /usr/bin/python.
2023-10-03 21:10:12 +00:00
Maxwell G
f5cdc27aaf
Update to 2.16.0~b2. 2023-10-03 16:08:51 -05:00
Miro Hrončok
2c2807aa78 Do not use tomcli in Fedora ELN, avoid pulling unwanted dependencies
tomcli depends on typer which requires a lot (namely click -> tox).
2023-10-02 18:20:52 +02:00
Maxwell G
5d3f9a536c
Add copyright headers 2023-09-30 22:33:37 +00:00
Maxwell G
27968f0c93
Update to 2.16.0~b1. 2023-09-28 22:49:48 +00:00
Kevin Fenzi
37644b67ea Add patch to fix readfp with python-3.12. Fixes rhbz#2239728 2023-09-26 16:46:41 -07:00
Maxwell G
b5d5e2a14b
Update to 2.15.4. Fixes rhbz#2238445. 2023-09-11 18:20:32 -05:00
Maxwell G
8d01926207
Rebase patches and remove upstreamed ones
Relates: https://github.com/ansible/ansible/pull/81395
2023-08-18 03:33:46 +00:00
Maxwell G
66164773e0
Handle new upstream manpage building method 2023-08-18 00:17:06 +00:00
Maxwell G
3d8a45c735
Use example files from ansible-documentation repo 2023-08-17 23:32:48 +00:00
Maxwell G
1a184e1acd
Update to 2.15.3. Fixes rhbz#2231963. 2023-08-17 18:31:48 -05:00
Fedora Release Engineering
8191e26adf Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-19 13:21:38 +00:00
Maxwell G
b34a65757b
Use the docs sources from ansible-documentation 2023-07-18 14:16:26 +00:00
Maxwell G
937593320f
Update to 2.15.2. Fixes rhbz#2223469.
- Remove upstreamed patch
2023-07-18 03:51:13 +00:00
Maxwell G
dd52b653b0
Fix %{python3_version} conditional
If %{python3_version} expands to an empty string (this can happen when python3-rpm-macros
is installed but %__python3 is not), specfile parsing will fail.
2023-07-10 19:38:48 +00:00
Maxwell G
805bd2623b
Always apply remove deprecated client key calls patch 2023-07-10 19:38:38 +00:00
Maxwell G
225f390fd1
Rebuilt for Python 3.12 2023-07-03 17:38:12 +00:00
Maxwell G
c173850eb6
Revert "Rebuilt for Python 3.12"
This reverts commit da750bb373.
2023-07-03 17:37:56 +00:00
Maxwell G
b7db1fa79b
Backport patch to fix compat with latest dnf5 2023-07-03 17:23:30 +00:00
Maxwell G
da750bb373
Rebuilt for Python 3.12 2023-07-03 11:29:39 -05:00
Maxwell G
c57e67a0f9
Revert "Temporarily disable argcomplete on python3.12"
This reverts commit 674ca3d40e.
2023-07-03 14:10:39 +00:00
Maxwell G
71c43a9b1c
Add Recommends on python3-libdnf5 for Fedora 39 2023-06-22 20:41:37 +00:00
Maxwell G
57dc38673b
Refresh patches 2023-06-22 20:15:35 +00:00
Maxwell G
0b7387327a
Update to 2.15.1. Fixes rhbz#2204492. 2023-06-22 15:08:40 -05:00
Maxwell G
b700681263
Avoid deprecated importlib.abc.TraversableResources
This fixes python-ansible-compat's FTBFS with python3.12, as its test
suite enforces -Werror.
2023-06-17 18:15:18 +00:00
Python Maint
bb45d530b8 Rebuilt for Python 3.12 2023-06-16 14:42:59 +02:00
Maxwell G
20c4dcb8cc
Remove conditional Requires on ansible-packaging. 2023-06-15 19:27:25 +00:00
Maxwell G
674ca3d40e
Temporarily disable argcomplete on python3.12 2023-06-13 22:28:22 +00:00
Maxwell G
8f2b3503f1
Add initial Python 3.12 support
Fixes: https://bugzilla.redhat.com/2196539
2023-06-13 22:28:22 +00:00
Maxwell G
47238f9977
Add argcomplete bcond 2023-06-13 21:29:11 +00:00
Maxwell G
006891ac8b
tests: use the correct copr chroot for EPEL branches 2023-06-02 18:26:03 +00:00
Maxwell G
1f76584a4d
ci: use a proper inventory file and add a dnf test 2023-06-02 15:13:41 +00:00
Maxwell G
7076cf3fdd
ci: add an explicit dependency on python3
This is needed for EPEL branches where ansible-core may not be installed
for the system python interpreter.
2023-06-02 15:01:43 +00:00
Yaakov Selkowitz
701757693a Disable tests by default in RHEL builds
RHEL does not include the necessary test dependencies.
2023-05-22 21:48:52 -04:00
Maxwell G
f8ac3d7efa
don't remove dotfiles and empty files. 2023-05-16 20:09:32 +00:00
Maxwell G
68d6015afa
Update to 2.15.0. 2023-05-16 11:30:09 -05:00
Maxwell G
6d202647fa
Update to 2.15.0~rc2. 2023-05-03 15:20:37 -05:00
Maxwell G
b0e1e0631f
Update to 2.15.0~rc1. 2023-04-27 04:48:14 +00:00
Maxwell G
27e02a89ac
tests: reorganize fmf plans 2023-04-25 02:13:02 +00:00
Maxwell G
00d05415a8
remove unused patch 2023-04-25 02:13:01 +00:00
Maxwell G
37924c8f63
backport GALAXY_COLLECTIONS_PATH_WARNINGS patch
This will be used in the Fedora ansible-packaging macros to silence
useless warnings when installing collections into %{buildroot}.
2023-04-25 02:13:01 +00:00
Maxwell G
491e0b3137
backport PR to replace a mock import
Mock is deprecated in Fedora.
2023-04-24 22:35:32 +00:00
Maxwell G
03cf1aca62
backport PR to improve dnf pkg_mgr discovery 2023-04-24 22:35:32 +00:00
Maxwell G
c98092b221
account for the removed Makefile 2023-04-24 22:35:32 +00:00
Maxwell G
3394859eb9
Update to 2.15.0~b3. 2023-04-24 22:35:32 +00:00
Maxwell G
953def6952
Add gating 2023-04-24 13:50:31 -05:00
Maxwell G
754b581240
Add gating tests 2023-04-24 17:44:17 +00:00
Maxwell G
de2bcead78
remove unused patch 2023-03-29 12:59:35 -05:00
Maxwell G
997defd67b
Update to 2.14.4. Fixes rhbz#2173765. 2023-03-29 11:42:46 -05:00
Maxwell G
42d808f1cd
Update to 2.14.3. Fixes rhbz#2173765. 2023-03-01 14:19:59 -06:00
David Moreau Simard
1a57587ba1
Update to 2.14.2. Fixes rhbz#2165629. 2023-01-31 23:09:15 -05:00
Fedora Release Engineering
9a85e7920e Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-18 21:48:18 +00:00
Maxwell G
1ebf914ef3
Update to 2.14.1. 2022-12-08 21:44:44 -06:00
Maxwell G
e3860c8f67
%undefine _py3_shebang_s at the top of the file 2022-11-10 17:24:30 -06:00
Maxwell G
46737d61f4
Add sanity check for new license files 2022-11-08 20:11:48 -06:00
Maxwell G
bfeb92d7ad
Escape macro in comment 2022-11-08 20:11:38 -06:00
Maxwell G
42d617cd57
Fix env-script-interpreter rpmlint errors 2022-11-08 20:10:43 -06:00
Maxwell G
e03a7fb20b
Update to 2.14.0. 2022-11-07 14:32:46 -06:00
Maxwell G
301b09d07a
Fix %generate_buildrequires repetition
Stop writing the modified requirements.txt to %_tmpdir every time
%generate_buildrequires is run.
2022-11-02 11:58:31 -05:00
Maxwell G
4268da90cb
Update to 2.14.0~rc2. 2022-11-02 11:56:47 -05:00
Maxwell G
e58c15902d
Revert "Split shell-completions into a separate subpackage"
This adds extra complexity, and I think providing shell completions by
default provides a better user experience.
2022-11-02 11:56:47 -05:00
Maxwell G
77248be77b
Update to 2.14.0~rc1. 2022-11-02 11:56:47 -05:00
Maxwell G
8ebd28d003
Use %pyproject_save_files 2022-11-02 11:56:47 -05:00
Maxwell G
06609a22b4
Formatting 2022-11-02 11:56:47 -05:00
Maxwell G
d03b7e96f1
Fix handling of shebangs
- Use new _py3_shebang_s macro
- Allow %pyproject_install to handle shebang fixing where appropriate
2022-11-02 11:56:47 -05:00
Maxwell G
c33bf4a3b5
Remove docs conditional
There are no plans to build the docs at this time, and the commented out
commands are out of date.
2022-11-02 11:56:45 -05:00
Maxwell G
5f08c7d476
BR python-unversioned-command instead of patching tests
test/units/modules/test_async_wrapper.py calls /usr/bin/python. Instead
 of patching the tests to use /usr/bin/python3, just give it what it
 wants.
2022-11-02 11:55:47 -05:00
Maxwell G
9fe3a386b3
Officially deprecate ansible-packaging Requires 2022-10-26 22:45:39 -05:00
Maxwell G
d66253421b
Remove unnecessary -n for subpackage definitions 2022-10-26 22:44:50 -05:00
Maxwell G
6363610e58
Split shell-completions into a separate subpackage
and define %_description variable to make specfile DRYer.

Fedora normally doesn't split out shell completions, but this avoids
pulling in an extra dependency on python3-argcomplete.
2022-10-26 22:41:30 -05:00
Maxwell G
c6c4a5a0c5
Switch to SPDX identifiers 2022-10-12 21:12:43 -05:00
Maxwell G
907005f531 Update to 2.13.5. 2022-10-12 17:34:08 -05:00
Maxwell G
364477ec17
Update to 2.13.4. 2022-09-12 19:38:47 -05:00
Maxwell G
6c3dddaf15
Remove weak deps on paramiko and winrm
paramiko isn't used much anymore, and winrm is only needed for windows
hosts.
2022-08-30 21:17:17 -05:00
Maxwell G
aaeb3ba870
Update to 2.13.3. 2022-08-15 20:46:06 -05:00
Fedora Release Engineering
1670a2a1d1 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-20 20:52:44 +00:00
Maxwell G
7b97bc62b0
Update to 2.13.2. Fixes rhbz#2108195. 2022-07-19 09:03:05 -05:00
Miro Hrončok
2c98978654 Don't put -- into Python shebangs
%py3_shebang_flags should not contain the leading dash, but %py3_shbang_opts does.

The shebengs were:

    #! /usr/bin/python3 --

That worked. By accident. But when we added P to the flags:

    https://fedoraproject.org/wiki/Changes/PythonSafePath

The shebang was:

    #! /usr/bin/python3 --P

And that no longer works.
2022-07-07 16:48:00 +02:00
Maxwell G
186a386eed
Update to 2.13.1 (rhbz#2096312). 2022-06-22 16:05:25 -05:00
Maxwell G
ddeae9f7f9
Update to 2.13.1. 2022-06-22 15:00:38 -05:00
Maxwell G
0972e758a9
Fix shebangs (again) 2022-06-22 14:56:00 -05:00
Maxwell G
04adc100d7
Fix an rpmlint error 2022-06-18 16:41:09 -05:00
Maxwell G
ae17667064
Fix python3.11 patch and shell completions 2022-06-18 13:06:04 -05:00
Maxwell G
4b920c7ebe
Merge remote-tracking branch 'origin/rawhide' into rawhide-2.13.x 2022-06-16 22:53:33 -05:00
Miro Hrončok
c175ef7d47 Allow Python 3.11 2022-06-16 19:41:09 +02:00
Maxwell G
ebf8e71a77
Generate shell completions and other misc. improvements 2022-06-16 12:38:28 -05:00
Python Maint
0b450a5a8f Rebuilt for Python 3.11 2022-06-16 18:24:05 +02:00
Maxwell G
940fba3cc1
Fix shebangs and update %%changelog. 2022-06-04 01:31:39 -05:00
Maxwell G
a095f6f6fe
Update to pyproject-rpm-macros 2022-06-04 01:31:39 -05:00
Maxwell G
6b032c863f
Update licensing 2022-06-04 01:31:39 -05:00
Maxwell G
b013ba0c70
Use upstream patches to get rid of python3-mock. 2022-06-04 01:31:36 -05:00
Maxwell G
b7afe61c94
Update to 2.13.0.
Re-enable tests that work with newer pytest
Patch out python3-mock
Manually build manpages to workaround upstream issue.
Remove unneeded BRs
Make ansible-base* Obsoletes/Provides compliant with Packaging Guidelines
Remove python3-jmespath dependency. json_query is part of community.general.
2022-05-28 19:57:34 -05:00
Maxwell G
03f3084bfb
Fix test failure on F37 2022-05-27 18:37:04 -05:00
15 changed files with 627 additions and 324 deletions

1
.fmf/version Normal file
View file

@ -0,0 +1 @@
1

78
.gitignore vendored
View file

@ -13,7 +13,77 @@
/ansible-core-2.12.4.tar.gz
/ansible-core-2.12.5.tar.gz
/ansible-core-2.12.6.tar.gz
/ansible-core-2.12.7.tar.gz
/ansible-core-2.12.8.tar.gz
/ansible-core-2.12.9.tar.gz
/ansible-core-2.12.10.tar.gz
/ansible-core-2.13.0.tar.gz
/ansible-core-2.13.1.tar.gz
/ansible-core-2.13.2.tar.gz
/ansible-core-2.13.3.tar.gz
/ansible-core-2.13.4.tar.gz
/ansible-core-2.13.5.tar.gz
/ansible-core-2.14.0rc1.tar.gz
/ansible-core-2.14.0rc2.tar.gz
/ansible-core-2.14.0.tar.gz
/ansible-core-2.14.1.tar.gz
/ansible-core-2.14.2.tar.gz
/ansible-core-2.14.3.tar.gz
/ansible-core-2.14.4.tar.gz
/ansible-core-2.15.0b3.tar.gz
/ansible-core-2.15.0rc1.tar.gz
/ansible-core-2.15.0rc2.tar.gz
/ansible-core-2.15.0.tar.gz
/ansible-core-2.15.1.tar.gz
/ansible-core-2.15.2.tar.gz
/ansible-documentation-2.15.2.tar.gz
/ansible-core-2.15.3.tar.gz
/ansible-documentation-2.15.3.tar.gz
/ansible-core-2.15.4.tar.gz
/ansible-documentation-2.15.4.tar.gz
/ansible-core-2.16.0b1.tar.gz
/ansible-documentation-2.16.0b1.tar.gz
/ansible-core-2.16.0b2.tar.gz
/ansible-documentation-2.16.0b2.tar.gz
/ansible-core-2.16.0rc1.tar.gz
/ansible-documentation-2.16.0rc1.tar.gz
/ansible-core-2.16.0.tar.gz
/ansible-documentation-2.16.0.tar.gz
/ansible-core-2.16.1.tar.gz
/ansible-documentation-2.16.1.tar.gz
/ansible-core-2.16.2.tar.gz
/ansible-documentation-2.16.2.tar.gz
/ansible-core-2.16.3.tar.gz
/ansible-documentation-2.16.3.tar.gz
/ansible-core-2.16.4.tar.gz
/ansible-documentation-2.16.4.tar.gz
/ansible-core-2.16.5.tar.gz
/ansible-documentation-2.16.5.tar.gz
/ansible-core-2.16.6.tar.gz
/ansible-documentation-2.16.6.tar.gz
/ansible-core-2.16.7.tar.gz
/ansible-documentation-2.16.7.tar.gz
/ansible-core-2.16.8.tar.gz
/ansible-documentation-2.16.8.tar.gz
/ansible-core-2.16.9.tar.gz
/ansible-documentation-2.16.9.tar.gz
/ansible-core-2.16.10.tar.gz
/ansible-documentation-2.16.10.tar.gz
/ansible-core-2.16.11.tar.gz
/ansible-documentation-2.16.11.tar.gz
/ansible-core-2.16.12.tar.gz
/ansible-documentation-2.16.12.tar.gz
/ansible-core-2.18.0.tar.gz
/ansible-documentation-2.18.0.tar.gz
/ansible-core-2.18.1.tar.gz
/ansible-documentation-2.18.1.tar.gz
/ansible-core-2.18.3.tar.gz
/ansible-documentation-2.18.3.tar.gz
/ansible-core-2.18.4.tar.gz
/ansible-documentation-2.18.4.tar.gz
/ansible-core-2.18.6.tar.gz
/ansible-documentation-2.18.6.tar.gz
/ansible-core-2.18.7.tar.gz
/ansible-documentation-2.18.7.tar.gz
/ansible-core-2.18.9.tar.gz
/ansible-documentation-2.18.9.tar.gz
/ansible-core-2.18.11.tar.gz
/ansible-documentation-2.18.11.tar.gz
/ansible-core-2.20.1.tar.gz
/ansible-documentation-2.20.1.tar.gz

30
.packit.yaml Normal file
View file

@ -0,0 +1,30 @@
# See the documentation for more information:
# https://packit.dev/docs/configuration/
upstream_project_url: https://github.com/ansible/ansible
upstream_tag_template: v{version}
issue_repository: https://pagure.io/ansible-packit-issues
create_sync_note: false
# TODO: Remove pending https://fedoraproject.org/wiki/Changes/Ansible13
upstream_tag_include: "v2.18"
jobs:
- job: pull_from_upstream
trigger: release
dist_git_branches:
# Fast forward merge rawhide while it is held at v2.18.
rawhide:
fast_forward_merge_into:
- fedora-43
- fedora-42
- job: koji_build
trigger: commit
dist_git_branches:
- fedora-all
sidetag_group: "ansible"
dependents:
- ansible
# The update for the sidetag group is created in the ansible package.
# - job: bodhi_update
# trigger: commit
# dist_git_branches:
# - rawhide

View file

@ -1,17 +0,0 @@
diff --color -Nur ansible-base-2.10.3.orig/test/units/modules/test_async_wrapper.py ansible-base-2.10.3/test/units/modules/test_async_wrapper.py
--- ansible-base-2.10.3.orig/test/units/modules/test_async_wrapper.py 2020-11-02 14:26:08.000000000 -0800
+++ ansible-base-2.10.3/test/units/modules/test_async_wrapper.py 2020-11-03 13:07:42.556005427 -0800
@@ -22,11 +22,11 @@
def test_run_module(self, monkeypatch):
def mock_get_interpreter(module_path):
- return ['/usr/bin/python']
+ return ['/usr/bin/python3']
module_result = {'rc': 0}
module_lines = [
- '#!/usr/bin/python',
+ '#!/usr/bin/python3',
'import sys',
'sys.stderr.write("stderr stuff")',
"print('%s')" % json.dumps(module_result)

1
ansible-core.rpmlintrc Normal file
View file

@ -0,0 +1 @@
addFilter("E: zero-length")

View file

@ -1,172 +1,136 @@
#
# If we should enable docs building
# Currently we cannot until we get a stack of needed packages added and a few bugs fixed
#
%bcond_with docs
# SPDX-License-Identifier: MIT
# Copyright (C) Fedora Project Authors
# License Text: https://spdx.org/licenses/MIT.html
#
# If we should enable tests by default
#
%bcond_without tests
# several test dependencies are unwanted in RHEL
%bcond tests %{undefined rhel}
# controls whether to generate shell completions
# may be useful for bootstrapping purposes
%bcond argcomplete 1
# disable the python -s shbang flag as we want to be able to find non system modules
%undefine _py3_shebang_s
Name: ansible-core
Version: 2.20.1
%global uversion %{version_no_tilde %{quote:%nil}}
Release: 2%{?dist}
Summary: A radically simple IT automation system
Version: 2.12.10
Release: 1%{?dist}
# The main license is GPLv3+. Many of the files in lib/ansible/module_utils
# are BSD licensed. There are various files scattered throughout the codebase
# containing code under different licenses.
# SPDX-License-Identifier: GPL-3.0-or-later AND BSD-2-Clause AND PSF-2.0 AND MIT AND Apache-2.0
License: GPLv3+ and BSD and Python and MIT and ASL 2.0
Source: %{pypi_source}
# The ssh-agent helper code is BSD-3-Clause.
License: GPL-3.0-or-later AND BSD-2-Clause AND BSD-3-Clause AND PSF-2.0 AND MIT AND Apache-2.0
URL: https://ansible.com
Patch: https://github.com/ansible/ansible/pull/76670.patch#/fix-tests-failing-on-pytest-7.patch
# A 2.10.3 async test uses /usr/bin/python, which we do not have by default.
# Patch the test to use /usr/bin/python3 as we have for our build.
Patch: 2.10.3-test-patch.patch
# These patch removes the requirement on python3-mock which is deprecated in Fedora.
# This is based off of work upstream.
Patch: replace-mock.patch
Source0: https://github.com/ansible/ansible/archive/v%{uversion}/%{name}-%{uversion}.tar.gz
Source1: https://github.com/ansible/ansible-documentation/archive/v%{uversion}/ansible-documentation-%{uversion}.tar.gz
Url: https://ansible.com
BuildArch: noarch
# Virtual provides for bundled libraries
# Search for `_BUNDLED_METADATA` to find them
# lib/ansible/module_utils/urls.py
# SPDX-License-Identifier: BSD-2-Clause AND PSF-2.0
# Fedora-License-Identifier: BSD and Python
Provides: bundled(python3dist(backports-ssl-match-hostname)) = 3.7.0.1
# lib/ansible/module_utils/distro/*
# SPDX-License-Identifier: Apache-2.0
# Fedora-License-Identifier: ASL 2.0
Provides: bundled(python3dist(distro)) = 1.6.0
Provides: bundled(python3dist(distro)) = 1.9.0
# lib/ansible/module_utils/six/*
# SPDX-License-Identifier: MIT
# Fedora-License-Identifier: MIT
Provides: bundled(python3dist(six)) = 1.16.0
Provides: bundled(python3dist(six)) = 1.17.0
# lib/ansible/module_utils/compat/selectors.py
# SPDX-License-Identifier: GPL-3.0-or-later
# Fedora-License-Identifier: GPLv3+
Provides: bundled(python3dist(selectors2)) = 1.1.1
Conflicts: ansible <= 2.9.99
#
# obsoletes/provides for ansible-base
#
Provides: ansible-base = %{version}-%{release}
Obsoletes: ansible-base < 2.10.6-1
# lib/ansible/_internal/_wrapt.py
# SPDX-License-Identifier: BSD-2-Clause
Provides: bundled(python3dist(wrapt)) = 1.17.2
BuildRequires: make
BuildRequires: python%{python3_pkgversion}-devel
# This is only used in %%prep to relax the required setuptools version,
# which is not necessary in RHEL 10+.
# Not using it in RHEL avoids unwanted dependencies.
%if %{undefined rhel}
BuildRequires: tomcli >= 0.3.0
%endif
# Needed to build manpages from source.
BuildRequires: python%{python3_pkgversion}-docutils
%if %{with tests}
#
# For tests
#
# These two exist on both fedora and rhel8
#
BuildRequires: make
BuildRequires: git-core
BuildRequires: python3-packaging
BuildRequires: python3-pexpect
BuildRequires: python3-systemd
BuildRequires: python3-pytz
BuildRequires: glibc-all-langpacks
BuildRequires: python3-resolvelib
#
# These only exist on Fedora. RHEL8 will just skip tests that need them.
#
%if 0%{?fedora}
BuildRequires: python3-paramiko
BuildRequires: python3-winrm
BuildRequires: python3-coverage
BuildRequires: python3-passlib
%endif
%endif
%if %{with docs}
BuildRequires: make
BuildRequires: python3-sphinx
BuildRequires: python3-sphinx-theme-alabaster
BuildRequires: python3-sphinx-notfound-page
BuildRequires: asciidoc
BuildRequires: python3-straight-plugin
BuildRequires: python3-rstcheck
BuildRequires: python3-pygments
BuildRequires: antsibull
BuildRequires: python%{python3_pkgversion}-systemd
%endif
#
# main buildrequires to build
#
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pytest
BuildRequires: python3-pytest-xdist
BuildRequires: python3-pytest-mock
BuildRequires: python3-jinja2
BuildRequires: python3-pyyaml
BuildRequires: python3-cryptography
BuildRequires: python3-pyvmomi
BuildRequires: python%{python3_pkgversion}-argcomplete
# RHEL8 doesn't have python3-paramiko or python3-winrm (yet), but Fedora does
Recommends: python3-paramiko
Recommends: python3-winrm
%if %{with argcomplete}
Requires: python%{python3_pkgversion}-argcomplete
# Require packaging macros if rpm-build exists
# This makes the transition seamless for other packages
Requires: (ansible-packaging if rpm-build)
%endif
%if 0%{?fedora} >= 39
BuildRequires: python3-libdnf5
Recommends: python3-libdnf5
%endif
%description
%global _description %{expand:
Ansible is a radically simple model-driven configuration management,
multi-node deployment, and remote task execution system. Ansible works
over SSH and does not require any software or daemons to be installed
on remote nodes. Extension modules can be written in any language and
are transferred to managed machines automatically.
are transferred to managed machines automatically.}
%description %_description
This is the base part of ansible (the engine).
%package -n ansible-core-doc
Summary: Documentation for Ansible Base
Provides: ansible-base-doc = 2.10.7
Obsoletes: ansible-base-doc < 2.10.6-1%{?dist}
%package doc
Summary: Documentation for Ansible Core
Provides: ansible-base-doc = %{version}-%{release}
Obsoletes: ansible-base-doc < 2.10.6-1
%description -n ansible-core-doc
Ansible is a radically simple model-driven configuration management,
multi-node deployment, and remote task execution system. Ansible works
over SSH and does not require any software or daemons to be installed
on remote nodes. Extension modules can be written in any language and
are transferred to managed machines automatically.
%description doc %_description
This package installs extensive documentation for ansible-core
%prep
%autosetup -p1
# Remove shebangs. They are unnecessary and conflict with the Fedora Packaging Guidelines
find -type f ! -executable -name '*.py' -print -exec sed -i -e '1{\@^#!.*@d}' '{}' \;
%build
sed -i -s 's|/usr/bin/env python|/usr/bin/python3|' test/lib/ansible_test/_util/target/cli/ansible_test_cli_stub.py
# disable the python -s shbang flag as we want to be able to find non system modules
%global py3_shbang_opts %(echo %{py3_shbang_opts} | sed 's/-s//')
%py3_build
%if %{with docs}
make PYTHON=/usr/bin/python3 SPHINXBUILD=sphinx-build-3 webdocs
%else
# we still need things to build these minimal docs too.
# make PYTHON=/usr/bin/python3 -Cdocs/docsite config cli keywords modules plugins testing
%autosetup -p1 -n ansible-%{uversion} -a1
# Relax setuptools constraint on Fedora
# Future RHELs have new enough setuptools
%if %{undefined rhel}
tomcli-set pyproject.toml lists replace \
'build-system.requires' 'setuptools >=.*' 'setuptools'
%endif
sed -i -s 's|/usr/bin/env python|%{python3}|' \
bin/ansible-test \
test/lib/ansible_test/_util/target/cli/ansible_test_cli_stub.py
# TODO: Investigate why hostname is the only module that still has a shebang
# and file an upstream issue if needed.
sed -i -e '1{\@^#!.*@d}' lib/ansible/modules/hostname.py
sed '/^mock$/d' test/lib/ansible_test/_data/requirements/units.txt > _requirements.txt
%generate_buildrequires
%pyproject_buildrequires %{?with_tests:_requirements.txt test/units/requirements.txt}
%if %{with argcomplete}
# Shell completions
echo 'python%{python3_pkgversion}-argcomplete'
%endif
%build
%pyproject_wheel
# Build manpages
mkdir -p docs/man/man1
%{python3} packaging/cli-doc/build.py man --output-dir docs/man/man1
%if %{with argcomplete}
# Build shell completions
(
cd bin
for shell in bash fish; do
@ -188,12 +152,27 @@ sed -i -s 's|/usr/bin/env python|/usr/bin/python3|' test/lib/ansible_test/_util/
done
done
)
%endif
%install
%py3_install
%pyproject_install
%pyproject_save_files ansible ansible_test
install -Dpm 0644 bash_completions/* -t %{buildroot}%{_datadir}/bash-completion/completions
install -Dpm 0644 fish_completions/* -t %{buildroot}%{_datadir}/fish/vendor_completions.d
# These files are executable when they shouldn't be.
# Only the actual "binaries" in %%{_bindir} need to be executable
# and have shebangs.
while read -r file; do
sed -i -e '1{\@^#!.*@d}' "${file}"
done < <(find \
%{buildroot}%{python3_sitelib}/ansible/cli/*.py \
%{buildroot}%{python3_sitelib}/ansible/cli/scripts/ansible_connection_cli_stub.py \
-type f ! -executable)
%if %{with argcomplete}
install -Dpm 0644 bash_completions/* -t %{buildroot}%{bash_completions_dir}
install -Dpm 0644 fish_completions/* -t %{buildroot}%{fish_completions_dir}
%endif
# Create system directories that Ansible defines as default locations in
# ansible/config/base.yml
@ -230,59 +209,291 @@ mkdir -p %{buildroot}%{_datadir}/ansible/plugins/
for location in $DATADIR_LOCATIONS ; do
mkdir %{buildroot}"$location"
done
mkdir -p %{buildroot}/etc/ansible/
mkdir -p %{buildroot}/etc/ansible/roles/
mkdir -p %{buildroot}%{_sysconfdir}/ansible/
mkdir -p %{buildroot}%{_sysconfdir}/ansible/roles/
cp examples/hosts %{buildroot}/etc/ansible/
cp examples/ansible.cfg %{buildroot}/etc/ansible/
cp ansible-documentation-%{uversion}/examples/hosts %{buildroot}/etc/ansible/
cp ansible-documentation-%{uversion}/examples/ansible.cfg %{buildroot}/etc/ansible/
mkdir -p %{buildroot}/%{_mandir}/man1
cp -v docs/man/man1/*.1 %{buildroot}/%{_mandir}/man1/
# no need to ship zero length files
find %{buildroot}/%{python3_sitelib} -name .git_keep -exec rm -f {} \;
find %{buildroot}/%{python3_sitelib} -name .travis.yml -exec rm -f {} \;
# We install licenses in this manner so we don't miss new licenses:
# 1. Copy all files in licenses to %%{_pkglicensedir}.
# 2. List the files explicitly in %%files.
# 3. The build will fail with unpackaged file errors if license
# files aren't accounted for.
%global _pkglicensedir %{_licensedir}/ansible-core
install -Dpm 0644 licenses/* -t %{buildroot}%{_pkglicensedir}
%check
%if %{with tests}
ln -s /usr/bin/pytest-3 bin/pytest
make PYTHON=/usr/bin/python3 tests-py3
%{python3} bin/ansible-test \
units --local --python-interpreter %{python3} -vv
%endif
%files
%files -f %{pyproject_files}
%license COPYING
%doc README.rst PKG-INFO changelogs/CHANGELOG-v2.12.rst
%license %{_pkglicensedir}/{Apache-License,MIT-license,PSF-license,simplified_bsd,BSD-3-Clause}.txt
%doc README.md changelogs/CHANGELOG-v2.2?.rst
%dir %{_sysconfdir}/ansible/
%config(noreplace) %{_sysconfdir}/ansible/*
%{_bindir}/ansible*
%{_datadir}/ansible/
%{_datadir}/bash-completion/completions/ansible*
%dir %{_datadir}/fish
%dir %{_datadir}/fish/vendor_completions.d
%{_datadir}/fish/vendor_completions.d/ansible*.fish
%if %{with argcomplete}
%{bash_completions_dir}/ansible*
%{fish_completions_dir}/ansible*.fish
%endif
%{_mandir}/man1/ansible*
%{python3_sitelib}/ansible
%{python3_sitelib}/ansible_test
%{python3_sitelib}/*egg-info
%files -n ansible-core-doc
%doc docs/docsite/rst
%files doc
%doc ansible-documentation-%{uversion}/docs/docsite/rst
%if %{with docs}
%doc docs/docsite/_build/html
%doc ansible-documentation-%{uversion}/docs/docsite/_build/html
%endif
%changelog
* Thu Oct 20 2022 Maxwell G <gotmax@e.email> - 2.12.10-1
- Update to 2.12.10.
* Fri Jan 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2.20.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
* Tue Sep 13 2022 Maxwell G <gotmax@e.email> - 2.12.9-1
- Update to 2.12.9.
* Tue Dec 09 2025 Maxwell G <maxwell@gtmx.me> - 2.20.1-1
- Update to 2.20.1. Fixes rhbz#2382388.
- Update bundled() Provides
- Remove upstreamed patches
- Remove old Provides and Obsoletes for ansible-base and Ansible <= 2.9
* Wed Aug 17 2022 Maxwell G <gotmax@e.email> - 2.12.8-1
- Update to 2.12.8.
* Mon Nov 17 2025 Packit <hello@packit.dev> - 2.18.11-1
- Update to version 2.18.11
* Thu Jun 23 2022 Maxwell G <gotmax@e.email> - 2.12.7-1
- Update to 2.12.7.
- Backport packaging fixes from rawhide
* Sat Sep 27 2025 Maxwell G <maxwell@gtmx.me> - 2.18.9-1
- Update to 2.18.9.
* Fri Sep 19 2025 Python Maint <python-maint@redhat.com> - 2.18.7-4
- Rebuilt for Python 3.14.0rc3 bytecode
* Fri Aug 15 2025 Python Maint <python-maint@redhat.com> - 2.18.7-3
- Rebuilt for Python 3.14.0rc2 bytecode
* Wed Jul 23 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.18.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Wed Jul 16 2025 Maxwell G <maxwell@gtmx.me> - 2.18.7-1
- Update to 2.18.7. Fixes rhbz#2380244.
* Sat Jun 07 2025 Maxwell G <maxwell@gtmx.me> - 2.18.6-2
- Add initial support for Python 3.14 (rhbz#2366307)
* Sat Jun 07 2025 Maxwell G <maxwell@gtmx.me> - 2.18.6-1
- Update to 2.18.6. Fixes rhbz#2354908.
* Tue Jun 03 2025 Python Maint <python-maint@redhat.com> - 2.18.4-2
- Rebuilt for Python 3.14
* Tue Mar 25 2025 Packit <hello@packit.dev> - 2.18.4-1
- Update to version 2.18.4
- Resolves: rhbz#2354908
* Mon Mar 17 2025 Packit <hello@packit.dev> - 2.18.3-1
- Update to version 2.18.3
- Resolves: rhbz#2342365
* Thu Jan 16 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.18.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Wed Dec 04 2024 Maxwell G <maxwell@gtmx.me> - 2.18.1-1
- Update to 2.18.1. Fixes rhbz#2330005.
- dnf5 - backport support for automatically installing python3-libdnf5 (rhbz#2322751).
* Tue Nov 26 2024 Maxwell G <maxwell@gtmx.me> - 2.18.0-1
- Update to 2.18.0. Fixes rhbz#2282011.
* Fri Oct 11 2024 Maxwell G <maxwell@gtmx.me> - 2.16.12-1
- Update to 2.16.12.
* Tue Sep 10 2024 Maxwell G <maxwell@gtmx.me> - 2.16.11-1
- Update to 2.16.11.
* Tue Aug 13 2024 Maxwell G <maxwell@gtmx.me> - 2.16.10-1
- Update to 2.16.10.
* Fri Jul 19 2024 Maxwell G <maxwell@gtmx.me> - 2.16.9-1
- Update to 2.16.9.
* Wed Jul 17 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.16.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Sun Jun 23 2024 Maxwell G <maxwell@gtmx.me> - 2.16.8-1
- Update to 2.16.8.
* Sun Jun 09 2024 Python Maint <python-maint@redhat.com> - 2.16.7-2
- Rebuilt for Python 3.13
* Tue Jun 04 2024 Maxwell G <maxwell@gtmx.me> - 2.16.7-1
- Update to 2.16.7.
* Thu May 23 2024 Miro Hrončok <mhroncok@redhat.com> - 2.16.6-2
- Fix build with Python 3.13
* Tue Apr 16 2024 Maxwell G <maxwell@gtmx.me> - 2.16.6-1
- Update to 2.16.6. Fixes rhbz#2261507.
* Fri Mar 29 2024 Maxwell G <maxwell@gtmx.me> - 2.16.5-1
- Update to 2.16.5. Fixes rhbz#2261507.
* Fri Mar 29 2024 Maxwell G <maxwell@gtmx.me> - 2.16.5-1
- Update to 2.16.5.
* Sat Mar 02 2024 Maxwell G <maxwell@gtmx.me> - 2.16.4-1
- Update to 2.16.4. Fixes rhbz#2261507.
* Thu Feb 01 2024 Maxwell G <maxwell@gtmx.me> - 2.16.3-1
- Update to 2.16.3. Fixes rhbz#2261507.
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.16.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.16.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Jan 18 2024 Maxwell G <maxwell@gtmx.me> - 2.16.2-2
- Mitigate CVE-2024-0690.
* Mon Dec 11 2023 Maxwell G <maxwell@gtmx.me> - 2.16.2-1
- Update to 2.16.2. Fixes rhbz#2254093.
* Wed Dec 06 2023 Maxwell G <maxwell@gtmx.me> - 2.16.1-1
- Update to 2.16.1. Fixes rhbz#2252860.
* Fri Nov 10 2023 Maxwell G <maxwell@gtmx.me> - 2.16.0-1
- Update to 2.16.0. Fixes rhbz#2248187.
* Thu Oct 19 2023 Maxwell G <maxwell@gtmx.me> - 2.16.0~rc1-1
- Update to 2.16.0~rc1.
* Tue Oct 03 2023 Maxwell G <maxwell@gtmx.me> - 2.16.0~b2-1
- Update to 2.16.0~b2.
* Mon Oct 02 2023 Miro Hrončok <mhroncok@redhat.com> - 2.16.0~b1-2
- Do not use tomcli in Fedora ELN, avoid pulling unwanted dependencies
* Wed Sep 27 2023 Maxwell G <maxwell@gtmx.me> - 2.16.0~b1-1
- Update to 2.16.0~b1.
* Tue Sep 26 2023 Kevin Fenzi <kevin@scrye.com> - 2.15.4-2
- Add patch to fix readfp with python-3.12. Fixes rhbz#2239728
* Mon Sep 11 2023 Maxwell G <maxwell@gtmx.me> - 2.15.4-1
- Update to 2.15.4. Fixes rhbz#2238445.
* Thu Aug 17 2023 Maxwell G <maxwell@gtmx.me> - 2.15.3-1
- Update to 2.15.3. Fixes rhbz#2231963.
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.15.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Tue Jul 18 2023 Maxwell G <maxwell@gtmx.me> - 2.15.2-1
- Update to 2.15.2. Fixes rhbz#2223469.
- Use the docs sources from https://github.com/ansible/ansible-documentation.
* Mon Jul 03 2023 Maxwell G <maxwell@gtmx.me> - 2.15.1-2
- Rebuilt for Python 3.12
* Thu Jun 22 2023 Maxwell G <maxwell@gtmx.me> - 2.15.1-1
- Update to 2.15.1. Fixes rhbz#2204492.
- Add Recommends on python3-libdnf5 for Fedora 39
* Sat Jun 17 2023 Maxwell G <maxwell@gtmx.me> - 2.15.0-5
- Add patch to avoid importlib.abc.TraversableResources DeprecationWarning
* Fri Jun 16 2023 Python Maint <python-maint@redhat.com> - 2.15.0-4
- Rebuilt for Python 3.12
* Tue Jun 13 2023 Maxwell G <maxwell@gtmx.me> - 2.15.0-3
- Add support for Python 3.12. Fixes rhbz#2196539.
- Remove conditional Requires on ansible-packaging.
* Tue May 23 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 2.15.0-2
- Disable tests in RHEL builds
* Tue May 16 2023 Maxwell G <maxwell@gtmx.me> - 2.15.0-1
- Update to 2.15.0.
- Don't remove dotfiles and empty files. ansible-core actually needs these.
* Wed May 03 2023 Maxwell G <maxwell@gtmx.me> - 2.15.0~rc2-1
- Update to 2.15.0~rc2.
* Thu Apr 27 2023 Maxwell G <maxwell@gtmx.me> - 2.15.0~rc1-1
- Update to 2.15.0~rc1.
* Mon Apr 24 2023 Maxwell G <maxwell@gtmx.me> - 2.15.0~b3-1
- Update to 2.15.0~b3.
- Account for the removed Makefile
* Mon Apr 24 2023 Maxwell G <maxwell@gtmx.me> - 2.14.4-2
- Add gating
* Wed Mar 29 2023 Maxwell G <maxwell@gtmx.me> - 2.14.4-1
- Update to 2.14.4. Fixes rhbz#2173765.
* Wed Mar 01 2023 Maxwell G <maxwell@gtmx.me> - 2.14.3-1
- Update to 2.14.3.
* Tue Jan 31 2023 David Moreau-Simard <moi@dmsimard.com> - 2.14.2-1
- Update to 2.14.2. Fixes rhbz#2165629.
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.14.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Dec 09 2022 Maxwell G <gotmax@e.email> - 2.14.1-1
- Update to 2.14.1.
* Mon Nov 07 2022 Maxwell G <gotmax@e.email> - 2.14.0-1
- Update to 2.14.0.
* Wed Nov 02 2022 Maxwell G <gotmax@e.email> - 2.14.0~rc2-1
- Update to 2.14.0~rc2.
* Fri Oct 28 2022 Maxwell G <gotmax@e.email> - 2.14.0~rc1-1
- Update to 2.14.0~rc1.
* Wed Oct 12 2022 Maxwell G <gotmax@e.email> - 2.13.5-1
- Update to 2.13.5.
* Tue Sep 13 2022 Maxwell G <gotmax@e.email> - 2.13.4-1
- Update to 2.13.4.
* Wed Aug 31 2022 Maxwell G <gotmax@e.email> - 2.13.3-2
- Remove weak deps on paramiko and winrm
* Mon Aug 15 2022 Maxwell G <gotmax@e.email> - 2.13.3-1
- Update to 2.13.3.
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.13.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Tue Jul 19 2022 Maxwell G <gotmax@e.email> - 2.13.2-1
- Update to 2.13.2. Fixes rhbz#2108195.
* Thu Jul 07 2022 Miro Hrončok <mhroncok@redhat.com> - 2.13.1-2
- Don't put -- into Python shebangs
* Wed Jun 22 2022 Maxwell G <gotmax@e.email> - 2.13.1-1
- Update to 2.13.1 (rhbz#2096312).
* Thu Jun 16 2022 Maxwell G <gotmax@e.email> - 2.13.0-1
- Update to 2.13.0.
- Re-enable tests that work with newer pytest
- Patch out python3-mock
- Manually build manpages to workaround upstream issue.
- Remove unneeded BRs and switch to pyproject-rpm-macros.
- Make ansible-base* Obsoletes/Provides compliant with Packaging Guidelines
- Remove python3-jmespath dependency. json_query is part of community.general.
- Correct licensing
- Generate shell completions
* Thu Jun 16 2022 Python Maint <python-maint@redhat.com> - 2.12.6-2
- Rebuilt for Python 3.11
* Tue May 24 2022 Maxwell G <gotmax@e.email> - 2.12.6-1
- Update to 2.12.6.

View file

@ -1,108 +0,0 @@
From 52a56f3c0594cf76b3061260711536c23385ee75 Mon Sep 17 00:00:00 2001
From: Jordan Borean <jborean93@gmail.com>
Date: Fri, 7 Jan 2022 09:53:18 +1000
Subject: [PATCH 1/2] Fix pytest 7 failures with leaky fixture
---
changelogs/fragments/ansible-test-pytest7.yml | 2 ++
test/units/galaxy/test_role_install.py | 17 +++++++++--------
2 files changed, 11 insertions(+), 8 deletions(-)
create mode 100644 changelogs/fragments/ansible-test-pytest7.yml
diff --git a/changelogs/fragments/ansible-test-pytest7.yml b/changelogs/fragments/ansible-test-pytest7.yml
new file mode 100644
index 00000000000000..305dddb181b4e7
--- /dev/null
+++ b/changelogs/fragments/ansible-test-pytest7.yml
@@ -0,0 +1,2 @@
+bugfixes:
+- ansible-test - Fix tests that were broken with ``pytest 7`` - https://github.com/ansible/ansible/issues/76577
diff --git a/test/units/galaxy/test_role_install.py b/test/units/galaxy/test_role_install.py
index cf990b55a6d902..687fcac1e53fb9 100644
--- a/test/units/galaxy/test_role_install.py
+++ b/test/units/galaxy/test_role_install.py
@@ -8,6 +8,7 @@
import os
+import functools
import pytest
import tempfile
@@ -59,9 +60,9 @@ def mock_NamedTemporaryFile(mocker, **args):
return mock_ntf
-@pytest.fixture(autouse=True)
-def init_test(monkeypatch):
- monkeypatch.setattr(tempfile, 'NamedTemporaryFile', mock_NamedTemporaryFile)
+@pytest.fixture
+def init_mock_temp_file(mocker, monkeypatch):
+ monkeypatch.setattr(tempfile, 'NamedTemporaryFile', functools.partial(mock_NamedTemporaryFile, mocker))
@pytest.fixture(autouse=True)
@@ -74,7 +75,7 @@ def mock_role_download_api(mocker, monkeypatch):
return mock_role_api
-def test_role_download_github(mocker, galaxy_server, mock_role_download_api, monkeypatch):
+def test_role_download_github(init_mock_temp_file, mocker, galaxy_server, mock_role_download_api, monkeypatch):
mock_api = mocker.MagicMock()
mock_api.side_effect = [
StringIO(u'{"available_versions":{"v1":"v1/"}}'),
@@ -89,7 +90,7 @@ def test_role_download_github(mocker, galaxy_server, mock_role_download_api, mon
assert mock_role_download_api.mock_calls[0][1][0] == 'https://github.com/test_owner/test_role/archive/0.0.1.tar.gz'
-def test_role_download_github_default_version(mocker, galaxy_server, mock_role_download_api, monkeypatch):
+def test_role_download_github_default_version(init_mock_temp_file, mocker, galaxy_server, mock_role_download_api, monkeypatch):
mock_api = mocker.MagicMock()
mock_api.side_effect = [
StringIO(u'{"available_versions":{"v1":"v1/"}}'),
@@ -104,7 +105,7 @@ def test_role_download_github_default_version(mocker, galaxy_server, mock_role_d
assert mock_role_download_api.mock_calls[0][1][0] == 'https://github.com/test_owner/test_role/archive/0.0.2.tar.gz'
-def test_role_download_github_no_download_url_for_version(mocker, galaxy_server, mock_role_download_api, monkeypatch):
+def test_role_download_github_no_download_url_for_version(init_mock_temp_file, mocker, galaxy_server, mock_role_download_api, monkeypatch):
mock_api = mocker.MagicMock()
mock_api.side_effect = [
StringIO(u'{"available_versions":{"v1":"v1/"}}'),
@@ -119,7 +120,7 @@ def test_role_download_github_no_download_url_for_version(mocker, galaxy_server,
assert mock_role_download_api.mock_calls[0][1][0] == 'https://github.com/test_owner/test_role/archive/0.0.1.tar.gz'
-def test_role_download_url(mocker, galaxy_server, mock_role_download_api, monkeypatch):
+def test_role_download_url(init_mock_temp_file, mocker, galaxy_server, mock_role_download_api, monkeypatch):
mock_api = mocker.MagicMock()
mock_api.side_effect = [
StringIO(u'{"available_versions":{"v1":"v1/"}}'),
@@ -135,7 +136,7 @@ def test_role_download_url(mocker, galaxy_server, mock_role_download_api, monkey
assert mock_role_download_api.mock_calls[0][1][0] == 'http://localhost:8080/test_owner/test_role/0.0.1.tar.gz'
-def test_role_download_url_default_version(mocker, galaxy_server, mock_role_download_api, monkeypatch):
+def test_role_download_url_default_version(init_mock_temp_file, mocker, galaxy_server, mock_role_download_api, monkeypatch):
mock_api = mocker.MagicMock()
mock_api.side_effect = [
StringIO(u'{"available_versions":{"v1":"v1/"}}'),
From 47c1f8f5bf3e27103a9320d42b8b1c602b5c27f0 Mon Sep 17 00:00:00 2001
From: Matt Davis <nitzmahone@users.noreply.github.com>
Date: Fri, 7 Jan 2022 15:35:54 -0800
Subject: [PATCH 2/2] zap changelog
---
changelogs/fragments/ansible-test-pytest7.yml | 2 --
1 file changed, 2 deletions(-)
delete mode 100644 changelogs/fragments/ansible-test-pytest7.yml
diff --git a/changelogs/fragments/ansible-test-pytest7.yml b/changelogs/fragments/ansible-test-pytest7.yml
deleted file mode 100644
index 305dddb181b4e7..00000000000000
--- a/changelogs/fragments/ansible-test-pytest7.yml
+++ /dev/null
@@ -1,2 +0,0 @@
-bugfixes:
-- ansible-test - Fix tests that were broken with ``pytest 7`` - https://github.com/ansible/ansible/issues/76577

10
gating.yaml Normal file
View file

@ -0,0 +1,10 @@
--- !Policy
product_versions:
- fedora-*
decision_contexts:
- bodhi_update_push_testing
- bodhi_update_push_stable
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
...

View file

@ -1,36 +0,0 @@
diff -Naur a/test/units/executor/test_task_executor.py b/test/units/executor/test_task_executor.py
--- a/test/units/executor/test_task_executor.py 2022-06-20 08:45:43.256268500 -0500
+++ b/test/units/executor/test_task_executor.py 2022-06-23 15:15:00.923335000 -0500
@@ -19,7 +19,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import mock
+from unittest import mock
from units.compat import unittest
from units.compat.mock import patch, MagicMock
diff -Naur a/test/units/module_utils/urls/test_fetch_url.py b/test/units/module_utils/urls/test_fetch_url.py
--- a/test/units/module_utils/urls/test_fetch_url.py 2022-06-20 08:45:43.277268600 -0500
+++ b/test/units/module_utils/urls/test_fetch_url.py 2022-06-23 15:15:37.487225940 -0500
@@ -13,7 +13,7 @@
from ansible.module_utils.urls import fetch_url, urllib_error, ConnectionError, NoSSLError, httplib
import pytest
-from mock import MagicMock
+from unittest.mock import MagicMock
class AnsibleModuleExit(Exception):
diff -Naur a/test/units/module_utils/urls/test_Request.py b/test/units/module_utils/urls/test_Request.py
--- a/test/units/module_utils/urls/test_Request.py 2022-06-20 08:45:43.277268600 -0500
+++ b/test/units/module_utils/urls/test_Request.py 2022-06-23 15:15:37.487225940 -0500
@@ -13,7 +13,7 @@
from ansible.module_utils.urls import SSLValidationHandler, HTTPSClientAuthHandler, RedirectHandlerFactory
import pytest
-from mock import call
+from unittest.mock import call
if HAS_SSLCONTEXT:

View file

@ -1 +1,2 @@
SHA512 (ansible-core-2.12.10.tar.gz) = 8b4eb0e923f976680e81ffbe942c4ddc7ddaaaffe83d14c20f78f7c6ab4f548f21920cdfa57b48de2bc24683028e744a92ac4ca45fecc459ea2b042de8c40737
SHA512 (ansible-core-2.20.1.tar.gz) = fa0a4836e3548cd4e432e87b241beb6fb556765699c25b1f3b1c47111a1c44d5ba3244aeb8793408e72ab63564d6e848148becbfb550bd965e466752d7f78229
SHA512 (ansible-documentation-2.20.1.tar.gz) = 0dc20cb62280c715e4b06788a5eb2c757c388d0da646a38fc3ab56e38d236ddb0fd7586a567d973e530ed3ed2310ff26542cdb0e1621e0049147dc747e20205b

View file

@ -0,0 +1,54 @@
#!/usr/bin/bash
set -xeuo pipefail
export NO_COLOR=1
TMP=$(mktemp -d)
trap "rm -rf $TMP" EXIT
testcase() {
set +x
echo
echo
echo "$1"
echo
echo
set -x
}
fix_log() {
tr '\n' ' ' <log | sponge log
}
cd $TMP
version="0.2.1"
git clone https://git.sr.ht/~gotmax23/ansible-collection-epel --branch="v${version}" --depth=1
cd ansible-collection-epel
mkdir abc
ansible-galaxy collection build .
run="unbuffer ansible-galaxy collection install gotmax23-epel-${version}.tar.gz"
warning="The installed collection will not be picked up in an Ansible run"
testcase "Control: Check plain collection install"
${run} |& tee log
fix_log
(! grep "${warning}" log)
testcase "Check special collection install"
${run} -p abc |& tee log
fix_log
grep "${warning}" log
testcase "Check special collection install with option"
ANSIBLE_GALAXY_COLLECTIONS_PATH_WARNING=1 ${run} -p abc |& tee log
fix_log
grep "${warning}" log
testcase "Check special collection install without option"
ANSIBLE_GALAXY_COLLECTIONS_PATH_WARNING=0 ${run} -p abc |& tee log
fix_log
(! grep "${warning}" log)

16
tests/fedora.fmf Normal file
View file

@ -0,0 +1,16 @@
summary: A set of Fedora specific ansible integration tests
discover:
- name: Generic ansible integration tests
how: shell
tests:
- name: Run tests/collections_path_warnings.sh
summary: Ensure GALAXY_COLLECTIONS_PATH_WARNINGS works properly
test: tests/collections_path_warnings.sh
require:
- ansible-core
- git-core
- python3-distlib
- /usr/bin/sponge
- /usr/bin/unbuffer
execute:
how: tmt

40
tests/smoke.sh Executable file
View file

@ -0,0 +1,40 @@
#!/usr/bin/bash -x
set -euo pipefail
ansible --version
cat <<EOF >inventory
[all]
localhost ansible_connection=local
EOF
export ANSIBLE_INVENTORY=inventory
chroot="fedora-rawhide-x86_64"
ansible localhost -bm setup |& tee out
if ! grep Fedora out; then
chroot="epel-9-x86_64"
fi
ansible localhost -b \
-m package \
-a name=filesystem \
|& tee out
grep -F 'localhost | SUCCESS' out
(! grep -F 'localhost | CHANGED' out)
ansible localhost -b \
-m community.general.copr \
-a "name=gotmax23/community.general.copr_integration_tests chroot=${chroot}" \
|& tee out
grep -F 'localhost | CHANGED' out
ansible localhost -b \
-m package \
-a name=copr-module-integration-dummy-package \
|& tee out
grep -F 'localhost | CHANGED' out
rpm -ql copr-module-integration-dummy-package

15
tests/smoke1.fmf Normal file
View file

@ -0,0 +1,15 @@
summary: Run smoke tests with the ansible bundle installed
discover:
- name: Smoke tests with ansible
how: shell
tests:
- name: Run tests/smoke.sh
test: tests/smoke.sh
require:
- python3
- python3-dnf
- dnf-plugins-core
- ansible-core
- ansible
execute:
how: tmt

15
tests/smoke2.fmf Normal file
View file

@ -0,0 +1,15 @@
summary: Run smoke tests with the standalone ansible-collection-community-general installed
discover:
- name: Smoke tests with community.general
how: shell
tests:
- name: Run tests/smoke.sh
test: tests/smoke.sh
require:
- python3
- python3-dnf
- dnf-plugins-core
- ansible-core
- ansible-collection-community-general
execute:
how: tmt