Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ansible-builder for openSUSE:Factory 
checked in at 2023-05-26 20:15:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ansible-builder (Old)
 and      /work/SRC/openSUSE:Factory/.ansible-builder.new.1533 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ansible-builder"

Fri May 26 20:15:42 2023 rev:2 rq:1089139 version:3.0.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/ansible-builder/ansible-builder.changes  
2023-03-17 17:04:36.289788569 +0100
+++ 
/work/SRC/openSUSE:Factory/.ansible-builder.new.1533/ansible-builder.changes    
    2023-05-26 20:15:56.696431273 +0200
@@ -1,0 +2,76 @@
+Fri May 19 05:38:45 UTC 2023 - Johannes Kastl <[email protected]>
+
+- fix version by BuildRequire for setuptools_scm instead of
+  hardcoding the version
+
+-------------------------------------------------------------------
+Thu May 18 08:31:38 UTC 2023 - Johannes Kastl <[email protected]>
+
+- fix 'ansible-builder --version' not reporting the right version
+
+-------------------------------------------------------------------
+Mon May 15 20:12:30 UTC 2023 - Johannes Kastl <[email protected]>
+
+- disable color in checks
+
+-------------------------------------------------------------------
+Mon May 15 19:32:13 UTC 2023 - Johannes Kastl <[email protected]>
+
+- modify %if-condition to allow building for python3.10 or
+  python3.11 on SLES15
+
+-------------------------------------------------------------------
+Mon May 15 18:31:28 UTC 2023 - Johannes Kastl <[email protected]>
+
+- update to 3.0.0:
+  * A major evolution of Ansible Builder's Execution Environment
+    definition format, with overall themes of increased flexibility
+    and minimizing required manual alterations of generated build
+    contexts. New features of the version 3 Execution Environment
+    definition include:
+    - Use of vanilla RHEL-ish container images instead of
+      specially-crafted base and builder images (tested against
+      Fedora, CentOS Stream 8/9, UBI9 and others).
+    - Injection of custom build steps before and after every build
+      stage.
+    - Copying arbitrary files from the builder host into the
+      generated container build context (which can then be copied
+      into intermediate/final container images as needed with
+      custom build steps).
+    - Declarative bootstrapping of Python, Ansible Core, and
+      Ansible Runner (in addition to roles/collections, of course).
+    - Inline definition of Python/bindep/role/collection
+      requirements in Execution Environment YAML (external files
+      also still supported).
+    - Customization of final container initialization ENTRYPOINT,
+      USER, and CMD (with verified automatic defaults).
+    - Dynamic builder image from user-specified base image-
+      specifying a builder image is no longer required (or
+      allowed).
+    - Faster builds due to linear stage inheritance and removal of
+      forced OS package upgrades.
+    - Numerous bugfixes and minor enhancements... see documentation
+      for examples.
+  * Breaking Changes
+    - The `--squash` argument to `build` now defaults to `off` for
+      all container runtimes. This allows build caches to function
+      by default for `podman` during development and testing, at
+      the cost of more intermediate layers in the resultant image.
+      Manually specifying `--squash new` is suggested for CI and
+      production builds when using `podman` to minimize the size
+      and number of intermediate layers.
+    - Forced OS package manager upgrades are no longer performed in
+      individual build stages by default. If a full OS package
+      upgrade is desired, add a new build directive to
+      `prepend_base` under `additional_build_steps` (e.g., `- RUN
+      dnf upgrade -y`) to upgrade packages on the base image. The
+      upgraded packages will be reflected in all subsequent build
+      stages.
+
+-------------------------------------------------------------------
+Fri May  5 07:14:56 UTC 2023 - Johannes Kastl <[email protected]>
+
+- change python version on Leap15/SLES15 to python3.11 to use the
+  new stack supported by SUSE
+
+-------------------------------------------------------------------

Old:
----
  ansible-builder-1.2.0.tar.gz

New:
----
  ansible-builder-3.0.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ansible-builder.spec ++++++
--- /var/tmp/diff_new_pack.KWTFEu/_old  2023-05-26 20:15:58.024439188 +0200
+++ /var/tmp/diff_new_pack.KWTFEu/_new  2023-05-26 20:15:58.028439212 +0200
@@ -16,12 +16,19 @@
 #
 
 
+%{?sle15_python_module_pythons}
 %if 0%{?suse_version} < 1550
 # Leap15, SLES15
-%define pythons python310
+%if %pythons == "python310"
 %define ansible_python python310
 %define ansible_python_executable python3.10
 %define ansible_python_sitelib %python310_sitelib
