Browse Source

Merge PR #2038 into 12.0

Signed-off-by pedrobaeza
12.0-mig-module_prototyper_last
OCA-git-bot 3 years ago
parent
commit
79b1cd4796
  1. 2
      module_analysis/models/ir_module_module.py
  2. 2
      module_analysis/readme/INSTALL.rst
  3. 3
      requirements.txt

2
module_analysis/models/ir_module_module.py

@ -146,7 +146,7 @@ class IrModuleModule(models.Model):
for file_path, file_ext in file_list:
file_res = SourceAnalysis.from_file(
file_path, '',
file_path, "",
encoding=self._get_module_encoding(file_ext))
for k, v in analysed_datas.get(file_ext).items():
v['value'] += getattr(file_res, k)

2
module_analysis/readme/INSTALL.rst

@ -1,3 +1,3 @@
To use this module, you have to install the ``pygount`` python librairy.
``pip install pygount``
``pip install pygount>1.2.1``

3
requirements.txt

@ -3,5 +3,4 @@ openpyxl
xlrd
xlwt
pysftp
# version 1.2.0 deprecates the API module_analysis uses
pygount<1.2.0
pygount>1.2.1
Loading…
Cancel
Save