Adriaan de Groot
283668cb01
[libcalamares] Update sponsor / maintainer information
2024-02-17 11:25:40 +01:00
Adriaan de Groot
25f9eaf523
[libcalamares*] Prefer < comparisons in Qt version
2024-02-04 22:06:55 +01:00
Adriaan de Groot
fd2610c739
[*] Remove pre-Qt-5.15 compatibility ifdefs
2024-02-04 22:06:51 +01:00
Adriaan de Groot
1b655c26ef
[libcalamares] Remove TMP-related environment variables
...
When running a command in the chroot, don't set TMP (and similar)
variables because those directories might nog make sense in the
target (yet).
FIXES #2269
2024-01-12 23:04:26 +01:00
artoo
78eeb963a3
libcalamares: add compat and packages headers to be installed;
...
Use case would be customization of default modules, eg packagechooser requires compat/Variant.h and packages/Globals.h to compile in the calamares-extension repo
Signed-off-by: artoo <artoo@artixlinux.org>
2024-01-02 22:57:08 +01:00
Adriaan de Groot
115f00f5cd
[libcalamares] Rename tr() functions to avoid confusing lupdate
2023-12-25 14:24:06 +01:00
Adriaan de Groot
558f045b65
Merge pull request #2252 from calamares/issue-2225
...
Add support for systemd-machine-id variations
2023-12-11 22:18:03 +01:00
Adriaan de Groot
0d11de4525
[libcalamares] Add missing parameter name
2023-12-08 22:04:46 +01:00
Adriaan de Groot
7a9a50d702
[libcalamares] AutoMount / kded6 has been tested by KaOS
2023-11-26 21:53:04 +01:00
Adriaan de Groot
01e7cf44c2
[libcalamares] Placeholder for KF6 automount DBus calls
2023-11-21 15:22:09 +01:00
Adriaan de Groot
146f549552
[libcalamares] Return None for empty GS keys
...
All unknown-variants return None, but this only
happens in practice with an empty variant (e.g.
a configuration key that is empty in the YAML).
FIXES #2237
2023-11-16 23:17:33 +01:00
Adriaan de Groot
1e1e12fad2
Merge branch 'issue-2018' into calamares
...
FIXES #2018
2023-11-13 00:47:31 +01:00
Adriaan de Groot
d9aeb88275
[libcalamares] Add a clear() to GlobalStorage
...
While this isn't useful in production, it makes tests a lot
simpler to write since you don't have to wrestle with
creating new GS objects in order to start fresh.
2023-11-12 22:41:02 +01:00
Adriaan de Groot
6e9dac3417
libcalamares: apply coding style
2023-11-07 23:43:09 +01:00
Adriaan de Groot
1051033324
libcalamares: create Python module libcalamares by hand
...
From inside Calamares, register libcalamares to the
interpreter by hand; from external Python processes
the regular extension library hooks are called.
Tested by running ./build/localmodule dummypython
(which means that the shared library is not present
in the current directory, so then `import libcalamares`
fails if the module is not already registered --
a test scenario that previous attempt at module
import missed).
2023-11-07 21:42:05 +01:00
Adriaan de Groot
a629e2650a
libcalamares: importing the embedded python module can fail
2023-11-07 13:40:10 +01:00
Adriaan de Groot
5346008b7a
libcalamares: repair names for recent translations
...
bqi is one possible name of Luri / Lhur language,
as far as I can tell -- there is also Northern Luri,
which is supported by Qt and has code lrc.
ie is Interlingue, which Qt maps to C locale.
Work around that by mapping it to interlingua.
2023-11-07 13:25:37 +01:00
Adriaan de Groot
d2c3f7a326
libcalamares: improve formatting of Qt error messages
...
These come through without function information, but we
can format them in one line by mis-using function info.
2023-11-07 00:53:10 +01:00
Adriaan de Groot
b57db97412
libcalamares: massage logging
...
Make the log-to-file always follow columns (with time
at the start of each line) so that stdout and the
log file look more alike.
2023-11-07 00:53:10 +01:00
Adriaan de Groot
18689074a8
libcalamares: add accessor for settings path
2023-11-07 00:53:10 +01:00
Adriaan de Groot
c5139e62bc
libcalamares: one more round with module
...
Tested with:
- python -c 'import libcalamares ; print(libcalamares.VERSION);'
- loadmodule dummypython
- full install of KaOS
2023-10-24 23:46:58 +02:00
Adriaan de Groot
1c0559affa
libcalamares: don't bind to temporaries
...
Clang warns about range-for-loop binding a reference
to temporaries, and these are pybind11 handles anyway
so are cheap to copy.
2023-10-24 22:18:10 +02:00
Adriaan de Groot
d435ddd955
libcalamares: don't name unused parameters
2023-10-24 22:15:10 +02:00
Adriaan de Groot
5d1b94a708
libcalamares: don't name unused parameters
2023-10-24 22:14:26 +02:00
Adriaan de Groot
f24df7ccc9
libcalamares: use Pybind11Helpers consistently
...
This header includes all of the needed pybind11 headers,
but also wrangles defines and warnings in one spot.
2023-10-24 22:13:06 +02:00
Adriaan de Groot
019450132e
libcalamares: add missing parent constructor call to PythonJob
2023-10-24 22:06:25 +02:00
Adriaan de Groot
dac6931e81
libcalamares: switch Python to an embedded module
...
This breaks python scripts that `import libcalamares` running
outside of the framework (e.g. outside of a Calamares job).
2023-10-24 15:33:26 +02:00
Adriaan de Groot
8bea736651
libcalamares: make VERSION in Python modules the full-version
2023-10-24 15:31:09 +02:00
Adriaan de Groot
da0ce1d3d6
libcalamares: move Python module-definitions to the Job
2023-10-24 15:29:07 +02:00
Adriaan de Groot
3ffa4f5bf6
libcalamares: mount() is part of the Python API
2023-10-24 15:24:12 +02:00
Adriaan de Groot
0d3519fe79
libcalamares: tidy up API documentation
...
The __attribute__ on the namespace confuses clang-tidy, which is
why this one namespace is indented.
2023-10-24 15:14:08 +02:00
Adriaan de Groot
ede1c29a0e
libcalamares: embed the pybind11 API differently
2023-10-24 15:04:08 +02:00
Adriaan de Groot
8ebba4fcff
libcalamares*: adapt consumers of network manager
2023-10-24 02:01:19 +02:00
Adriaan de Groot
35998066c2
libcalamares: re-do singleton-ness of NetworkAccessManager
...
The Calamares Manager should not be a singleton; it is needed
in multiple threads (e.g. from QML). It can have a singleton
Private manager that caches and shares things, though.
2023-10-24 02:01:19 +02:00
Adriaan de Groot
f0d13fc9c4
libcalamares: repair build for Qt6
2023-10-23 22:20:02 +02:00
Adriaan de Groot
8bd2d684b9
libcalamares: catch Python errors in more places
...
- (syntax) errors in the pre-script or the module's script
should not trigger a fatal error in Calamares (i.e. terminate
called because of uncaught Python exception).
- Log more clearly where the error is being caught.
2023-10-23 01:18:45 +02:00
Adriaan de Groot
e5c2066d28
libcalamares: fix build
2023-10-22 14:38:25 +02:00
Adriaan de Groot
4297a00537
Merge pull request #2210 from bitigchi/strings
...
Improve string formatting and context
2023-10-22 13:50:38 +02:00
Adriaan de Groot
ff760d84a3
libcalamares: implement mount() for Python
2023-10-22 13:32:22 +02:00
Adriaan de Groot
af9b41e1a9
libcalamares: provide pybind11 constructor for GS
...
This constructor (of the proxy object) is used only by
test-code (see also comment in the Boost implementation)
but needs to be made explicit now.
2023-10-22 13:20:29 +02:00
Adriaan de Groot
b2337c82a7
libcalamares: repair submodule utils
2023-10-21 16:34:07 +02:00
Adriaan de Groot
63b0589382
CI: apply style tool across the entire codebase
2023-10-17 22:24:46 +02:00
Adriaan de Groot
3594a64bd1
Python: add the processing-output functions, too
2023-10-16 20:07:39 +02:00
Adriaan de Groot
d0dd4b765c
Python: add checked and stdout-returning API
2023-10-16 20:07:39 +02:00
Adriaan de Groot
995f6c8ce3
Python: add target_env_call API
2023-10-16 20:07:39 +02:00
Adriaan de Groot
89ede4bcce
Python: add the API to the public header again
...
- add libcalamares.job
- add libcalamares.globalstorage
2023-10-16 20:07:39 +02:00
Adriaan de Groot
ec5a4cb423
Python: support injected pre-script (for testing)
2023-10-16 20:07:39 +02:00
Adriaan de Groot
24de6b69c4
Python: deal with Qt5 compatibility
...
QDebug can't log std::string in Qt5, it seems
2023-10-16 20:07:39 +02:00
Adriaan de Groot
0468ff400b
Python: add top-level descriptive variables
2023-10-16 20:07:39 +02:00
Adriaan de Groot
30e677a762
Python: call the module's run() function
2023-10-16 20:07:39 +02:00