Commit graph

113 commits

Author SHA1 Message Date
kay0u
19df292c73 🎨 Format Python code with Black 2021-09-17 11:53:30 +00:00
Kay0u
fdc61c915c
add a missing decode in LogPipe class 2021-09-17 13:52:53 +02:00
zamentur
2543e5c8ab 🎨 Format Python code with Black 2021-09-12 21:56:17 +00:00
ljf
6e714314f0 [enh] Support bytes in write_to_file 2021-09-12 23:55:40 +02:00
ljf
bd557468d3 [enh] read_yaml support stream 2021-09-02 02:28:51 +02:00
Alexandre Aubin
a263039958 Code cleanup / reorganize 2021-08-27 21:17:39 +02:00
Alexandre Aubin
fa509e6c2e Merge branch 'dev' into rework-authenticator-system 2021-08-22 22:33:33 +02:00
Alexandre Aubin
3585ba697a Remove the damn :s} in locale strings 2021-08-20 10:24:23 +02:00
Alexandre Aubin
3c0542ef24 Merge branch 'dev' into rework-authenticator-system 2021-08-20 10:13:02 +02:00
Alexandre Aubin
2a89a82660 Add warning when trying to feed non-string values to Popen env 2021-08-19 18:15:30 +02:00
Alexandre Aubin
d0c569eead More cleaning up, test fixing 2021-06-13 18:51:13 +02:00
Kayou
04b7f7bc6f
wait 1s for message in call_async_output 2021-05-13 23:28:52 +02:00
Kay0u
affb54f84d
fix tests 2021-03-01 10:45:50 +01:00
Alexandre Aubin
cafe68f30e Move LogPipe directly into process.py, we don't need to split that stuff on different files 2021-02-28 21:20:42 +01:00
Alexandre Aubin
e85b9f71d5 Handle the actual logging from the parent process, otherwise we run into a shitload of complex issues to interact with the websocket 2021-02-28 21:18:25 +01:00
Alexandre Aubin
bdd048197d Misc logging fixes 2021-01-31 16:14:06 +01:00
Alexandre Aubin
e7a01c68f5 Revert "[mod] unify all subloggers under moulinette.core"
This reverts commit c88f127b8c691c6121229402be4375fdc62ed6bf.
2021-01-31 16:14:06 +01:00
Laurent Peuch
10576f7138 [mod] unify all subloggers under moulinette.core 2021-01-31 16:14:06 +01:00
Kay0u
63ae3b677f
remove stdinfo 2021-01-26 16:38:36 +01:00
Kay0u
ce3971093d
call_async_output: we can't use stdinfo in kwargs, close stdout, stderr and stdinfo if subprocess.Popen raise an exception 2021-01-25 18:53:33 +01:00
Alexandre Aubin
0de154678c Black again, with the right version this time.. 2021-01-20 05:59:24 +01:00
Alexandre Aubin
677efcf6d6 Black? 2021-01-20 05:46:05 +01:00
Alexandre Aubin
570e53234a Drop support for python2 2021-01-20 05:35:35 +01:00
Alexandre Aubin
8105718705
Merge branch 'dev' into enh-python3 2021-01-19 23:04:25 +01:00
Alexandre Aubin
84f17f7830 Rework / simplify the whole story of call_async_output that was a complete mess and broken by Python 3 for some reason. New code should be much more simple and fix the synchronization between debug, info, warnings, and probably also more performant overall ? 2021-01-01 04:00:57 +01:00
Alexandre Aubin
d0b43f0e4a Merge branch 'dev' into enh-python3 2020-12-31 23:46:05 +01:00
Alexandre Aubin
0d58eff6a2 Misc encoding fixes 2020-12-31 23:45:48 +01:00
Alexandre Aubin
c7ba45596c
Merge pull request #259 from YunoHost/format-code
format
2020-12-30 22:27:31 +01:00
Kay0u
c1669174c3
add options to write_to_json 2020-12-11 15:08:31 +01:00
Kay0u
1d73dac969
fix tests 2020-12-04 22:16:32 +01:00
Kay0u
bd27799283
Merge remote-tracking branch 'origin/dev' into enh-python3 2020-12-04 22:15:36 +01:00
Kay0u
b31e2b026e
format 2020-12-04 16:38:12 +01:00
Alexandre Aubin
f01466d6ef Always strip() the output of check_output 2020-10-31 18:53:40 +01:00
Alexandre Aubin
2501ecda56 Ugly hack to have the name of the main logger, otherwise error/exception messages ain't displayed 2020-08-27 19:21:48 +02:00
Alexandre Aubin
3a3ce804d6 Wat da fuke pytz 2020-04-02 23:44:15 +02:00
Alexandre Aubin
6e5b389e71
Merge branch 'stretch-unstable' into enh-python3 2020-04-01 19:41:11 +02:00
Kay0u
cba7c7e209
Fix format 2020-03-30 23:08:12 +02:00
Kay0u
85d48ae07d
Merge branch 'stretch-unstable' into moar-tests 2020-03-30 23:04:19 +02:00
Alexandre Aubin
06d8c48918 Fixing a super weird issue ljf encountered where the reader crashed because couldn't read the filescriptor ... Yolocommiting, let's see if this breaks something during our tests during next weeks ... 2020-03-29 00:41:37 +01:00
Kay0u
247411cb9f
make flake8 happy 2020-01-02 23:39:35 +08:00
Kay0u
6edc021f83
Add more tests 2019-12-22 00:36:20 +08:00
Kay0u
641126e344
Minimal change to support python3 2019-12-20 16:09:57 +08:00
decentral1se
54b8cab133 Apply Black on all the code base 2019-11-25 17:21:13 +01:00
Luke Murphy
2c84ee1541
Add tests for text/serialize modules
Also take a pass on the docstrings.
2019-08-28 17:57:16 +02:00
Alexandre Aubin
3878ffdc04
Merge pull request #213 from YunoHost/detailed_error_messages_for_assert
[mod] add detail error messages on asserts
2019-08-18 14:12:56 +02:00
Alexandre Aubin
b393d55ebd Gotta catch them all... 2019-08-05 18:01:05 +02:00
Alexandre Aubin
2e2e627894 [yolo] Add a write_to_yaml utility similar to write_to_json 2019-08-05 17:59:10 +02:00
Luke Murphy
d52a574f77 Test documentation under Tox 2019-08-04 19:46:20 +02:00
Laurent Peuch
f49c004a59 [mod] add detail error messages on asserts 2019-08-04 18:48:16 +02:00
Alexandre Aubin
758778a04b Typo 2019-08-03 21:24:48 +02:00