New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port to Python3 and Update sugargame #1
Conversation
- WIP on sugarlabs#19 - Fixed the calculations of hard coded coordinates. ( + 45) helps to center it - The activity coordinates are hard coded for a system with display resolution as 1280*720. Scaling factor extends support to other screen dimensions.
- scaling factor extended support to other screen dimensions. - known bugs: the pillar vanishes after the stick hero moves to the next pillar
|
@Saumya-Mishra9129, the error is caused because of sugarlabs#26 which I intend to fix on sugarlabs#27 I would like you to retry without modifying the current branch, so that you can make sure that this bug does not exist with sugarlabs#27 merged git checkout Fixes
git remote add srevinsaju https://github.com/srevinsaju/stick-hero-activity
git pull srevinsaju
git branch FixesWithFixes
git checkout FixesWithFixes
git merge srevinsaju/pygame-ssFinally resolve the merge conflicts (if any, shouldn't be there) What it does is to get my fork and create a grafted branch called Good to see |
I got another error in scorescreen.py, @srevinsaju looks like we need change there as well. |
|
@Saumya-Mishra9129 I suggest you to base your branch on top of
these activities are also used by millions of OLPC laptops around the world still running python2, So it is important to create the last python2 release before python3 However, it might also create merge-conflicts. Regarding the error, yes, it seems sensible, Thanks for testing. I will update the fix accordingly |
I tested , getting that error in scorescreen.py now. |
Yeah Sure, I am planning to do so. Thanks. |
@Saumya-Mishra9129 Fixed it on |
|
Tested ! It worked fine. |
Thanks! I think we should make two releases of the activity. Making a last python2 release is important. I agree with @srevinsaju that For now I think we could fix bugs and errors in python2 branch and then work on the port to python3. What do you think @chimosky @quozl ? |
|
I guess we can close this PR. Its decided to release python2 first before python3. |
|
@JuiP said
I agree, fix whatever bugs that are in the python2 version and make a release. @srevinsaju said
Yes it was decided to release a python2 version but I don't see a reason to close the PR. |
|
@chimosky , @Saumya-Mishra9129 please note that when sugarlabs#25 is merged, there is no way to merge your (@Saumya-Mishra9129's) changes to To release the last python2 version, sugarlabs#25 needs to be merged to master. And that will stash your changes on the Fixes branch. Even if @JuiP merges #1 to Please correct me if I am wrong, and also if possible, help me understand the benefits of continuing to work in this PR which is going to be merged before a python2 release EDIT: I have tested it on https://github.com/srevinsaju/test (a dummy repo), and I could not succeed. I would love to know of the intuitive way in which this would be executed, (just to increase my git knowledge, I would like to use it elsewhere too) EDIT 2: I created another PR, but which created an additional merge commit. That means, the net result is going to be a new PR on https://github.com/sugarlabs/stick-hero-activity which is going to be driven by JuiP and with commits by Saumya-Mishra9129 |
|
@srevinsaju said
Any changes that happen on master can be rebased on this branch, it'll look something like this; There shouldn't be a merge commit. @srevinsaju said
They're no benefits to closing this PR as it'll have to be reopened later. 4e8f53f can be cherry-picked to sugarlabs#25 for the python2 release and with an interactive rebase can be droppped here. |
Thanks I had kept my mind very closed towards only PRs and merge, I had forgotten the permissions which you have on the original repo. Thanks for this information, forgot the |
My comment wasn't actually from that perspective, I was talking from the perspective of the person who opened the PR. |
|
Ok, I am confused now EDIT: I guess I should not be worried about where the PR is created |
|
Actually whole reason behind opening this here was because of @JuiP comment. She said she is planning to release after python3 port. So thats why I created here in order to ease the integration process. But as now whole idea has changed, I am also confused a little about rebasing. At the end I may get conflicts while rebasing. |
This is the part I am worried about |
|
Hi, sorry for the miscomunication. I looked at the commits here, if you think rebasing and merge conflicts will be an issue, you can run 2to3 again like in 24a0a04, shouldn't take much time and other commits which are mostly cherry-picked can be cherry-picked again. :) |
|
We are back at the same point we started. |
516e6dc
to
a2921d6
Compare
|
Closing this, as there are lot of conflicts I faced during merge. |


@JuiP @srevinsaju Review. However on testing I got some errors.