Commit Graph

59 Commits

Author SHA1 Message Date
Christian Clauss dc83da8123
Python lint: Use `ruff` instead of `flake8` (#8944) 2024-12-26 10:55:00 +01:00
Christian Clauss ea40582837
setup.cfg: The item `option.dependency_links` dropped by `pip` in 2019 (#8942)
```diff
- dependency_links = https://github.com/kivy-garden/garden/archive/master.zip
```
> [!WARNING]
> Dependency links support has been dropped by pip starting with version 19.0 (released 2019-01-22).

https://setuptools.pypa.io/en/latest/deprecated/dependency_links.html

@misl6 Related to:
* #8127
2024-12-08 16:07:22 +01:00
Mirko Galimberti 81e508d04c
Remove Python `3.8` from supported matrix and set minimum supported version to `3.9` (#8935) 2024-12-01 10:06:59 +01:00
Mirko Galimberti c6b5e90d2d
Add Python 3.13 to both test and support matrix (#8815) 2024-10-26 15:39:51 +02:00
Mirko Galimberti aeb27bbbcf
Bump `SDL2` deps versions to latest available releases (macOS, Linux, Windows) (#8836)
* Bump SDL2 deps versions

* Use XMP instead of MODPLUG

* Bump Windows dependencies
2024-10-05 11:36:05 +02:00
Mirko Galimberti 0c374c7cf6
Make sure to pin a specific (or compatible) version of `sphinx` and related dependencies (#8715) 2024-05-04 10:56:27 +02:00
Mirko Galimberti 413533b216
Remove unused `sphinxcontrib-*diag` dependencies (and `funcparserlib`) (#8711) 2024-05-01 14:35:13 +02:00
Mirko Galimberti a1e159785a
Keep (or move) mandatory dependencies only in `install_requires` (#8656) 2024-03-23 10:04:12 +01:00
Kenechukwu Akubue 7e6d86197a
Use `filetype` as `imghdr` built-in module is deprecated and slated for removal in Python 3.13 (#8581)
* Ensure Imghdr compatibility with Kivy

* Use iletype to get file extension

* Reformat file and Refactor string formats

* Delete kivy/lib/imghdr.py

* Add filetype to `full`

* fix PEP8_test

* Fix integer bug
2024-03-05 19:23:22 +01:00
Nidhi Nishad 15f1db0394
Remove Python `3.7` from supported matrix and set minimum supported version to `3.8` (#8587) 2024-01-31 21:05:00 +01:00
Mirko Galimberti 74ed8e0785
Restrict the Pillow version to `>=9.5.0,<11` (#8505)
* Restrict the Pillow version to pillow>=9.5.0,<11

* Use --prefer-binary (will document it)

* Use --only-binary Pillow

* Document --only-binary for Windows 32 bit
2023-12-12 18:50:01 +01:00
Mirko Galimberti 3d045cd6ab
Add support for Python 3.12 (tests, wheels) (#8393) 2023-12-08 15:13:52 +01:00
Mirko Galimberti a44d8730a7
Bump `kivy_deps.angle` version to `~=0.4.0` (#8501) 2023-12-08 11:37:09 +01:00
Mirko Galimberti c957fee22a
Bump `SDL2` version to `2.28.5` and `SDL_image` to `2.8.0` in build dependencies script and update `kivy_deps.sdl2` on Windows (#8479)
* Bump SDL2 version in build dependencies script

* Use pre-release 2.7.1 for sdl_image

* Link for pre-releases is different

* sdl_image 2.8.0 has now been released

* Update kivy_deps.sdl2 and kivy_deps.sdl2-dev to 0.7.0 (to reflect the same changes made in Linux and macOS build scripts)
2023-12-06 20:41:22 +01:00
Mirko Galimberti ca1b918c65
Add support for `Cython==3.x.x` and increase `cython_min` version (#8326)
* Add support Cython==3.x.x and increase cython_min_version

* Migrate gstplayer
2023-08-26 10:00:20 +02:00
Mirko Galimberti 5585b2410b
Pin `Pillow` version to `9.5.0` (#8310) 2023-07-02 19:02:52 +02:00
Mirko Galimberti 9d7df3f105
Ensures that jQuery is always installed (on newer sphinx versions is not the default) (#8251) 2023-05-20 16:22:47 +02:00
Mirko Galimberti 95cfefb260 Sphinx 7.0.0 is incompatible, use <=6.2.1 for now 2023-05-03 23:01:35 +05:30
Mirko Galimberti 75dbb247be
Bump cython_max version to 0.29.33 (#8178) 2023-03-19 11:48:38 +01:00
Mirko Galimberti 619c7f3216
Update Python supported versions (#8179) 2023-03-19 11:47:34 +01:00
Mirko Galimberti a8a036ba33
Bump Windows dependencies via kivy_deps packages (#8176) 2023-03-19 10:38:28 +01:00
Christian Clauss 5c5cb51351
Remove remaining nosetest settings in favor of pytest (#8129) 2023-02-14 20:59:11 +01:00
Mirko Galimberti 3f6d36e913
Add support for Python 3.11 (#8044)
* Test on Python 3.11 (except Apple Silicon)

* Add comment about gstreamer 0.4.0

* Bump cython to 0.29.32 for 3.11 support.

* Bump cibuildwheel to 2.11.2 and add config for 3.11

Co-authored-by: Matt Einhorn <matt@einhorn.dev>
2022-11-06 14:51:20 +01:00
Mirko Galimberti d9e0b4c72e
Bump kivy_deps.sdl2 and kivy_deps.sdl2_dev to 0.5.0 (#8004) 2022-09-10 19:00:13 +02:00
NomadDemon 4841427812
fix(UrlRequest): Add "on_finish" and add alternative implementation (#7913)
* fix(UrlRequest): Add "on_finish" and add alternative implementation

- Added "on_finish" callback to URlRequest, it fires always when the request is done
- Added alternative implementation for UrlRequest based on REQUESTS lib
- It have also implemented "on_finish" and "auth" params for easy BASICAUTH handling
- Refactored tests of new implementation to be mocked by RESPONSES, so we dont need real network to test nor we dont ping real servers during tests
- Made selectable implementations of URLlib and Requests.
- Urllib is still default implementation
- Refactored baseclass to be used with "plugins"

* fix docs and add "implementation" in config

- There was missing docs in some places
- Minor "unused variables" fixes
- Add "implementation" key to config.network
2022-08-23 01:07:59 +02:00
Mirko Galimberti bb5a857242
Fixes some E275 - assert is a keyword. + other minor PEP8 fixes (#7943)
* Fixes some E275 - assert is a keyword

* Fix E501
2022-08-12 18:25:37 +02:00
Matthew Einhorn 856bde968d
Bump cython and kivy_deps versions to latest. 2022-02-25 19:47:48 -05:00
Mirko Galimberti 8451d298c1
PyInstaller develop version isn't needed anymore (#7781) 2022-01-31 23:14:27 +01:00
Mirko Galimberti 1029f2ad9d Removed Python3.6 from the supported ones, it reached EOL 2022-01-22 16:04:20 +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
matham ed68be56e4
Merge pull request #7362 from pwoolvett/fix/invalid-extras-metadata
Build: No oneliners in [options.extras_require]
2021-02-02 15:08:12 -05:00
Pablo Woolvett 15c3890bd8 build: No oneliners in [options.extras_require]
Fix `setup.cfg` so that the resulting `METADATA` when generating
wheels contains correctly (not split) `Requires-Dist` entries.

Before:

Provides-Extra: angle
Requires-Dist: kivy-deps.angle (~=0.3.0) ; extra == 'angle'
Requires-Dist: sys-platform (=="win32") ; extra == 'angle'

After:

Provides-Extra: angle
Requires-Dist: kivy-deps.angle (~=0.3.0) ; (sys_platform == "win32") and extra == 'angle'

The same goes for gstreamer, angle, sdl2, and glew.
2021-02-02 16:37:10 -03: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 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
Eero af Heurlin df5b2c16d5
Add pre-commit.com framework hooks (#7176)
* Add pre-commit hooks for basic standards conformity checking

* These should not be marked as executable

* These lack shebangs so marking them executable did not do anyone any good

* add pre-commit to dev requirements

* use pre-commit framework for the hook

* Move the pre-commit config outside of root

As discusses in https://github.com/kivy/kivy/pull/7176#discussion_r511240059

* Document that pre-commit is used and how to skip checks if needed

* Mark the old hook script as deprecated
2020-12-09 22:48:48 -05:00
Matthew Einhorn 1e03ffd3a7 Re-write install docs. 2020-11-28 03:36:39 -05:00
matham 850dbb6605
Expand dependency selection varaibles (#7178)
* Expand dependency options.

* Is equal instead of in.
2020-10-24 14:09:01 -04:00
Matthew Einhorn 0d3bc288f6 Bump cython to 0.29.21. 2020-10-14 17:41:41 -04:00
Matthew Einhorn 4777dcc763 Add support for Python 3.9. 2020-10-06 19:04:40 -04:00
matham 5bab4849c4
No need for quotes in setup file. 2020-09-27 13:26:58 -04:00
Akshay Arora b407ae4bdb
require python version >=3.6
supplement pr to #7110
2020-09-27 22:19:23 +05:30
matham f8ab7229c3
Add min basic dependencies to install requirements. 2020-09-14 17:43:30 -04:00
matham 6d09e3dc61
Update to latest cython version. (#6891) 2020-05-24 04:28:47 -04:00
matham bb1e8b28e5
Fix failing coverage (#6892)
* Fix failing coverage

* Fix PEP8

* format was not applied to the first string.

* Enable branch coverage by default.

* Update setup.cfg

* Update setup.cfg
2020-05-24 03:58:38 -04:00
matham 69338d7e41
Fix failing tests (#6845) 2020-04-29 00:05:32 -04:00
Matthew Einhorn 6607506953 Move flake8 config to setup.cfg, be more error spcific. 2020-01-05 02:36:21 -05:00
Matthew Einhorn 0b6b8930e6 Switch to flake8 and fix PEP8 issues. 2020-01-03 17:17:09 -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 04aa073e2a Specify kivy_deps versions more precisely. 2019-12-28 00:01:04 -05:00
matham 9e3b1b121d
Add docutils and pygments. 2019-12-20 16:06:54 -05:00