Closed fwilhe closed 1 month ago
Yes, I think this is a good Idea.
Dependency management is an interesting topic. Have not put up my mind, let's discuss this maybe if you are interested in this topic.
For now, I am not publishing this library anywhere but install it via pip git+https://URL-TO-REPO
.
Generally, we have the following options
pip install git+https://github.com/gardenlinux/python-gardenlinux-lib.git
I am going for option 1. in this early phase.
If you would like to install use this library, you can do:
python3 -m venv venv
source venv/bin/activate
pip install git+https://github.com/gardenlinux/python-gardenlinux-lib.git
# now you can import python_gardenlinux_lib in your .py file or include it in your dependency list (.txt, pyproject.toml, whatever)
We could also move the hack/.*py helper to https://github.com/gardenlinux/python-gardenlinux-cli
Just wondering if it would make sense to have https://github.com/gardenlinux/gardenlinux/blob/main/hack/parse-aptsource.py in here. This is a pretty useful code originally from glvd that can parse apt package index files and I'm using it in various scripts already.
Not sure how dependency management would work then in the gardenlinux/gardenlinux repo. What do you think @Vincinator?