Skip to content
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

🗑️ Removes Python 2 constructions #1114

Merged
merged 1 commit into from
May 18, 2020

Conversation

AndreMiras
Copy link
Member

  • Drops Python 2 imports
  • Drops if IS_PY3 constructions
  • Drops object inheritance
  • Drops __future__ imports
  • Drops mocks dependency
  • Uses Python 3 super()

- Drops Python 2 imports
- Drops `if IS_PY3` constructions
- Drops `object` inheritance
- Drops `__future__` imports
- Drops `mocks` dependency
- Uses Python 3 `super()`
@AndreMiras AndreMiras requested a review from inclement May 18, 2020 21:28
Copy link
Member

@inclement inclement left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We know from experience that many users try to run buildozer under python2, whether deliberately or otherwise. I suppose there may not be a straightforward way to try to give an error about it, unlike with p4a, but it would be good to document what error they'll see so that it's (hopefully) easy to find.

@AndreMiras
Copy link
Member Author

Thanks for the review!
They already get rejected with a clear error message at install time https://github.com/kivy/buildozer/blob/1.1.0/.github/workflows/test_python.yml#L78

@AndreMiras AndreMiras merged commit 4333b9c into kivy:master May 18, 2020
@AndreMiras AndreMiras deleted the feature/python3_cleaning branch May 18, 2020 21:35
@AndreMiras
Copy link
Member Author

image

@inclement
Copy link
Member

Awesome, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants