| 1 | = !BluePrint: Python-3 Support = |
| 2 | [[TOC]] |
| 3 | |
| 4 | == Introduction == |
| 5 | |
| 6 | As of June 2019, Sahana Eden is written for Python-2.7, but some tools (e.g. python-pip) will end their support for this Python version soon. Therefore, Sahana Eden must implement Python-3.6 as soon as possible. However, as most active deployments still run on Python-2.7, Sahana Eden must remain backwards-compatible for some time. |
| 7 | |
| 8 | == Stakeholders == |
| 9 | |
| 10 | - Deployers |
| 11 | - Developers (both Sahana, and dependencies/libraries) |
| 12 | |
| 13 | == Requirements == |
| 14 | |
| 15 | - all Python code in Sahana Eden shall be Python-3.6+ |
| 16 | - maintain Python-2.7 backwards-compatibility |
| 17 | - provide framework support for common compatibility patterns |
| 18 | - provide guideline (coding conventions) with common compatibility patterns |
| 19 | - provide routine QA measures to verify compatibility of critical code with both 3.6 and 2.7 (review, CI testing) |
| 20 | - update deployment tools to support Python-3.6+ |
| 21 | - Python-3.6+ to be standard deployment option by the end of 2019 |
| 22 | |
| 23 | == Planned Implementation == |
| 24 | |
| 25 | - s3compat module to implement alternatives |
| 26 | - refactoring of all Sahana Eden Python code according to: |
| 27 | - [wiki:DeveloperGuidelines/Py_2_3 Developer Guideline for Python 2/3 compatibility] |
| 28 | |
| 29 | ---- |
| 30 | BluePrint |