Comments (11)
Yeh. Totally understandable. Also handy for aggregating any number of repos. Doesn’t need to be large.
Much simpler to use than the main aggregator. I guess if someone is looking for a simple way to add multiple addons to Odoo at once, make it available, they will find it here with the script.
Thanks for your help 👍
I’m going to spend some time looking into the methods you suggest.
I enjoy learning all this. ✌️💛
from maintainer-tools.
So because I was looking for a way to manage this, I just went ahead and wrote a little phyton script as a tool. perhaps its useful to add to the oca maintainer tool.
Maybe now i have done this, i should convert this over to a pull request or something?
I am not really sure how to do that, or if this is best practice for managing a large number of repos.
Forgive me, I am very new to this.
This script is a very basic utility tool designed to allow users to interactively select directories from a predefined base directory.
The script provides a user interface through the command line, using the curses library, to display, navigate, and select/unselect directories. The script also offers functionality to set a base directory and add default directories.
When the script is run it:
- Loads any existing configuration from a file.
- Gives the user an option to set or change the base directory where the repos have been cloned to and set or change the default directories that should always exist in your Odoo config file.
- Displays an interactive list of directories from the base directory for the user to select.
- Once selections are made, it saves the selections to a file and prints out the selected paths combined with the default directories that can be copy and pasted to you Odoo config file.
The script also checks and prompts the user to install required Python libraries if they are not already present.
Future plans:
Adding exception handling in various parts of the script to make it robust.
Attached is the py file (as a txt, because I don't know how to upload a py file) and a brief readme.
readme Repo Select.txt
from maintainer-tools.
pro-tip: https://github.com/acsone/git-aggregator
this is the basis. Atop of this you could use extra layers such as Doodba or Docky (and specially akretion/ak) but git-aggregator is definitely the basis. And yes to survive with Odoo, like it or not, you should have a pretty advanced git skills first.
from maintainer-tools.
I’m not sure that’s effective with a huge number of repos? Like if you were to clone all.
Could you give an example?
I’m struggling to work it out.
Say I have a dodo instance, I want to clone all the OCA repos so they are available in Odoo.
I want branch 14.0.
How would I manage it with git aggregator?
Do I need to list all 200+ repos?
I wouldn’t say I have advanced git skills.
Maybe intermediate?
I mean I built that script, only took me about 8 hours haha.
I guess I could write a script that would create the yml file.
from maintainer-tools.
That's not a real need. You don't need to clone the 200+ repos for any project.
from maintainer-tools.
Why does the clone-all script exist?
For me when I’m developing and testing - Building for different scenarios - I do want to be able to just have it there ready.
Be able to update them at a push of a button.
When I deploy a production environment, I’d likely only deploy the necessary repos.
Perhaps my script is not a bad way to handle that situation.
from maintainer-tools.
You'll find that it's better to populate what you need instead of trying to have it all. The clone_all option is a very old one, useful in some automation scenarios, but not for real life.
Closing this, as this is not an issue, but a question.
from maintainer-tools.
Do you think anyone will have any use for my script? Is it worth putting it in the maintainer repo to work alongside the clone-all script?
from maintainer-tools.
Which script?
from maintainer-tools.
Which script?
It’s in my second comment on this request.
I attached the script and a readme.
from maintainer-tools.
Well, the fact that there's no demand during all these years for something like that, may point to not being needed, but I let others to raise their hand to say if it's useful.
from maintainer-tools.
Related Issues (20)
- I faced with error while using this module in pre-commit. HOT 1
- About squashing translation commits HOT 2
- Update our tooling to support Odoo 17 HOT 20
- Mention `odoo-module-migrator` in migration procedure wiki page HOT 1
- Mention `oca-port` in migration procedure wiki page HOT 6
- oca-gen-addon-readme: exits with no error if `description.rst` is not present HOT 14
- Update migration v17 Wiki HOT 2
- Clarify CONTRIBUTOR.md formatting HOT 20
- Wiki migration 17.0: New Settings format HOT 1
- oca-gen-addon-readme: stop emitting an XML declaration HOT 1
- Fail to run pre-commit on OCA project: ERROR No matching distribution found for setuptools_scm HOT 2
- Update wiki "Migration to version 16.0" with `fields_view_get` becomes `get_view` HOT 2
- Mention data-hotkey in the 15.0 migration guide
- delete
- WIKI for documentation HOT 6
- module 'github3' has no attribute 'authorize'
- copy_maintainers script fails syncing the big teams HOT 6
- [17.0][mig] partner_statement: Migration to 17.0 HOT 1
- pandoc-3.2-1-amd64.deb added by precommit hook HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maintainer-tools.