Revisions of python-kiwi

Neal Gompa's avatar Neal Gompa (Pharaoh_Atem) committed (revision 554)
Use correct python with make calls
Neal Gompa's avatar Neal Gompa (Pharaoh_Atem) committed (revision 553)
Refresh
Neal Gompa's avatar Neal Gompa (Pharaoh_Atem) committed (revision 552)
Refresh for testing
Marcus Schäfer's avatar Marcus Schäfer (marcus.schaefer) committed (revision 550)
- Switch to Poetry and use pyproject.toml definitions
  This allows kiwi to be built, developed, tested, and installed
  through Poetry. This also raises the minimum Python version to 3.9.
Marcus Schäfer's avatar Marcus Schäfer (marcus.schaefer) committed (revision 549)
- Fix activation of luks pool in the initrd
  kiwi called systemd-cryptsetup directly which does not take
  the settings available in /etc/crypttab into account. This
  commit changes the activation procedure in a way that the
  generator created unit file systemd-cryptsetup@... is used
  This Fixes bsc#1219009
Marcus Schäfer's avatar Marcus Schäfer (marcus.schaefer) committed (revision 548)
- Update v9 compliance action
  put the cherry-pick tests into an extra script and
  provide a skip list of commits for manual checking
  if needed

- Apply changelog fixes by glob
  Does not require Makefile changes when maintaining branches

- Add changelog fix file for commit deb6ca
  The commit used a wrong e-mail address which should not
  land in the created changes file for the packaging

- Set default output console to gfxterm for grub
  If no console setting is done in the image description for grub
  the default output console is set to: gfxterm and the default
  input console is set to: console. This Fixes bsc#1219074

- Catch error condition more specific
  Only a KiwiCommandError is an exception we want to
  catch and handle, everything else is a bug and should
  not be masked

- Add silent flag to CommandCapabilities
  an instance of CommandCapabilities allows to check for specific
  options of a command. If the parsing of options has failed a
  warning message is created by default. Under certain circumstances
  like the check for the --help option of setfiles, such a warning
  message can be misleading information in the build log file.
  Therefore the new silent flag allows to suppress the warning
  message and the flag is used for the capabilities of the
Marcus Schäfer's avatar Marcus Schäfer (marcus.schaefer) committed (revision 547)
- Fallback to built-in partition UUID table
  If systemd-id128 is not found or failed use the kiwi built-in
  table as defined by the UAPI group to assign the partition UUID
Marcus Schäfer's avatar Marcus Schäfer (marcus.schaefer) committed (revision 545)
- Added requirement for xmltodict to spec
  Actually the real issue to this defect seems to live in the
  anymarkup source code. It seems that the import of xmltodict
  at the beginning of the core module is optional, but later on
  when handling XML xmltodict seems to be mandatory, see here:
  https://github.com/bkabrda/anymarkup-core/blob/08896a8215819edcc413e3f2588518046
  9a4c2ed/anymarkup_core/__init__.py#L210-L229. Because this
  issue can result in a "ImportError: Can't parse xml: xmltodict not installed"
  turning kiwi into a bad exit condition I propose to add
  this python requirement to the kiwi spec as a workaround and
  try fixing the anymarkup packaging and module setup upstream
  in addition. To my knowledge all relevant distributions
  provides xmltodict

- Fixed type hint for pinch_system method
  The PackageManager argument is allowed to be optional

- Add support for discoverable partitions
  Set PARTUUID according to systemd-id128 if applicable
  This Fixes #1385

- Move Repository to context manager
  Change the Repository Factory to be a context manager.
  All code using Repository was updated to the following
  with statement:
  with Repository(...).new as repo:
  repo.some_member()
  This is related to Issue #2412

- Allow terminal emulation setup from the cmdline
Marcus Schäfer's avatar Marcus Schäfer (marcus.schaefer) committed (revision 544)
- one ExitStack is enough
Marcus Schäfer's avatar Marcus Schäfer (marcus.schaefer) committed (revision 542)
- Move VolumeManager to context manager
  Change the VolumeManager Factory to be a context manager.
  All code using VolumeManager was updated to the following
  with statement:
  with VolumeManager(...).new as volume_manager:
  volume_manager.some_member()
  This is related to Issue #2412

- Move ImageSystem to context manager
  Change the ImageSystem class to context manager.
  All code using ImageSystem was updated to the following
  with statement:
  with ImageSystem(...) as image_system:
  image_system.some_member()
  This is related to Issue #2412
Marcus Schäfer's avatar Marcus Schäfer (marcus.schaefer) committed (revision 541)
- Refactor Command class
  fails to execute (e.g. because it returns -1 if you run `$cmd --version`). Hence we
  introduce the flag `raise_on_command_not_found`, which causes an exception to
  be raised if the command is not found. This makes it independent of the
  `raise_on_error` flag.
  Co-authored-by: Marcus Schäfer <marcus.schaefer@gmail.com>

- Allow empty cherry-picks for compliance test
  If we cherry-pick from main to master the compliance check
  will notice that a commit already exists. This is not an error
  and we can allow to continue the picking via --allow-empty

- Followup fix for .profile.extra
  Allow to source .profile.extra such that it is possible to
  read and act on e.g cmdline parameters. This is related to
  bsc#1218095

- Use unittest.mock from core python everywhere
  mock was an independent module that has been merged into the Python standard library.

- Include partprobe in initrd for s390
  This commit includes partprobe, in addition to parted, on
  s390 based systems. Otherwise partx is used and apparently
  it does not properly support s390.
  Fixes bsc#1219798
  Signed-off-by: David Cassany <david@localhost.localdomain>

- Fixed MicroOS integration test
  temporarily disable ignition/combustion/growpart and use
  kiwi's resize code for testing, oem-resize set to true
Marcus Schäfer's avatar Marcus Schäfer (marcus.schaefer) committed (revision 540)
- Allow empty cherry-picks for compliance test
  If we cherry-pick from main to master the compliance check
  will notice that a commit already exists. This is not an error
  and we can allow to continue the picking via --allow-empty

- py3.7 is out of scope for the tests
  Due to changes in commit fb69627ad3b4a3dfd66b35b64252ed52f81fd40b

- Add unit test runs for for python 3.7 & 3.8

- Use unittest.mock from core python everywhere
  mock was an independent module that has been merged into the Python standard library.

- Add support for reading .profile.extra in initrd
  If there is the file /.profile.extra available in the
  initrd, kiwi will import this additional environment file
  after the import of the standard /.profile file.
  This is related to bsc#1218095
Marcus Schäfer's avatar Marcus Schäfer (marcus.schaefer) committed (revision 539)
- Include partprobe in initrd for s390
  This commit includes partprobe, in addition to parted, on
  s390 based systems. Otherwise partx is used and apparently
  it does not properly support s390.
  Fixes bsc#1219798
  Signed-off-by: David Cassany <david@localhost.localdomain>

- Fixed MicroOS integration test
  temporarily disable ignition/combustion/growpart and use
  kiwi's resize code for testing, oem-resize set to true

- Stop using Compress.compressed_filename

- Remove useless print from test

- Add type hints to SystemSetup & CommandCapabilities

- Add type hints to CommandProcess

- Simplify command.call output_available and use CommandCallT

- Refactor Command.run() to return None if cmd not found
  Command.run() currently has a bit of a confusing behavior: if raise_on_error is
  False and the executable is not found, then a weird CommandT is returned (return
  code is -1 and stdout+stderr is None). This makes it possible to hanlde command
  not found errors separately, but it makes that needlessly verbose. So instead,
  let's just return None in *this* special case.
  That in turn uncovered, that in most cases when we set `raise_on_error=True`, we
  actually want an error if the command is not present but no error if the command
  fails to execute (e.g. because it returns -1 if you run `$cmd --version`
Marcus Schäfer's avatar Marcus Schäfer (marcus.schaefer) committed (revision 538)
- Fixed use of custom bootloader
  In case no bootloader implementation by kiwi should be
  used, users can specify the bootloader="custom" attribute.
  Instead of skipping the bootloader stage in the builders
  it is better to consistently create an instance of bootloader
  but raise if a method of the bootloader interface is called
  for which the custom bootloader has no implementation. This
  commit adds the consistency bits.
Marcus Schäfer's avatar Marcus Schäfer (marcus.schaefer) committed (revision 537)
- Fixed scope of BootLoaderConfig instance
  Due to the refactor of BootLoaderConfig into context managers
  we had two instances of BootLoaderConfig. However, the first
  instance holds data the second instance needs which caused an
  issue. This commit makes sure there is one BootLoaderInstance
  within the lifetime of required services

- Allow integration test to build outside of obs too

- Follow up fix for drop obsolete C tools from kiwi
  The spec file make call to build the C code was forgotten
  to be deleted
Marcus Schäfer's avatar Marcus Schäfer (marcus.schaefer) committed (revision 535)
- Drop obsolete C tools from kiwi
  For building custom initrd images kiwi provided some
  optional helper tools. All these C written tools are
  old and outdated and either not useful anymore or
  replaced by other tools that are part of the distribution
  matrix we support. Thus with the move to the next
  major release those can go away. This also include the
  package kiwi-tools which was used to provide them
  In addition to this change also the contributing chapter has
  been reworked. Due to recent changes and drop of obsolete
  components from kiwi as well as the effort to move the development
  setup to poetry, there is only one non python tool needed
  for the development of kiwi. The check for this tool has been
  moved into the Makefile and all other checks formerly done
  in the helper/install_devel_packages script were deleted.
Displaying revisions 41 - 60 of 594
openSUSE Build Service is sponsored by