Small amendment: On 2016-02-19 23:50, Cédric Krier wrote: > Hi, > > We need your help to add support for Python 3 on all modules. > We have 93 modules for now and only about 15 are ported. > The process is quite easy for most of the modules, it just takes some > times to run the tests. > > Here is the process to migrate one module: > > - Pick the first not ported module from the list by running: > > $ module_list.py > > from https://hg.tryton.org/tryton-tools > Rem: all modules that depends no webdav or ldap can not be ported > for now. > > - Tell it on https://bugs.tryton.org/issue3211 (to avoid duplicate > work) > > - Apply the patch: https://bugs.tryton.org/file2329/patch > > $ hg import --no-commit https://bugs.tryton.org/file2329/patch > > It should apply without any problem. > > - You must convert all global __metaclass__ declaration by moving it > inside the class (above the __name__) (only for classes that > doesn't inherit from Model*). > > - If there is a doctest, you must register them with the keyword: > convert_2to3_doctests=['tests/<name>.rst', ...] > inside the setup after the use_2to3=True.
And also add to DocFileSuite the checker=doctest_checker (see http://hg.tryton.org/trytond/rev/e6b51c70065b) > > - Run tox for at least py27 and one of py3* (with SQLite or > PostgreSQL) > > - Fix the issues > > - Upload a codereview and post it on > https://bugs.tryton.org/issue3211 (with components) > > I will do my best to push ASAP the modules to not block other depending > modules. -- Cédric Krier - B2CK SPRL Email/Jabber: cedric.kr...@b2ck.com Tel: +32 472 54 46 59 Website: http://www.b2ck.com/ -- You received this message because you are subscribed to the Google Groups "tryton-dev" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton-dev/20160224225659.GP10143%40tetsuo.