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

Release 2021.09.05 #2488

Merged
merged 201 commits into from
Sep 6, 2021
Merged

Release 2021.09.05 #2488

merged 201 commits into from
Sep 6, 2021

Conversation

misl6
Copy link
Member

@misl6 misl6 commented Sep 5, 2021

  • Check that the builds are passing
  • Run the tests locally via tox: this performs some long-running tests that are skipped on github-actions.
  • Build and run the on_device_unit_tests app using buildozer. Check that they all pass.
  • Build (or download from github actions) and run the following testapps for arch armeabi-v7a and arm64-v8a:
    • on_device_unit_tests
      • armeabi-v7a (cd testapps/on_device_unit_tests && PYTHONPATH=.:../../ python3 setup.py apk --ndk-dir=<your-ndk-dir> --sdk-dir=<your-sdk-dir> --arch=armeabi-v7a --debug)
      • arm64-v8a (cd testapps/on_device_unit_tests && PYTHONPATH=.:../../ python3 setup.py apk --ndk-dir=<your-ndk-dir> --sdk-dir=<your-sdk-dir> --arch=arm64-v8a --debug)
  • Check that the version number is correct

inclement and others added 30 commits June 2, 2020 22:24
Fixes running `tox` outputs warnings:
- replaces the `imp` module by the `importlib` one
- simplifies downloader dropping `FancyURLopener`

The warnings were:
```
pythonforandroid/util.py:17
  /home/andre/workspace/python-for-android/pythonforandroid/util.py:17:
DeprecationWarning: WgetDownloader style of invoking requests is deprecated. Use newer urlopen functions/methods
    urlretrieve = WgetDownloader().retrieve

pythonforandroid/toolchain.py:84
  /home/andre/workspace/python-for-android/pythonforandroid/toolchain.py:84:
DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
    import imp
```
…tivity

Fixed KeyError not found, fixes#2228
- bumps CI build to OpenJDK 13
- bumps Android SDK Build-Tools to 29.0.3
- unpins Cython as it currently works with latest versions
- cleans troubleshooting documentation
The error was:
```
Listing '/home/user/.local/share/python-for-android/dists/unnamed_dist_1__armeabi-v7a/webview_includes'...
[INFO]:    Detected highest available build tools version to be 28.0.2
[DEBUG]:   -> running gradlew assembleDebug
[DEBUG]:        Starting a Gradle Daemon, 2 incompatible and 1 stopped Daemons could not be reused, use --status for details
[DEBUG]:
[DEBUG]:        > Task :compileDebugJavaWithJavac FAILED
[DEBUG]:        /home/user/.local/share/python-for-android/dists/unnamed_dist_1__armeabi-v7a/src/main/java/org/kivy/android/PythonActivity.java:245: error: cannot find symbol
[DEBUG]:            public boolean onKeyDown(int keyCode, KeyEvent event) {
[DEBUG]:                                                  ^
[DEBUG]:          symbol:   class KeyEvent
[DEBUG]:          location: class PythonActivity
[DEBUG]:        /home/user/.local/share/python-for-android/dists/unnamed_dist_1__armeabi-v7a/src/main/java/org/kivy/android/PythonActivity.java:130: error: package AlertDialog does not exist
[DEBUG]:                        AlertDialog.Builder dlgAlert  = new AlertDialog.Builder(PythonActivity.mActivity);
[DEBUG]:                                   ^
[DEBUG]:        /home/user/.local/share/python-for-android/dists/unnamed_dist_1__armeabi-v7a/src/main/java/org/kivy/android/PythonActivity.java:130: error: package AlertDialog does not exist
[DEBUG]:                        AlertDialog.Builder dlgAlert  = new AlertDialog.Builder(PythonActivity.mActivity);
[DEBUG]:                                                                       ^
[DEBUG]:        /home/user/.local/share/python-for-android/dists/unnamed_dist_1__armeabi-v7a/src/main/java/org/kivy/android/PythonActivity.java:137: error: package DialogInterface does not exist
[DEBUG]:                            new DialogInterface.OnClickListener() {
[DEBUG]:                                               ^
[DEBUG]:        /home/user/.local/share/python-for-android/dists/unnamed_dist_1__armeabi-v7a/src/main/java/org/kivy/android/PythonActivity.java:247: error: cannot find symbol
[DEBUG]:                if ((keyCode == KeyEvent.KEYCODE_BACK) && mWebView.canGoBack()) {
[DEBUG]:                                ^
[DEBUG]:          symbol:   variable KeyEvent
[DEBUG]:          location: class PythonActivity
[DEBUG]:        Note: Some input files use or override a deprecated API.
[DEBUG]:        Note: Recompile with -Xlint:deprecation for details.
[DEBUG]:        5 errors
[DEBUG]:
[DEBUG]:
[DEBUG]:        FAILURE: Build failed with an exception.
[DEBUG]:
[DEBUG]:        * What went wrong:
[DEBUG]:        Execution failed for task ':compileDebugJavaWithJavac'.
[DEBUG]:        > Compilation failed; see the compiler error output for details.
[DEBUG]:
[DEBUG]:        * Try:
[DEBUG]:        Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[DEBUG]:
[DEBUG]:        * Get more help at https://help.gradle.org
[DEBUG]:
[DEBUG]:        BUILD FAILED in 29s
[DEBUG]:        15 actionable tasks: 3 executed, 12 up-to-date
```
…ymbol_errors

