Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: CI Builds now uses requirements from odoo repository

by
Leonardo Rochael Almeida
- 12/07/2017 21:21:41
Hi,

On 12 July 2017 at 16:08, Moises Lopez <moylop260@vauxoo.com> wrote:
Before:
 - We had a custom requirements.txt from OCA/maintainer-quality-tools (MQT) repository.

Now:
 - We deleted the previous custom requirements.txt from MQT
 - We are using the original odoo's requirements.txt

PR:

New possible errors
[...]
2. odoo 10.0 deleted packages.
  - Example "unittest2"

Solutions
For both cases the fix is adds explicitly the package and version to requirements.txt root file of your project.

Please, for the unittest2  case, do not re-add the file to `requirements.txt`. Instead simply replace all references to `unittest2` to `unitest` in your addon.

`unittest2` is a backport of `unittest` from Python 2.7 back to earlier versions of Python. There is no reason to use it.

Best regards,

Leo

Reference