forked from pool/python-Kivy
Compare commits
9 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 3a57bfa302 | |||
| 0f3179ebfc | |||
| 7b42867962 | |||
| dab65f285b | |||
| 9f4f64e006 | |||
| b02c44d163 | |||
| c5fcc41ca0 | |||
| 1b5affa759 | |||
| 98e9443972 |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:bb71df29e516336ac907df845903afee9169a886e535868deea64ca856ac3219
|
||||
size 23964084
|
||||
3
kivy-2.3.1.tar.gz
Normal file
3
kivy-2.3.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:83eee956b84ab7bf9e9d5b38544acc40a0e55f05cea7112fd01cda172c98244a
|
||||
size 23968642
|
||||
13
pytest_compatibility.patch
Normal file
13
pytest_compatibility.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
Index: kivy-2.3.1/kivy/tests/common.py
|
||||
===================================================================
|
||||
--- kivy-2.3.1.orig/kivy/tests/common.py
|
||||
+++ kivy-2.3.1/kivy/tests/common.py
|
||||
@@ -498,7 +498,7 @@ def async_run(func=None, app_cls_func=No
|
||||
if kivy_eventloop == 'asyncio':
|
||||
try:
|
||||
import pytest_asyncio
|
||||
- return pytest.mark.asyncio(pytest_asyncio.fixture(func))
|
||||
+ return pytest.mark.asyncio(func)
|
||||
except ImportError:
|
||||
return pytest.mark.skip(
|
||||
reason='KIVY_EVENTLOOP == "asyncio" but '
|
||||
@@ -1,3 +1,49 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 21 15:27:48 UTC 2026 - Marius Grossu <marius.grossu@suse.com>
|
||||
|
||||
- Add pytest_compatibility.patch: Fix pytest9 compatibility
|
||||
- Add asyncio_mode = "auto"' to pyproject.toml in spec file
|
||||
(gh#kivy/kivy#9245)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 14 06:01:10 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Support both lowercased and unnormalized metadata directory names.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 25 02:50:14 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Lowercase metadata directory name.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 17 07:43:47 UTC 2025 - Bernhard Wiedemann <bwiedemann@suse.com>
|
||||
|
||||
- Use double-quotes around %_smp_mflags in case it expands to a variable
|
||||
(boo#1237231)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 8 11:11:39 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
|
||||
|
||||
- Update to 2.3.1:
|
||||
* Fix `ConfigParser.write` error with when `--save` is supplied
|
||||
as an argument
|
||||
* Fix dropped motion events in mtdev provider.Update `monitor`
|
||||
module to use `dp`
|
||||
* Rename `CaptureDelegate` to `KivyCaptureDelegate` in
|
||||
`AVFoundationCamera` to avoid duplicated symbols
|
||||
* `avplayer` audio provider: Fixes `seek` and `state` on iOS and macOS
|
||||
* Fix numpy float/int error when using `CameraAndroid.decode_frame`
|
||||
* Use `filetype` as `imghdr` built-in module is deprecated and slated
|
||||
for removal in Python 3.13
|
||||
* Updated ES vkeyboard layout to resemble a real ES keyboard layout
|
||||
* Fix `xsel` import when clipboard is empty, and add timeout failsafe
|
||||
* Fix `SDL_EventFilter` definitions to match SDL definitions
|
||||
(fixes build on GCC 14)
|
||||
* Revert #8415 and align `glShaderSource` `typedef` in `common_subset.h`
|
||||
with Khronos Headers
|
||||
* Fix dropped motion events in mtdev provider.
|
||||
Full changelog: https://github.com/kivy/kivy/releases/tag/2.3.1
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jan 13 20:32:53 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-Kivy
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2026 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -26,13 +26,15 @@
|
||||
%endif
|
||||
%define plainpython python
|
||||
Name: python-Kivy
|
||||
Version: 2.3.0
|
||||
Version: 2.3.1
|
||||
Release: 0
|
||||
Summary: Hardware-accelerated multitouch application library
|
||||
License: Apache-2.0 AND MIT AND LGPL-2.1-or-later AND GPL-2.0-or-later AND GPL-3.0-only AND BSD-3-Clause
|
||||
URL: https://kivy.org/
|
||||
Source: https://github.com/kivy/kivy/archive/%{version}.tar.gz#/kivy-%{version}.tar.gz
|
||||
Source99: python-Kivy.rpmlintrc
|
||||
# PATCH-FIX-UPSTREAM pytest_compatibility.patch based on PR 9245
|
||||
Patch0: pytest_compatibility.patch
|
||||
BuildRequires: %{mypython}-Sphinx
|
||||
BuildRequires: %{python_module Cython with %python-Cython < 3}
|
||||
BuildRequires: %{python_module Pillow}
|
||||
@@ -64,6 +66,7 @@ BuildRequires: pkgconfig(pangoft2)
|
||||
Requires: mtdev
|
||||
Requires: python-Pygments
|
||||
Requires: python-docutils
|
||||
Requires: python-filetype
|
||||
Requires: xclip
|
||||
# Not listed in setup.cfg but imported in core/spelling/spelling_enchant.py
|
||||
Requires: python-pyenchant
|
||||
@@ -73,6 +76,7 @@ Requires: python-requests
|
||||
# /SECTION
|
||||
# SECTION test
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module filetype}
|
||||
BuildRequires: %{python_module pytest-asyncio}
|
||||
BuildRequires: %{python_module pytest-timeout}
|
||||
BuildRequires: %{python_module pytest-xvfb}
|
||||
@@ -114,7 +118,7 @@ Kivy is a library for development of applications that make use of
|
||||
user interfaces, such as multi-touch apps.
|
||||
|
||||
%prep
|
||||
%setup -q -n kivy-%{version}
|
||||
%autosetup -p1 -n kivy-%{version}
|
||||
# remove the legacy garden install script as python requirement, get it from PyPI or https://github.com/kivy-garden/garden/ if you need it
|
||||
sed -i '/Kivy-Garden/d' setup.cfg
|
||||
# remove shebang
|
||||
@@ -130,6 +134,7 @@ sed -i "/^#!/ c #!%{__mypython}" kivy/tools/image-testsuite/gimp28-testsuite.py
|
||||
sed -i "/^#!/ c #!`which sh`" kivy/tools/image-testsuite/imagemagick-testsuite.sh
|
||||
# remove benchmark from tests
|
||||
sed -i /addopts/d pyproject.toml
|
||||
sed -i '/\[tool.pytest.ini_options\]/a asyncio_mode = "auto"' pyproject.toml
|
||||
chmod -x kivy/tools/pep8checker/pre-commit.githook
|
||||
|
||||
%build
|
||||
@@ -139,7 +144,7 @@ export KIVY_SPLIT_EXAMPLES=1
|
||||
# create docs
|
||||
pushd doc
|
||||
sed -e '/^PYTHON/ s|python|%{__mypython}|' \
|
||||
-e '/^SPHINXOPTS /s/$/ %{?_smp_mflags}/' \
|
||||
-e "/^SPHINXOPTS /s/\$/ %{?_smp_mflags}/" \
|
||||
-i Makefile
|
||||
export PYTHONPATH=`ls -d ../build/lib*`
|
||||
make %{?_smp_mflags} PYTHON=%{__mypython} html && rm -r build/html/.buildinfo
|
||||
@@ -176,7 +181,7 @@ popd
|
||||
%license LICENSE
|
||||
%doc AUTHORS
|
||||
%{python_sitearch}/kivy
|
||||
%{python_sitearch}/Kivy-%{version}.dist-info
|
||||
%{python_sitearch}/[Kk]ivy-%{version}.dist-info
|
||||
|
||||
%files %{python_files devel} -f kivy-devel-%{python_bin_suffix}.files
|
||||
%doc doc/sources/changelog.rst
|
||||
|
||||
Reference in New Issue
Block a user