runbot/runbot_cla
Christophe Monniez 21c31b4c3c [REF] runbot, runbot_cla: upgrade to Odoo 11.0
The previous code of runbot and runbot_cla was made for Odoo API version
8.0. This commit makes it work with Odoo API 11.0 and Python 3.

Also, the present refactoring splits the code into multiple files to
make it easier to read (I hope).

The main change due to Python 3 is the job locking mechanism:
Since PEP-446 file descriptors are non-inheritable by default.
A new method (os.set_inheritable) was introduced to explicitely make
fd inheritable. Also, the close_fds parameter of the subprocess.Popen
method is now True by default.

Finally, PEP-3151 changed the exception raised by fcntl.flock from IOError to OSError
(and IOError became an alias of OSError).

As a consequence of all that, the runbot locking mechanism to check if a
job is finished was not working in python3.
2018-03-12 14:36:33 +01:00
..
__init__.py [REF] runbot, runbot_cla: upgrade to Odoo 11.0 2018-03-12 14:36:33 +01:00
__manifest__.py [REF] runbot, runbot_cla: upgrade to Odoo 11.0 2018-03-12 14:36:33 +01:00
runbot.py [REF] runbot, runbot_cla: upgrade to Odoo 11.0 2018-03-12 14:36:33 +01:00