* [gentoo-soc] Week 2 report, Automated Gentoo system updater
@ 2023-06-09 23:41 Kulikov Stepan
0 siblings, 0 replies; only message in thread
From: Kulikov Stepan @ 2023-06-09 23:41 UTC (permalink / raw
To: gentoo-soc; +Cc: Andrey F., juippis
[-- Attachment #1: Type: text/plain, Size: 1996 bytes --]
Hello everyone and happy Friday!
*Week 2 Wrap-Up:*This week all about packaging and testing.
The updater is still in its infancy, but it's much better to package
everything nicely right away
and not think about this in the future.
I kicked things off by bundling all the code into one directory and set it
up as a Python module.
Then, with some automation magic I whipped up a Github Actions workflow
<https://github.com/Lab-Brat/gentoo_update/blob/main/.github/workflows/main.yml>
that takes care of
publishing the package to PyPI <https://pypi.org/project/gentoo-update/>.
The idea was to make it installable using pip.
But to my surprise it turns out Python pip had it's permissions in OS
severely limited after some
recent changes. To get the package to install on the system, it demands the
‘--break-system-packages’
flag. This doesn't look very user friendly 😅.
So, I took a different route and crafted an ebuild
<https://github.com/gentoo/guru/commit/f40b4a27e8ded093f6c60082294f677cc97ff09e>
instead, which I've shipped off to the GURU repository.
Hopefully it should be ready to download in a day or two!
Apart from packaging I also penned some unit tests for the main Python file
and did a more testing in Docker containers and VMs.
Finally, in the beginning of the week I composed a blog post on my personal
website <https://labbrat.net/blog/gsoc2023/week1/> about week 1
(I'm still figuring out how to publish on Gentoo's blog, but I'll get
there).
*Week 3 Plan:*The updater's output currently is too messy and it's all over
the place. Time to tidy that up!
An important part of the project is the parser that will read and
understand logs from emerge.
I plan to start coding the parser next week.
And I can't forget – I need to learn how to post blogs on Gentoo's website.
That's all, have a good weekend everyone!
---
Project repository: https://github.com/Lab-Brat/gentoo_update
Best regards,
Kulikov Stepan
[-- Attachment #2: Type: text/html, Size: 2582 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-06-09 23:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-09 23:41 [gentoo-soc] Week 2 report, Automated Gentoo system updater Kulikov Stepan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox