-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question : how to install non-oca modules present in other repo ? #23
Comments
Hi Sylvain, The simplest is to add git references in the Alternatively, you could setup an internal PEP 503 package index such as devpi and publish your addons there using the oca-github-bot. It's a bit more work to setup. Or you could even configure your bot to publish to PyPI. Do you mind if I label this as a question and not a bug ? |
Hi @sbidoul. First thanks for your quick answer.
I usually prevent to publish grap modules Odoo appstore. The reason is that some of the modules are incubated, but can be at some point shared under OCA umbrella. If it occures, it generates conflict on the stores and the old version remains the visible one. Should be the same problem with pypi i guess.
Of course not ! the current issue template only propose "bug report" or "feature request". |
Addendum : i continue to deploy this strategy.
That's quite a regression regarding the previous design with the file oca_dependencies.txt (1 line before) Except that annoying point, implementing the oca-ci is very easy. Thanks ! |
Hi @sbidoul. I have a trouble with one of my repository.
It seems similar to OCA/website#588 (comment) but :
do you have any idea ? Note : |
Where is
Sure, that would be great !
Improving the README of this project would certainly be useful. For instance with an example GitHub workflow that uses it and a mention of test-requirements.txt, etc. The OCA Guidelines will also need updating to mention these, and at some point, remove Travis-specific stuff.
For OCA 15.0 there is no more Travis. For 13 and 14, PSC can run |
Hi @legalsylvain and @sbidoul I have run into a similar issue while setting up a CI pipeline for a private repository, using the test-requirements as you suggest works as long as you have control of the private repository the dependencies are in, because you can create the setup folder and use the syntax you suggested in the test-requirements. However, when the repository is not under your control (odoo/enterprise) you have no way to install dependencies with pip. Do you have any workaround for this? Apart from this problem, the project works really well and it is faster than its predecesor. Thanks for you help. |
@LoisRForgeFlow actually, it is possible to package multiple addons (such as odoo/enterprise) with setuptools-odoo. This is explained in the docs. You can create your own setup.py and with a symlink structure you can package odoo/enterprise. That is what we do for our enterprise projects, so we can pip freeze it and such... But that is not strictly necessary. If you can bring odoo/enterprise in the test image, you can simply update the Odoo addons-path in $ODOO_RC to point to it. Pip install of addons is compatible with addons path and you can mix both. |
@sbidoul Interesting, but if you depend in an enterprise addon you cannot package multiple addons according to the documentation (https://pypi.org/project/setuptools-odoo/#packaging-multiple-addons). The second proposal was the hint I needed, it is working perfectly. Many thanks! |
Not sure what you mean with that ? Actually you can, because setuptools-odoo has built-in knowledge of all the CE and EE addon names and considers that dependencies on these addons are satisfied by the |
@sbidoul I did not try, I just red this in the docs:
I understood that from that sentence, but if you do it, I have no doubt it works. |
@LoisRForgeFlow hm, indeed that calls for a clarification. I'm adding a section to the setuptools-odoo documentation in acsone/setuptools-odoo#79. |
Hi, I have same problem as @legalsylvain applied same configuration but in my case my repo is private For testing purpose i make the repo as public and working, any idea to working in private repo? Thanks for any suggestion |
You need to use git+ssh// URLs and find a way to bring in the ssh private key. |
Hi @sbidoul. Do you have any suggestions or examples on how to add enterprise modules among those available for testing? |
I'm closing this issue because the question is solved. Regarding EE modules, please open a new issue. regards. |
Hi.
First, thanks a lot for this tools !
I tried to change the CI of my company for my custom repositories, using oca-ci with github workflow actions.
for the first one : (https://github.com/grap/grap-odoo-incubator) : all is great. (I had to implement that fix Incorporate pre-commit action oca-addons-repo-template#102, thanks @sbidoul).
note : the grap-odoo-incubator repo only depends on odoo and oca modules.
for the second one (https://github.com/grap/grap-odoo-business) : I have an error during the installation of the dependencies.
https://github.com/legalsylvain/grap-odoo-business/runs/4869488630?check_suite_focus=true#step:4:205
The CI can't install a module (
produt_print_category
) that is present in the first repo (grap-odoo-incubator, not odoo nor oca). it tries via pip. how can I change the call ofoca_install_addons
to have the possiblity to install modules present in non OCA repositories ? The repo is correctly referenced in theoca_dependencies.txt
.thanks in advance, and sorry if my question is not relevant.
The text was updated successfully, but these errors were encountered: