Line 53: |
Line 53: |
| '''Describe your project in 10-20 sentences. What are you making? Who are you making it for, and why do they need it? What technologies (programming languages, etc.) will you be using?'''<br /> | | '''Describe your project in 10-20 sentences. What are you making? Who are you making it for, and why do they need it? What technologies (programming languages, etc.) will you be using?'''<br /> |
| | | |
− | My project aims at porting sugar-shell and sugar-toolkit to Python3 . It will also include writing a robust test suite to check for Python 2/3 compatibility and a python3 porting guide for sugar activities. | + | My project aims at porting sugar to Python3 . It will also include writing a robust test suite for sugar and a Python3 porting guide for sugar activities. |
− | Python3 is the future of python and every software will eventually be ported to python3. The main difference that makes Python3 better than Python2.x is that the support for unicode is greatly improved in Python3 . This will also be useful for sugar as sugar has users in more than 100 languages and it's easy to translate strings from unicode to other languages. Also, gtk3+ , on which sugar is built has a better unicode support too, so along with gtk3+ and Python3 , sugar will get more efficient and developer friendly. | + | Python3 is the future of python and every software will eventually be ported to Python3. The main difference that makes Python3 better than Python2.x is that the support for unicode is greatly improved in Python3 . This will also be useful for sugar as sugar has users in more than 100 languages and it's easy to translate strings from unicode to other languages. Also, gtk3+ , on which sugar is built has a better unicode support too, so along with gtk3+ and Python3 , sugar will get more efficient and developer friendly.<br /> |
− | More differences between Python2 and 3 can be found here: http://docs.python.org/3/whatsnew/3.0.html | + | More differences between Python2 and 3 can be found here: http://docs.python.org/3/whatsnew/3.0.html <br /> |
− | In this project, I would first start by porting sugar-shell to Python 2/3 compatible code. It will still have to be backward compatible because some of the activities written in python2 will have to be supported for quite some time. After that, I will port the gtk3+ sugar-toolkit to Python 2/3 compatible code. Some tools that can be used to port are modernize( https://github.com/mitsuhiko/python-modernize) and autopep8 (https://pypi.python.org/pypi/autopep8/) | + | In this project, I would first start by porting sugar-toolkit-gtk3 to Python 3 compatible code. It won't have to be backwards compatible because the activities are run using dbus , so the activities written in Python2 will still work. After that, I will port the sugar-shell to Python 3 compatible code. Some tools that can be used to port are 2to3 and autopep8(https://pypi.python.org/pypi/autopep8/). |
− | The process that i will follow will be: | + | The process that I will follow will be: |
| # Check if all the dependencies are compatible with Python3, if not first port them to Python3. | | # Check if all the dependencies are compatible with Python3, if not first port them to Python3. |
− | # Use AutoPEP8 to make the code comply with PEP8 dtyle guide which will also help with the porting. | + | # Use AutoPEP8 to make the code comply with PEP8 style guide which will also help with the porting. |
− | # Use modernize (which is a thin wrapper over 2to3) to make the code Python2 and 3 compatible. | + | # Use 2to3 to make the code Python 3 compatible. |
− | # Go through the remaining code manually and sort out any errors or discrepancies. | + | # Go through the remaining code manually and sort out any errors or discrepancies.<br /> |
| + | |
| A more thorough porting guide for sugar activities will be written. | | A more thorough porting guide for sugar activities will be written. |
| + | Further changes in porting strategy, if any , will be discussed during or before the community bonding period. |
| <br /> | | <br /> |
| | | |
Line 70: |
Line 72: |
| ! Week/Days !! Work to be done | | ! Week/Days !! Work to be done |
| |- | | |- |
− | | 21 April-19 May (Community Bonding Period) || Understand the existing sugar and sugar-toolkit code and discuss the porting options with sugar community. | + | | 21 April-19 May (Community Bonding Period) || Understand the existing sugar and sugar-toolkit code and discuss the porting options with sugar community.Also resolve any dependency issues. |
| |- | | |- |
− | | 19 May-26 May (Week 1)|| Start porting sugar-toolkit to Python 2/3 compatible code. | + | | 19 May-26 May (Week 1)|| Start porting sugar-toolkit to Python 3 compatible code. |
| |- | | |- |
| | 26 May-2 June (Week 2) || Continue with porting sugar-toolkit | | | 26 May-2 June (Week 2) || Continue with porting sugar-toolkit |
| |- | | |- |
− | | 2 June-9 June (Week 3)|| Port existing sugar-toolkit tests into Python 2/3 | + | | 2 June-9 June (Week 3)|| Port existing sugar-toolkit tests into Python 3.Write new tests to check Python 3 compatibility, test sugar-shell and remove bugs. |
| |- | | |- |
− | | 9 June- 16 June (Week 4)|| Write new tests to check Python 3 compatibility, test sugar-shell. | + | | 9 June- 16 June (Week 4)|| Start porting sugar into Python 3 compatible code. |
| |- | | |- |
− | | 16 June-23 June (Week 5)|| Start porting sugar-shell into Python 2/3 compatible code. | + | | 16 June-23 June (Week 5)|| Continue with porting sugar |
| |- | | |- |
− | | 23 June-30 June (Week 6)|| '''Mid-term Evaluation Week''' (Buffer week, complete remaining work) | + | | 23 June-30 June (Week 6)|| '''Mid-term Evaluation Week''' (Port existing tests and write new tests.) |
| |- | | |- |
− | | 30 June-7 July (Week 7)|| Continue with porting sugar-shell. | + | | 30 June-7 July (Week 7)|| Port sugar-build to Python3 |
| |- | | |- |
− | | 7 July-14 July (Week 8)|| Port existing sugar-shell tests into Python 2/3 | + | | 7 July-14 July (Week 8)|| Buffer Week. |
| |- | | |- |
− | | 14 July-21 July (Week 9)|| Write new tests to check Python 3 compatibility, test sugar-toolkit. | + | | 14 July-21 July (Week 9)|| Write new tests to check Python 3 compatibility, test sugar-toolkit and remove bugs. |
| |- | | |- |
| | 21 July-28 July (Week 10)|| Port an existing sugar activity and document the process.(Porting Guide) | | | 21 July-28 July (Week 10)|| Port an existing sugar activity and document the process.(Porting Guide) |
Line 98: |
Line 100: |
| | 11 August-18 August (Week 13)|| '''Evaluation Week''' | | | 11 August-18 August (Week 13)|| '''Evaluation Week''' |
| |} | | |} |
| + | |
| + | If time permits , I will try to port all the fructose activities to Python3 during the GSoC. If not, I will pert the fructose activities to Python3 post-GSoC.<br /> |
| + | |
| '''Convince us, in 5-15 sentences, that you will be able to successfully complete your project in the timeline you have described. This is usually where people describe their past experiences, credentials, prior projects, schoolwork, and that sort of thing, but be creative. Link to prior work or other resources as relevant.'''<br /> | | '''Convince us, in 5-15 sentences, that you will be able to successfully complete your project in the timeline you have described. This is usually where people describe their past experiences, credentials, prior projects, schoolwork, and that sort of thing, but be creative. Link to prior work or other resources as relevant.'''<br /> |
| | | |
Line 103: |
Line 108: |
| | | |
| * I implemented a paddle ball game using graphics library in C++ when I was in 11th class:<br /> | | * I implemented a paddle ball game using graphics library in C++ when I was in 11th class:<br /> |
− | https://github.com/curiousguy13/paddle-ball | + | Link: https://github.com/curiousguy13/paddle-ball |
| | | |
| * A project on tourism using C++ when I was in 12th class:<br /> | | * A project on tourism using C++ when I was in 12th class:<br /> |
− | https://github.com/curiousguy13/travel | + | Link: https://github.com/curiousguy13/travel |
| | | |
| * I am good with algorithms and data structures and I like to do algorithmic puzzles on projecteuler which can be found here:<br /> | | * I am good with algorithms and data structures and I like to do algorithmic puzzles on projecteuler which can be found here:<br /> |
− | https://github.com/curiousguy13/project_euler | + | Link: https://github.com/curiousguy13/project_euler |
| | | |
| * I successfully completed CS50x (on edx.org) last year in which I made a finance website using HTML/CSS ,PHP, javascript and MySQL.I cannot share it's code though due to the Honour code.<br /> | | * I successfully completed CS50x (on edx.org) last year in which I made a finance website using HTML/CSS ,PHP, javascript and MySQL.I cannot share it's code though due to the Honour code.<br /> |
− | https://s3.amazonaws.com/verify.edx.org/downloads/1c2174e5034f446fb0f3e0439dfb8c1a/Certificate.pdf | + | Link: https://s3.amazonaws.com/verify.edx.org/downloads/1c2174e5034f446fb0f3e0439dfb8c1a/Certificate.pdf |
| | | |
| * I also made a BMI calculator android app in Java as a final project of CS50x which can be found here:<br /> | | * I also made a BMI calculator android app in Java as a final project of CS50x which can be found here:<br /> |
− | https://github.com/curiousguy13/calc | + | Link: https://github.com/curiousguy13/calc |
| | | |
| * I also successfully completed 6.001x of MIT (from edx.org) last year with 96% and created a web parser to monitor newsfeed over the internet as one of the problem sets.I cannot share it's code though due to the Honor Code that was promised by me.<br /> | | * I also successfully completed 6.001x of MIT (from edx.org) last year with 96% and created a web parser to monitor newsfeed over the internet as one of the problem sets.I cannot share it's code though due to the Honor Code that was promised by me.<br /> |
− | https://s3.amazonaws.com/verify.edx.org/downloads/eba70bcc05ac483da493a0dde7ef9bcf/Certificate.pdf | + | Link: https://s3.amazonaws.com/verify.edx.org/downloads/eba70bcc05ac483da493a0dde7ef9bcf/Certificate.pdf |
| + | |
| + | * I am also currently involved with the mozmill(mozilla) team to port mozmill to Python3 and thus have experience using 2to3 and autopep8.<br /> |
| + | |
| + | * I have also ported all the sugar and sugar-toolkit-gtk3 tests to Python3. <br /> |
| | | |
− | * I am also currently involved with the mozmill(mozilla) team to port mozmill to Python3.<br />
| + | Link : https://github.com/curiousguy13/sugar-python3-tests |
| | | |
| I am really enthusiastic about being a part of such a great project and am ready to devote 50+ hours per week this summer as this will be the only big project that I will be involved with. | | I am really enthusiastic about being a part of such a great project and am ready to devote 50+ hours per week this summer as this will be the only big project that I will be involved with. |
Line 132: |
Line 141: |
| There are several reasons why this project is important to Sugar Labs: (1) we need to keep pace with the projects we depend upon upstream -- Python 3 is being to become de rigour -- and (2) Python 3 has much better support for i18n and unicode -- critical to the global nature of our project. --[[User:Walter|Walter]] ([[User talk:Walter|talk]]) 16:31, 19 March 2014 (EDT) | | There are several reasons why this project is important to Sugar Labs: (1) we need to keep pace with the projects we depend upon upstream -- Python 3 is being to become de rigour -- and (2) Python 3 has much better support for i18n and unicode -- critical to the global nature of our project. --[[User:Walter|Walter]] ([[User talk:Walter|talk]]) 16:31, 19 March 2014 (EDT) |
| | | |
| + | A planned transition to python 3 is needed to keep Sugar updated. Need work coordinated with the community and upstream projects. --[[User:Godiard|Godiard]] ([[User talk:Godiard|talk]]) 07:59, 20 March 2014 (EDT) |
| | | |
| '''What will you do if you get stuck on your project and your mentor isn't around?'''<br /> | | '''What will you do if you get stuck on your project and your mentor isn't around?'''<br /> |
Line 165: |
Line 175: |
| | | |
| '''Any other engagements this summer that may collide with GSoC period?'''<br /> | | '''Any other engagements this summer that may collide with GSoC period?'''<br /> |
− | I have my College End-Semester Exams from 12th May , 2014 to 24th May,2014, so I will be busy during that period but I will cover for that lost time by working in the community bonding period and working harder after my exams are over. | + | I have my College End-Semester Exams from 12th May ,2014 to 24th May,2014, so I will be busy during that period but I will cover for that lost time by working in the community bonding period and working harder after my exams are over. |
| | | |
| [[Category:2014 GSoC applications]] | | [[Category:2014 GSoC applications]] |