🐛 Fixes service_only and webview symbol errors, closes kivy#2228
* 🍱 Add CHANGELOG.md

This changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)

* 🎨 Add/remove backslashes

To:
  - make sure that emoji are correctly detected
  - prevent emoji detection when a non-emoji text is encapsulated between **:**
  - render as expected words that are between  **\`**
Got rid of deprecated compile method
This is a follow up for previous migration that was missing the Travis update,
refs kivy#2231
💚 Fixes Travis build post OpenJDK bump
Added missing semicolon on service-only bootstrap
* bump libpq version
* Fix libpq env for cross compile
Co-authored-by: Rene Leveille <[email protected]>
added --activity-class-name and --activity-package parameters
Because it will allow us to grant support for [WebP](https://developers.google.com/speed/webp) images to Pillow recipe.
We add `optional` support for [WebP](https://developers.google.com/speed/webp) images, but to enable it, you must add `libwebp` to your build requirements.

We also:
  - 🎨 sort imports
  - 📝 add docstrings to Pillow recipe
  - 🎨 move to python3's f-strings...to increase readability
  - 💡 add inline comments
* add recipe for libpcre
* fix flake8 errors
obfusk and others added 26 commits April 21, 2021 18:28
Add libvpx recipe, reference it in ffpyplayer_codecs and ffmpeg
Reintroduce documentation of android module
webview: put webview_includes in assets dir
Websocket-client updated to 1.0.1 from 0.40.0
* Move PythonActivityUtil.unpackData to PythonUtil.unpackData
* Move toastError and some fixes
* declare activity final in toastError
* Remove PythonActivityUtil
* Avoids 'Permission Denied' error during docker build
* Avoids build error for opencv and bumps version to 4.5.1
* Update opencv-extras to 4.5.1
see https://developer.android.com/guide/practices/ui_guidelines/icon_design_adaptive

This adds a `--icon-fg` and a `--icon-bg` build option to the sdl2 bootstrap,
that can be used to specify two PNG files to be used as the foreground and background
of an adaptive icon. These will get used if API 26+ is available at runtime.
The existing `--icon` option to specify an icon as a single PNG file is kept, as
- this provides backwards compatibility,
- and even if the new options are used, it might be a good idea to set all three
  options: when running on API <26, the PNG specified via `--icon` gets used.
* fixed redirection for download liblzma
* use wget
Fixes:
```
ImportError: dlopen failed: cannot locate symbol "log" referenced by "_imaging.so"...
```
Updated version of pygame from 2.0.0-dev7 to 2.0.1
Add *.diff to manifest and package_data
Fix bad library found by ctypes for 64-bit arch (kivy#2468)
* Drop travis-ci.org and use github-actions for pypi release

* Bump gh-action-pypi-publish to v1.4.2
@misl6
Copy link
Member Author

misl6 commented Sep 5, 2021

Build and run the on_device_unit_tests app using buildozer. Check that they all pass looks good on Ubuntu, but is failing on MacOS 11 (See #2087)

Copy link
Member

@AndreMiras AndreMiras left a comment

Choose a reason for hiding this comment

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

LGTM, even though I don't have time to test on device lately.
Thanks!

@misl6 misl6 merged commit 4563f3e into kivy:master Sep 6, 2021
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.