Commit Graph

61 Commits

Author SHA1 Message Date
Mirko Galimberti 01049a8f45
Perform RPi builds on `balenalib/raspberrypi3-*` images and skip `DISPMANX` API usage if can't be used (#8223) 2023-05-01 15:40:02 +02:00
Matt Einhorn b69ca46a09
Build python 3.9 wheels for RPi + fixes the build for RPi wheels (#7852)
* Build python 3.9 for rpi as well [build wheel armv7l].

* Add missing autoreconf for debian build. [build wheel armv7l]

* Add missing libtool for debian build. [build wheel armv7l]

* Use the newer cmake based script to build dependencies [build wheel armv7l]

---------

Co-authored-by: Mirko Galimberti <me@mirkogalimberti.com>
2023-04-23 15:53:04 +02:00
Mirko Galimberti e24c1962ea
`Generate-sdist` needs `packaging` as a dependency (#8217) 2023-04-23 10:02:55 +02:00
Mirko Galimberti 0fc8c678eb
Migrate from `autotools` to `cmake` for SDL2 linux dependencies (#8203)
* Migrate from autotools to cmake for SDL2 linux dependencies

* Update Linux install docs
2023-04-15 14:59:50 +02:00
Mirko Galimberti a0df4298c6
distutils module is deprecated and slated for removal in 3.12 (#8070) 2023-03-23 20:35:33 +01:00
Mirko Galimberti df51c84bdf Add libxrender-dev for rpi build 2023-01-08 14:39:22 +01:00
Mirko Galimberti 15de4364ee Introduces build scripts for sdl2 dependencies and KIVY_DEPS_ROOT 2023-01-07 15:41:17 +01:00
Mirko Galimberti b30f7987d1
Install twine only when needed (#8099) 2023-01-07 13:53:57 +01:00
Mirko Galimberti e932a4e987
Add gstreamer1.0-plugins-good for autoaudiosink availability during tests (#8093) 2023-01-02 12:29:17 +01:00
Mirko Galimberti b4b4dfccab
Switch from `ubuntu-18.04` to `ubuntu-latest` as `18.04` runners will be removed on 2023-01-12 (#8084)
* Switch from ubuntu-18.04 to ubuntu-latest as 18.04 runners will be removed on 2023-01-12

* Fix a dependency bug
2022-12-30 15:41:07 +01:00
mp-007 d763bc227d
Bump again SDL2 to 2.24.2 on Linux and macOS (#8050)
* Update osx_ci.sh

update SDL2 2.24.1

* Update ubuntu_ci.sh

update SDL2 2.24.1

* Update osx_ci.sh

update SDL version osx

* Update ubuntu_ci.sh

update SDL version ubuntu
2022-11-03 14:14:35 -04:00
mp-007 16dd4ed421
Bump SDL2 to `2.24.1` on Linux and macOS (#8043)
* Update osx_ci.sh

update SDL2 2.24.1

* Update ubuntu_ci.sh

update SDL2 2.24.1
2022-10-26 20:45:57 +02:00
Akshay Arora 9cb0f0bc2a
Use Platypus 5.4.1 (#8006)
* Use Platypus 5.4

* Update Platypus Version

Co-authored-by: Mirko Galimberti <me@mirkogalimberti.com>
2022-10-23 15:34:17 +02:00
Julian 56d5ded4f8
Added support for KIVY_LOG_MODE (#7988)
* Add support for KIVY_LOG_MODE

Including:

* New unit tests
* Limiting some unit tests to some modes.
* Adding pytest markers to allow quick testing of relevant tests, without repeating unaffected tests.
* Removing KIVY_LOG_MODE=TEST which has been subsumed by PYTHON mode.
* Added an xfail test for another Issue while I am here.
* Documentation additions.

* Mention environment variable control of the logger in the config description.

* Mute Config-file driven log level changes

When in PYTHON mode, the Config file's ability to change levels should be muted.

* Fixed items identified in Review #1.

* Typo in documentation

Co-authored-by: Mirko Galimberti <me@mirkogalimberti.com>

* Suppress coverage report until end.

Co-authored-by: Mirko Galimberti <me@mirkogalimberti.com>
2022-09-10 09:48:30 +02:00
Mirko Galimberti 6b6f112738
Bump SDL2, SDL2_image, SDL2_mixer, SDL2_ttf versions to latest stable release (#7974) 2022-08-31 22:57:47 +02:00
Julian 2d9755ad8a
Support KivyLogMode environment variable for logging testing (#7971)
* Support KivyLogMode for logging testing

Also:
Remove unused imports.
Remove Python 2 only code
Run through Black to canonicalize formatting

* Undo formatting changes

Undo black.
2022-08-25 09:20:39 +02:00
Mirko Galimberti ca3787ee57
Increase timeout to avoid failing tests on windows-2022 (#7827) 2022-03-02 23:05:46 +01:00
odidev 597228c93f
Linux AArch64 wheel build optimization (#7784)
* Linux AArch64 wheel build optimisation [build wheel linux]

* Address review comments
2022-02-07 02:09:17 -05:00
Matt Einhorn c02d716e63
Merge pull request #7760 from misl6/fix/benchmark-tests
Fixes benchmark tests on wheels
2022-01-22 12:40:40 -07:00
Mirko Galimberti f7b54e3919 macOS deps: Update SDL to 2.0.20 and update SDL_ttf to 2.0.18 2022-01-22 15:44:17 +01:00
Mirko Galimberti e3fa9309b4 Fixes benchmark tests on wheels 2022-01-22 14:14:15 +01:00
Gabriel Pettier fbf561f73d
Add python3.10 in the ci configuration [build wheel linux] [build wheel osx] [build wheel win] (#7663)
* Add python3.10 in the ci configuration

* Update setup.cfg and setup.py for python3.10

* also update pyproject.toml to allow using latest cython

* update kivy-deps.sdl2 required version in setup.cfg

* bump kivy-deps.sdl2 version

* use develop version of pyinstaller for python3.10 support

* osx try simplified build

* force usage of next funcparserlib release that doesnt use 2to3 in setup.py

* 3.6 reached EOL on 2021-12-23

* macOS: add cp310-macosx_universal2

* We don't install anymore the full version. So ffmpeg dependency is not needed anymore. I expect to have a universal2 whl for ffpyplayer when we will switch back to full,dev

* manylinux2010 --> manylinux2014 (via cibuildwheel)

* Remove dependencies, so we can check delocating. Installs dev version cause support for 3.10 in ffpyplayer is missing

* Update manylinux sdl2 version and max cython version.

* Bump win deps.

Co-authored-by: Mirko Galimberti <me@mirkogalimberti.com>
Co-authored-by: Matt Einhorn <moiein2000@gmail.com>
Co-authored-by: Matthew Einhorn <matt@einhorn.dev>
2022-01-12 18:26:20 +01:00
Mirko Galimberti 7d12150ee7
Add support for Apple Silicon on CI/CD [build wheel osx] [build app osx] (#7678)
* Added support for universal2 wheels, and adds unit testing on our self-hosted Apple Silicon M1 runner

* Improve job name readability
2022-01-04 19:12:39 +01:00
matham eb11a4e0ba
Latest pyinstaller includes required fixes for tests. (#7513) 2021-05-02 14:51:21 -04:00
matham 3eb4e61268
Switch rsa ssh key to ed25519 for server upload [build wheel]. (#7509) 2021-05-02 02:08:14 -04:00
matham c28c47b39a
Removed unused id_rsa.enc. ssh keys are in the secret env (#7495) 2021-04-23 18:48:06 -04:00
matham 80d08d2e30
Benchmarks: Add benchmarks option measurements to pytest (#7292)
* Add benchmarks to test.

* Add more benchmarks and use config file.

* benchmarks typo.
2021-01-21 17:01:20 -05:00
matham c8698d40d2
Graphics: Check whether user updated GL instructions from external thread. (#7270)
* Check whether user updated GL instructions from external thread.

* Add docs.

* Test must be decorated with skip.

* Stop if it looks like all test will fail so we can get error.

* Use 64 bit for thread id.

* Use 64 bit for thread id.

* Use unsigned long.

* Add unsigned long
2021-01-21 16:53:53 -05:00
matham 4e2cd986ca
Setup: Fix buggy detection of cython module name (#7257)
* Fixx buggy detection of module name.

* Fix coverage concurrency race conditions.
2020-12-10 16:13:43 -05:00
matham d39e925469
CI: Test all wheel versions, not just one per OS (#7201)
* Test each generated wheel.

* Fix CI project names so wheels don't fail. [build wheel osx] [build wheel win]
2020-11-05 19:35:02 -05:00
matham b9dd8fd508
Switch to staging docs on kivy-website-docs (#7179)
* Switch to staging docs on kivy-website-docs.

* Use correct path.

* Track changes rather than resetting every time.
2020-10-26 13:17:46 -04:00
matham 87407c59b4
Stop building wheels for RPi stretch (#7152)
* Don't build for py35 as it's not supported [build wheel linux].

* Python 3.5 is not supported anymore [build wheel armv7l].
2020-10-15 03:23:41 -04:00
matham d13e221671
Generate Kivy.app on the CI (#7080)
* Re-enable osx app build[build app osx]

* app directory should be in root [build app osx]

* Use re-worked sdk syntax. [build app osx]

* No need to build kivy. [build app osx]

* Use kivy version, not ref name. [build app osx]

* Include examples and use fixes syntax. [build app osx]

* Split app create and test. [build app osx]

* Split app create and test. [build app osx]

* Externalize kivy-examples. [build app osx] [build wheel]

* Externalize kivy-examples. [build app osx] [build wheel]

* No need to download pip manually anymore. [build app osx]

* Fix osx font test from seg-faulting. [build app osx]

* [build app osx] [build wheel osx]

* Don't copy in recursive cycles. [build app osx]

* Don't copy in recursive cycles. [build app osx]

* Set gst regsitery to fix test.

* Update docs. [build app osx] [build wheel]

* Fix gstreamer path [build app osx]

* Use mock only when testing [build app osx][build wheel osx]

* There's no reason to use older xcode, but specifically use osx 10.15. [build app osx]

* Set the gst variables to fix gst not working. [build app osx]

* Set the gst variables to fix gst not working. [build app osx]

* Set the gst variables to fix gst not working. [build app osx][build wheel osx]

* Fix broken tests. [build app osx][build wheel osx]

* Add missing hidapi library to fix osx wheel.

* Fix app environment. [build app osx] [build wheel osx]

* Need to resign hidapi after changing paths. [build app osx] [build wheel osx]
2020-09-15 21:50:34 -04:00
Matthew Einhorn 1c66ae47f6 Add _version.py and move updating version metadata to the CI. [build wheel] 2020-09-14 16:17:19 -04:00
Matthew Einhorn 3ce5e982f1 Fix CI [build wheel]. 2020-06-14 03:29:32 -04:00
Matthew Einhorn b6eddbb2fc Twine needs to be installed to upload to pypi. 2020-04-29 01:32:49 -04:00
matham 69338d7e41
Fix failing tests (#6845) 2020-04-29 00:05:32 -04:00
Kristian Sloth Lauszus fa19d95497
Kivy now works on the Raspberry Pi 4 without X11 (#6769)
* Added 'KIVY_SDL_GL_ALPHA_SIZE' environmental variable, so X11 is not required when using SDL2 in a headless environment

Thanks to @ddimensia for figuring it out

* Updated the installation instructions for Raspberry Pi 4 headless installation on Raspbian Buster, as it no longer requires X11 to be installed

* Automatically set the SDL_GL_ALPHA_SIZE to 0 when running on a Raspberry Pi

* Set 'KIVY_SDL_GL_ALPHA_SIZE=0' when building using the CI, so cross compiling of the wheels works

* Make sure KIVY_SDL_GL_ALPHA_SIZE is an int
2020-03-13 11:15:45 -04:00
matham be7ae35700
Merge pull request #6662 from Lauszus/rpi123_wheel
Compile wheels for Raspberry Pi 1-3 using the CI
2020-01-11 02:15:22 -05:00
Kristian Sloth Lauszus 5cb75d09bd Set the same flags explicitly like we do for the manylinux wheel 2020-01-11 01:39:29 +01:00
Kristian Sloth Lauszus 878e23b17f Enable X11 as a window provider 2020-01-11 01:33:04 +01:00
Kristian Sloth Lauszus f26da7a242 We can use the same wheel on the Raspberry Pi 4 by ignoring the egl_rpi window provider 2020-01-11 01:32:35 +01:00
Kristian Sloth Lauszus e6afe6d311 Compile wheels for Raspberry Pi 1-3 2020-01-09 20:43:47 +01:00
Matthew Einhorn 0b6b8930e6 Switch to flake8 and fix PEP8 issues. 2020-01-03 17:17:09 -05:00
matham a2ded0d7b7
Latest twine doesn't support py3.5 [build wheel] 2019-12-29 14:02:59 -05:00
matham 7eb7bbb8ee
Examples doesn't install if we are in kivy dir [build wheel]. 2019-12-29 12:50:31 -05:00
Matthew Einhorn c252f82a8e Fix CI PyPI upload and pin to latest kivy_deps versions. 2019-12-28 22:54:51 -05:00
Matthew Einhorn 56740a4082 Enable testing installed Kivy and test wheels and sdist from CI [build wheel osx]. 2019-12-28 00:22:00 -05:00
matham 3bbe62d077
Use pip to build wheel so it uses pyproject.toml. (#6659)
* Use pip to build wheel so it uses pyproject.toml [build wheel win]

* [build wheel win]
2019-12-21 16:32:28 -05:00
Kristian Sloth Lauszus 59facf6e6f Cross compile wheel for armv7l (Raspberry Pi 4) using Github Actions CI (#6568)
* Cross compile wheel for armv7l (Raspberry Pi 4) using Github Actions CI

Fixes #6567

* Added instruction on how to install Kivy on a Raspberry Pi 4

* Do not package the examples in the wheel

* We can not upload armv7l wheels to PyPI

* Remove all references to KivyPie

* Merge the installations instructions for Raspberry Pi's together

* Build the armv7l wheel on Stretch as well

* Create a copy of the wheel with a armv6l suffix

* The wheels are Raspberry Pi specific
2019-12-21 15:29:04 -05:00