-
-
Notifications
You must be signed in to change notification settings - Fork 461
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
[RFC] autogenerate INSTALL part of the README file most of the time #526
Comments
Thanks for the suggestion. It's a good idea. Though, I have used INSTALL.rst in some occasions to mention that a field is computed and stored to warn about the installation time, so I would propose to always append to the content of the INSTALL.rst the auto-generated part (although having the possibility to double content for those existing ones). |
thanks a lot for your comment @pedrobaeza. the "append" is OK for me and it's better to maintain. It just means three thinks :
1 You need to install the following python libraries :
2 You need to install the following system librairies :
Other general question : some contributors includes in |
I don't think the concatenation will suppose any problem, as you only need to append the new paragraphs making sure 2 carrier line as provided for being detected as a new block. About putting the module dependencies in the INSTALL, I do it when the module doesn't belong to the same repository, as newcomers (or not so new) don't know where to look for finding such dependencies. I know that with pip, such problem doesn't exist (it's the only advantage of this deploy system I appreciate), but we should do such tips. But generating it automatically is not possible, so let's keep it as manual. |
OK for me !
Well, regarding that point, indeed, if the module is present in another repository (OCA has > 200 repositories), it's great to mention it.
What about to call pypi (https://warehouse.pypa.io/api-reference/) Let's imagine an OCA/web 12.0 module, dependending on -> https://pypi.org/project/odoo12-addon-product/ doesn't exists -> Odoo Then, scanning current repo, we know easily that I think it's possible to generate automatically a text like : This module depends on other OCA modules:
Note : the url can be found in the That could save time for developpers and avoid obsolete |
If you think that can be feasible, it's OK. Not sure if we are avoiding the online connection in the generator or other point of failure. |
When executed locally, it could be a problem. If we don't have access to Internet or if pypi is down, it will prevent to generate readme files. When executed on the github CI or by the @OCA-git-bot, not a problem in my opinion as the process will fail if pypi is not available. |
The one thing I struggle a lot with when installing OCA addons is not the external dependencies, it's the Odoo dependencies, and especially the other OCA dependencies from other repositories, because, in a context where pip is not used for OCA addons, getting all the required OCA repositories in the addons path can be tedious. So please make sure this is part of this feature. |
Hi all,
Rational
Most of the time,
INSTALL
section of theREADME.rst
file is just a simple text to say which (external/python) library should be installed. The text could be autogenerated, parsing__manifest__.py
(external_dependencies
key) or (external_dependencies_override
key insetup.py
file). That way :INSTALL
section, specially during code changing. (during migration, refactoring, etc...)Proposal
Change the algorithm of
oca_gen_readme
INSTALL.rst
and noexternal_dependencies
-> nothing. (-> No changes)INSTALL.rst
andexternal_dependencies
is not null -> autogenerate text in theREADME.rst
INSTALL.rst
is present, use it. (-> No changes)temporary minor inconvenience
README.rst
file will be generated and pushed on pypi, if the text is not exactly the same.Note : 915 module versions over 11723 (8%) has
external_dependencies
defined. (but I guess that most of them has aINSTALL.rst
file). (Ref)CC main contributors : @sbidoul, @pedrobaeza, @guewen, @gurneyalex
thanks for your comments.
The text was updated successfully, but these errors were encountered: