47 Commits (4e3f9fb6b32187852e5ef816cd3e698512fcb7b4)

Author SHA1 Message Date
Adriaan de Groot d8ecd302e1 [libcalamares] Apply coding style
- minor space issues
 - drop a blank line after moc-warnings.h to avoid if being sorted
   downwards, after the MOC file it's protecting
5 years ago
Adriaan de Groot 6d29c19e3e [libcalamares] Progress is float 5 years ago
Adriaan de Groot b0abb99ee1 [libcalamares] Don't log useless FUNC_INFO for Python
- When a Python module calls utils.debug(), there's no point
  in logging the C++ funcinfo that passes the parameters on;
  don't use cDebug() with its attendant magic.
5 years ago
Adriaan de Groot e72ecaafd3 Merge branch 'kpmcore-manager'
Introduces a "partitioning service" into libcalamares,
shuffles a bunch of things into it, tries to help out
with settling the system between partitioning actions.
5 years ago
Adriaan de Groot c1151cbcfa [libcalamares] Update copyright info 5 years ago
Adriaan de Groot 95722541d0 [libcalamares] Untangle Python includes
- Use BoostPython.h to manage overall includes
 - Remove local home-grown variations
5 years ago
Adriaan de Groot f6d89354a1 Merge branch 'master' into kpmcore-manager 5 years ago
Adriaan de Groot ac75c63001 [libcalamares] Reduce warnings with Clang 9 (Boost::Python)
- The boost headers fall foul of tons of Clang warnings, so introduce
   a mechanism like moc-headers for turning off most of those warnings.
5 years ago
Adriaan de Groot 1afa9c4d08 [libcalamares] Apply current coding style to all of libcalamares/ 6 years ago
Adriaan de Groot cac07c1472 [libcalamares] Use std::chrono::seconds for timeouts
- Distinguish just-an-int from seconds all across the API
6 years ago
Adriaan de Groot d08325d3d0 [libcalamares] Move mount to the partition service
- Move mount() out of CalamaresUtils::System and into
   the partitioning service.
 - Adjust PythonJobApi (only consumer of that service).
6 years ago
Adriaan de Groot 8d0f076591 [libcalamares] Rename CalamaresUtils -> String
- The only remaining functions in the file are string-related, so
   rename to match their purpose.
 - Drop this include file from most places, since they don't actually
   use the string functionality at all.
6 years ago
Adriaan de Groot aaeea16871 [libcalamares] Make logging more consistent 6 years ago
Adriaan de Groot aebe67fde7 [libcalamares] Improve debug message while looking for gettext 6 years ago
Adriaan de Groot 527392f0af [libcalamares] Update Copyright statement 6 years ago
Adriaan de Groot 093240c131 [libcalamares] Be less chatty in Python scripts
- When finding the gettext path, the debug output was very
   chatty and didn't include an indication that it was looking
   for translations.
6 years ago
Adriaan de Groot dd8e53dc22 Copyright: update copyright lines on files touched in 2018
Contributions from:
  Adriaan de Groot <groot@kde.org>
  Gabriel Craciunescu <crazy@frugalware.org>
  AlmAck <gluca86@gmail.com>
  Andrius Štikonas <andrius@stikonas.eu>
  Caio Carvalho <caiojcarvalho@gmail.com>
  Raul Rodrigo Segura <raurodse@gmail.com>
7 years ago
Adriaan de Groot 84d599625f [libcalamares] Give Python jobs a warning()
- Add libcalamares.utils.warning() alongside debug() for
   Python modules to output warnings.
7 years ago
Adriaan de Groot 762ad54344 Documentation: change http links to GitHub to https 7 years ago
Adriaan de Groot a0a8ab0048 [libcalamares] Refactor Python target_env calls
This is why the whole refactoring started: to get the process output
and exit code in one spot so we can attach the process output
to the (Python exception) CalledProcessError in all the code
paths, not just those that are explicitly looking for output.
7 years ago
Adriaan de Groot 6693d91152 [libcalamares] Refactor bp:list -> QStringList 7 years ago
Adriaan de Groot f5aec1ad8a [libcalamares] Add output to CalledProcessError
- Refactor, internal _handle_check_target_env_call_error doesn't need
   to be in header or visible.
 - Add optional output (of the command) to the Python exception.
7 years ago
Adriaan de Groot 5dc70ac261 Python-i18n: apply C++-coding style 8 years ago
Adriaan de Groot 538c59adb9 Python-i18n: add /usr/local/share/locale to search 8 years ago
Adriaan de Groot 22fd428664 Python-i18: avoid duplicate path entries 8 years ago
Adriaan de Groot 3a1d5ed533 Python-i18n: (inefficiently) search for suitable gettext dirs 8 years ago
Adriaan de Groot 78b3c8ed32 Python-i18n: allow None as a gettext path (searches default) 8 years ago
Adriaan de Groot 74be2fd098 Python-i18n: implement gettext functions in libcalamares.utils
- remove Job.gettextPath
 - add libcalamares.utils.gettext_path()
 - add libcalamares.utils.gettext_lang()
 - modify examples in main.py
 - add some gettext debug-output from dummypython
 - correct namespace mis-labeling
 - provide two forms of GlobalStorage
   - regular use, has a JobQueue with storage
   - testing use, creates GlobalStorage separately, provide
     independent access to that for Python.
8 years ago
Adriaan de Groot 6370898154 Python-i18n: make it compile again 8 years ago
Adriaan de Groot cbfdd8690d Python-i18n: WIP, moving API to libcalamares.utils 8 years ago
Adriaan de Groot b922d88b0f Python-i18n: add a gettext_path for python job modules 8 years ago
Teo Mrnjavac 0684a761bd Copyright. 9 years ago
Teo Mrnjavac f8078be2fd Wrap CalamaresUtils::obscure in CalamaresPython. 9 years ago
Teo Mrnjavac 42e465aa10 CalamaresUtils::System is now a class. 10 years ago
Teo Mrnjavac bf885d65db chroot calls are now generic "target env" calls. 10 years ago
Teo Mrnjavac 7a3ce363b3 Add option to run process jobmodules in chroot. 11 years ago
Teo Mrnjavac f90bf469dd Add chrootOutput/check_chroot_output to libcalamares utils API. 11 years ago
Teo Mrnjavac 45ac91c784 Add check_chroot_call to libcalamares Python interface. 11 years ago
Teo Mrnjavac e7e57689d8 Make sure chrootCall with args list actually passes the args as list. 11 years ago
Teo Mrnjavac 63534f7154 Add mount and chrootCall utilities to libcalamares + Python wrappers. 11 years ago
Teo Mrnjavac fb328494b3 Make the libcalamares Python API better for PEP8 11 years ago
Teo Mrnjavac 845ae05f7e Added debug( str ) to the Python API. 11 years ago
Teo Mrnjavac 78de11a412 Emit job progress from Python jobs. 11 years ago
Teo Mrnjavac 2636a1273f Add job.setprogress to Python API. 11 years ago
Teo Mrnjavac d9f4c74537 Add support for config map to Python job API.
Rename PythonJobHelper ==> CalamaresPython::Helper.
Add QVariant to boost::python::object conversion functions.
Rename some constants in the libcalamares Python API.
11 years ago
Teo Mrnjavac 2f03dfa43b CalamaresPrivate ==> CalamaresPython 11 years ago
Teo Mrnjavac a61a36d99d We have a Python API for jobmodules!
Created a Boost.Python module interface in libcalamares.
Added a PythonJob wrapper and exposed it in the Python module.
Rename target calamareslib ==> calamares so in Python it's libcalamares.
Python-related classes in libcalamares that aren't exported as C++
symbols are now in a CalamaresPrivate namespace.
Import the libcalamares python module into every Python script before
running it.
Added Python error handling to PythonJobHelper.
Added some more testing code to dummypython module.
11 years ago