Skip to content

Commit

Permalink
Merge branch 'kivy:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
bl1nch committed Feb 1, 2024
2 parents 1c9c158 + 15f1db0 commit c94c9ba
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .ci/Dockerfile.armv7l
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG image=balenalib/raspberrypi3-debian-python:3.7-buster
ARG image=balenalib/raspberrypi3-debian-python:3.9-bullseye
FROM $image

ENV KIVY_CROSS_PLATFORM=rpi
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/manylinux_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ jobs:
needs: [manylinux_wheel_create, kivy_examples_create]
strategy:
matrix:
python: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12' ]
python: ['3.8', '3.9', '3.10', '3.11', '3.12' ]
env:
DISPLAY: ':99.0'
steps:
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/osx_wheels_app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,9 @@ jobs:
strategy:
matrix:
runs_on: ['macos-latest', 'apple-silicon-m1']
python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
python: ['3.8', '3.9', '3.10', '3.11', '3.12']
exclude:
# apple-silicon-m1 does not support older python versions (3.7, 3.8, 3.9)
- runs_on: apple-silicon-m1
python: '3.7'
# apple-silicon-m1 does not support older python versions (3.8, 3.9)
- runs_on: apple-silicon-m1
python: '3.8'
- runs_on: apple-silicon-m1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rpi_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
if: github.event_name == 'schedule' || (github.event_name == 'create' && github.event.ref_type == 'tag') || contains(github.event.head_commit.message, '[build wheel]') || contains(github.event.head_commit.message, '[build wheel armv7l]') || contains(github.event.pull_request.title, '[build wheel]') || contains(github.event.pull_request.title, '[build wheel armv7l]')
strategy:
matrix:
docker_images: ['balenalib/raspberrypi3-debian-python:3.7-buster', 'balenalib/raspberrypi3-debian-python:3.9-bullseye', 'balenalib/raspberrypi3-debian-python:3.11-bookworm']
docker_images: ['balenalib/raspberrypi3-debian-python:3.9-bullseye', 'balenalib/raspberrypi3-debian-python:3.11-bookworm']
steps:
- uses: actions/checkout@v3
- name: Generate version metadata
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_windows_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: windows-latest
strategy:
matrix:
python: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12' ]
python: ['3.8', '3.9', '3.10', '3.11', '3.12' ]
arch: ['x64', 'x86']
steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: windows-latest
strategy:
matrix:
python: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12' ]
python: ['3.8', '3.9', '3.10', '3.11', '3.12' ]
arch: ['x64', 'x86']
if: github.event_name == 'schedule' || (github.event_name == 'create' && github.event.ref_type == 'tag') || contains(github.event.head_commit.message, '[build wheel]') || contains(github.event.head_commit.message, '[build wheel win]') || contains(github.event.pull_request.title, '[build wheel]') || contains(github.event.pull_request.title, '[build wheel win]')
steps:
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
needs: windows_wheels_create
strategy:
matrix:
python: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12' ]
python: ['3.8', '3.9', '3.10', '3.11', '3.12' ]
arch: [ 'x64', 'x86' ]
steps:
- uses: actions/checkout@v3
Expand Down
14 changes: 7 additions & 7 deletions doc/sources/gettingstarted/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ If no wheels are available ``pip`` will build the package from sources (i.e. on
Alternatively, installing :ref:`from source<kivy-source-install>` is required for newer Python versions not listed
above or if the wheels do not work or fail to run properly.

On RPi, when using a 32 bit OS, wheels are provided for Python 3.7 (Raspberry Pi OS Buster), Python 3.9 (Raspberry Pi OS Bullseye)
On RPi, when using a 32 bit OS, wheels are provided for Python 3.9 (Raspberry Pi OS Bullseye)
and Python 3.11 (Raspberry Pi OS Bookworm) via the `PiWheels <https://www.piwheels.org/>`_ project.

For other Python versions, on 32 bit OSes, you will need to install from source.
Expand Down Expand Up @@ -126,19 +126,19 @@ See :ref:`Kivy's dependencies<kivy-dependencies>` for the list of selectors.

The ``Pillow`` library is a dependency of both ``kivy[base]`` and ``kivy[full]``.

For Windows 32-bit users, please note that the latest releases of `Pillow` are
not available as binary distributions on PyPI. However, Kivy also supports ``Pillow==9.5.0``,
For Windows 32-bit users, please note that the latest releases of `Pillow` are
not available as binary distributions on PyPI. However, Kivy also supports ``Pillow==9.5.0``,
which have a binary distribution for all supported Python versions, even on Windows 32-bit.

If you are on Windows 32-bit and prefer not to build Pillow from source,
you can use the ``--only-binary Pillow`` flag with the following command to instruct pip
If you are on Windows 32-bit and prefer not to build Pillow from source,
you can use the ``--only-binary Pillow`` flag with the following command to instruct pip
to install the binary distribution of Pillow, albeit not the latest version::

python -m pip install --only-binary Pillow "kivy[base]"

.. note::

When using Raspberry Pi OS Lite or similar Linux-based headless systems, it may be necessary to install additional
When using Raspberry Pi OS Lite or similar Linux-based headless systems, it may be necessary to install additional
dependencies to ensure Kivy functions properly.

For instance, on Raspberry Pi OS Lite, you will be required to install the following dependencies::
Expand Down Expand Up @@ -169,7 +169,7 @@ First install the additional system dependencies listed for each platform:
offer support for this.**

Instead, we recommend installing the SDL dependencies from source. This is the same process
our CI uses to build the wheels. The SDL dependencies are built from source and installed into a
our CI uses to build the wheels. The SDL dependencies are built from source and installed into a
specific directory.

With all the build tools installed, you can now install the SDL dependencies from source for SDL support
Expand Down
9 changes: 3 additions & 6 deletions doc/sources/installation/installation-rpi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,17 +95,14 @@ To cross-compile the wheels, you need to run the following commands::

source .ci/ubuntu_ci.sh

# Generate wheels for Raspberry Pi OS Buster (32 bit, Python 3.7)
generate_rpi_wheels balenalib/raspberrypi3-debian-python:3.7-buster

# Generate wheels for Raspberry Pi OS Bullseye (32 bit, Python 3.9)
generate_rpi_wheels balenalib/raspberrypi3-debian-python:3.9-bullseye

# Generate wheels for Raspberry Pi OS Bookworm (32 bit, Python 3.11)
generate_rpi_wheels balenalib/raspberrypi3-debian-python:3.11-bookworm


Kivy determines automatically the sub-packages to build based on the environment it is compiled within. By default, the `egl_rpi` renderer that
Kivy determines automatically the sub-packages to build based on the environment it is compiled within. By default, the `egl_rpi` renderer that
uses the (now deprecated but still useful) DISPMANX API is only compiled when running on a Raspberry Pi with Raspberry Pi OS Buster (32 bit), as it is the only
platform that still supports it.

Expand All @@ -119,8 +116,8 @@ If you followed the previous steps, or you're using the pre-built wheels, the he
On supported platforms (RPi 1-3 with Raspberry Pi OS Buster), the `egl_rpi` window provider is used by default. This window provider uses the
(deprecated, will be removed in future) DISPMANX API to create a headless GL context.

On other platforms (e.g RPi 4 or 64 bit OS), the `sdl2` window provider is used by default. If during the build process for the `sdl2`
dependencies the `kmsdrm` headers and libraries are found, the `kmsdrm` backend is enabled. This backend allows to create a headless
On other platforms (e.g RPi 4 or 64 bit OS), the `sdl2` window provider is used by default. If during the build process for the `sdl2`
dependencies the `kmsdrm` headers and libraries are found, the `kmsdrm` backend is enabled. This backend allows to create a headless
GL context using the KMS/DRM API.

Hardware acceleration
Expand Down
2 changes: 1 addition & 1 deletion examples/widgets/unicode_textinput.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class Unicode_TextInput(BoxLayout):
Greek: Η γρήγορη καφέ αλεπού πηδάει πάνω από το τεμπέλικο
γέρικο σκυλί.
Gujrati: આ ઝડપી ભુરો શિયાળ તે બેકાર જૂના કૂતરા પર કૂદકા.
Gurmukhi: ਤੇਜ ਭੂਰੇ ਰੰਗ ਦੀ ਲੂੰਬੜੀ ਆਲਸੀ ਬੁੱਢੇ ਕੁੱਤੇ ਦੇ ਉਤੋਂ ਦੀ ਟੱਪਦੀ ਹੈ ।
Gurmukhi: ਤੇਜ ਭੂਰੇ ਰੰਗ ਦੀ ਲੋਮੜੀ ਆਲਸੀ ਬੁੱਢੇ ਕੁੱਤੇ ਦੇ ਉਤੋਂ ਦੀ ਟੱਪਦੀ ਹੈ ।
Hiation Creole: Rapid mawon Rena a so sou chen an parese fin vye granmoun.
Hebrew: השועל החום הזריז קופץ על הכלב הישן עצלן.
Hindi: तेज भूरे रंग की लोमड़ी आलसी बूढ़े कुत्ते के उपर से कूदती है ॥
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
cython_min=0.29.1
cython_max=3.0.0
cython_exclude=
python_versions=3.7 - 3.12
python_versions=3.8 - 3.12

[coverage:run]
parallel = True
Expand All @@ -14,7 +14,7 @@ plugins =
concurrency = thread, multiprocessing

[options]
python_requires = >=3.7
python_requires = >=3.8
install_requires =
Kivy-Garden>=0.1.4
docutils
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,6 @@ def glob_paths(*patterns, excludes=('.pyc', )):
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: BSD :: FreeBSD',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
Expand Down

0 comments on commit c94c9ba

Please sign in to comment.