- Mailing Lists
- Contributors
- Re: V14, python version
Archives
- By thread 1419
-
By date
- August 2019 59
- September 2019 118
- October 2019 165
- November 2019 97
- December 2019 35
- January 2020 58
- February 2020 204
- March 2020 121
- April 2020 172
- May 2020 50
- June 2020 158
- July 2020 85
- August 2020 94
- September 2020 193
- October 2020 277
- November 2020 100
- December 2020 159
- January 2021 38
- February 2021 87
- March 2021 146
- April 2021 73
- May 2021 90
- June 2021 86
- July 2021 123
- August 2021 50
- September 2021 68
- October 2021 66
- November 2021 74
- December 2021 75
- January 2022 98
- February 2022 77
- March 2022 68
- April 2022 31
- May 2022 59
- June 2022 87
- July 2022 141
- August 2022 38
- September 2022 73
- October 2022 152
- November 2022 39
- December 2022 50
- January 2023 93
- February 2023 49
- March 2023 106
- April 2023 47
- May 2023 69
- June 2023 92
- July 2023 64
- August 2023 103
- September 2023 91
- October 2023 101
- November 2023 94
- December 2023 46
- January 2024 75
- February 2024 79
- March 2024 104
- April 2024 63
- May 2024 40
- June 2024 160
- July 2024 80
- August 2024 70
- September 2024 62
- October 2024 121
- November 2024 117
- December 2024 89
- January 2025 59
- February 2025 104
- March 2025 96
- April 2025 107
- May 2025 52
- June 2025 72
- July 2025 60
- August 2025 81
- September 2025 124
- October 2025 63
- November 2025 22
Contributors
Re: V14, python version
Hi,
An example of ugly code to support python 3.7 or lower is here
Probably this code should go in many modules.
Thanks Moises for these informations
As said by Olivier Dony:
For Odoo.sh and SaaS deployment we generally use common sense: we run the version of Python that is shipped with the latest Ubuntu LTS at the time of the release, because that's what we deploy on. We expect it to be the most stable and the most widely run version for our users. For v13 that was Python 3.6, and for v14 that's Python 3.8
Common sense helps a lot in life generally speaking. All those which implement odoo projects should be advised to follow common sense I suppose.
OCA could help to spread the word of common sense.
Update python version in project is not so challenging (specifically at the beginning of the project) compared to having specific code in modules according to versions.
my 2 cts
Consultant
Odoo Intégration / Développement
Le sam. 17 oct. 2020 à 12:01, Stéphane Bidoul <stephane.bidoul@acsone.eu> a écrit :
Thanks for taking up the topic with Odoo SA Moises. In the reply from Olivier I quote: "But why should you care about this? For the OCA I can't imagine any other option than to support all the same Python versions that are supported by the matching Odoo version. Anything else would just cause issues for your users. Sorry about that ;-)"So yeah, I still think testing on 3.6 is a must and testing one of the two jobs on 3.8 is the best we can reasonably do in the short term.Here is how it looks like: https://github.com/OCA/mis-builder/pull/325/commits/f7dc0bff689dfe6d86d56947c4144fcf2d4b3a33With that we can safely announce that OCA supports and tests 14.0 with py 3.6 and 3.8, and that 3.7 should work but we don't test it due to limited resources.Does that sound reasonable?-sbiOn Fri, Oct 16, 2020 at 9:13 PM Moises Lopez <moylop260@vauxoo.com> wrote:Hello everyone,I liked to know the Odoo internal opinion before to reply this thread.Maybe you are interested of Olivier Dony answer too:Summary:- Currently, runbot is running py3.6 for all current LTS versions (12.0, 13.0, 14.0)- They are in R&D to run py3.6, py3.7 and py3.8 in runbot for Odoo-14.0 builds- Odoo.sh is using py3.8 for 14.0 but py3.6 for 12.0 and 13.0Checking the "Table of versions" (1)- py3.6 will be deprecated soon at 2021-12 (1y2mo)py3.7 requires ugly code to support something basic as unittests like David commented us.Python3.8 will be tested in runbot.odoo.com (someday R&D)Python3.8 is used in live production in CD/CI Odoo.shIt should ensure fixes over this version similar to (2)So, the python version in the intersection is py3.8If for OCA is too expensive to support py3.6, py3.7 & py3.8 for nowThen, Should we pinned the CI to py3.8?What do you think?Note: FYI in Vauxoo, we have decided to use py3.8in live production (CD) and CI for Odoo v14.0 too_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by David BEAL - 02:40 - 17 Oct 2020
Reference
-
V14, python version
Hi all,The last very stable python is 3.8 (first version in November 2019), 3.8.6 in September 2020Odoo 14.0 released in October supports python 3.7 and upper but that's not without consequenceWe can ask ourself what is the benefit to support 3.7.If yes, we have to deal with this kind of code in our OCA 14.0 module like hereMaybe there is a better way to manage this version incompatibility but if notit can be difficult to ensure 3.7 compatibility in our modulesWithout this compatibility code we have this kind of errorAre you really sure that supports 3.7 is good thing for our client in a fresh new project 14.0 while python 3.8 is very stable ?Even in debian targeted version we may upgrade to 3.8What do you think ?Regards
David BEAL - akretion.comConsultantOdoo Intégration / Développement
by David BEAL - 09:26 - 14 Oct 2020