+%endif
+%if %pythons == "python311"
+%define ansible_python python311
+%define ansible_python_executable python3.11
+%define ansible_python_sitelib %python311_sitelib
+%endif
 %else
 # Tumbleweed
 %define pythons python3
@@ -31,26 +38,44 @@
 %endif
 
 Name:           ansible-builder
-Version:        1.2.0
+Version:        3.0.0
 Release:        0
 Summary:        An Ansible execution environment builder
 License:        Apache-2.0
 URL:            https://github.com/ansible/ansible-builder
 Source:         
https://files.pythonhosted.org/packages/source/a/ansible-builder/ansible-builder-%{version}.tar.gz
 BuildArch:      noarch
-BuildRequires:  python-rpm-macros
-BuildRequires:  %{ansible_python}-base >= 3.8
+# https://github.com/ansible/ansible-builder/blob/devel/setup.cfg#L41
+BuildRequires:  %{ansible_python}-base >= 3.9
+BuildRequires:  %{ansible_python}-pip
 BuildRequires:  %{ansible_python}-setuptools
-BuildRequires:  %{ansible_python}-pbr
-# SECTION test requirements
-BuildRequires:  %{ansible_python}-bindep
+BuildRequires:  %{ansible_python}-setuptools_scm
+BuildRequires:  %{ansible_python}-wheel
+BuildRequires:  ansible-core
+BuildRequires:  python-rpm-macros
+# https://github.com/ansible/ansible-builder/blob/devel/requirements.txt
 BuildRequires:  %{ansible_python}-PyYAML
+BuildRequires:  %{ansible_python}-bindep
+BuildRequires:  %{ansible_python}-jsonschema
+BuildRequires:  %{ansible_python}-pbr
 BuildRequires:  %{ansible_python}-requirements-parser
+#
+# Tests require podman, but also require connectivity to pull container images
+# hence we do not enable this dependency
+# BuildRequires:  podman
+#
+# SECTION test requirements
+# https://github.com/ansible/ansible-builder/blob/devel/test/requirements.txt
+BuildRequires:  %{ansible_python}-pytest
+BuildRequires:  %{ansible_python}-pytest-mock
+BuildRequires:  %{ansible_python}-pytest-xdist
 # /SECTION
 BuildRequires:  fdupes
-Requires:       python3-bindep
-Requires:       python3-PyYAML
-Requires:       python3-requirements-parser
+Requires:       %{ansible_python}-PyYAML
+Requires:       %{ansible_python}-bindep
+Requires:       %{ansible_python}-jsonschema
+Requires:       %{ansible_python}-requirements-parser
+Requires:       (podman or docker)
 
 %description
 Ansible Builder is a tool that automates the process of
@@ -65,17 +90,35 @@
 %setup -q -n ansible-builder-%{version}
 
 %build
-%python_build
+%pyproject_wheel
 
 %install
-%python_install
+%pyproject_install
+%python_expand sed -i "1{s/env bash/bash/;}" 
%{buildroot}%{ansible_python_sitelib}/ansible_builder/_target_scripts/entrypoint
+%python_expand head -n 1 
%{buildroot}%{ansible_python_sitelib}/ansible_builder/_target_scripts/entrypoint
 %fdupes %{buildroot}%{ansible_python_sitelib}
 
+%check
+# disable coverage tests
+sed -i '/cov/d' pytest.ini
+# disable color output
+sed -i '/color/d' pytest.ini
+# add %{buildroot}%{_bindir} to PATH, so the executable is found
+export PATH=%{buildroot}%{_bindir}:$PATH
+# checks ignored, as they require podman
+# https://github.com/ansible/ansible-builder/issues/534
+IGNORED_CHECKS="test_v3_pre_post_commands"
+IGNORED_CHECKS="${IGNORED_CHECKS} or test_v3_complete"
+IGNORED_CHECKS="${IGNORED_CHECKS} or test_ansible_check_is_skipped"
+IGNORED_CHECKS="${IGNORED_CHECKS} or test_missing_ansible"
+IGNORED_CHECKS="${IGNORED_CHECKS} or test_missing_runner"
+%pytest -k "not (${IGNORED_CHECKS})"
+
 %files
 %doc README.md
 %license LICENSE.md
 %{_bindir}/ansible-builder
 %{ansible_python_sitelib}/ansible_builder
-%{ansible_python_sitelib}/ansible_builder-*-info
+%{ansible_python_sitelib}/ansible_builder-%{version}.dist-info
 
 %changelog

++++++ ansible-builder-1.2.0.tar.gz -> ansible-builder-3.0.0.tar.gz ++++++
++++ 9374 lines of diff (skipped)

Reply via email to