Commit Graph

11571 Commits

Author SHA1 Message Date
Mathieu Virbel 3da544c7b2 remove unwanted files, and disable bytesio tests on CI 2019-03-05 00:28:23 +01:00
Mathieu Virbel e5a5dac328 Purge Window GL context and Cache when window is closed. This fixes FBO tests 2019-03-05 00:28:23 +01:00
Mathieu Virbel 285e22372f tests: prevent any import that will create the window during import when pytest is scanning for tests 2019-03-05 00:28:23 +01:00
Mathieu Virbel c3d6292ac9 remove comment or travis.yml wont be parsed 2019-03-05 00:28:23 +01:00
Mathieu Virbel 9e1bc492a8 bionic not available on travis, so use a ppa that have latest sdl2 2019-03-05 00:28:23 +01:00
Mathieu Virbel be4c0bda1b use latest sdl2 from bionic, not old snapshots stuck on 2.0.0 2019-03-05 00:28:23 +01:00
Mathieu Virbel edc22b82d8 enforce KIVY_NO_ARGS when using pytest 2019-03-05 00:28:23 +01:00
Mathieu Virbel 82c8d2f981 move the test suite to pytest 2019-03-05 00:28:23 +01:00
Justin Marsh (:flaviusb) a6a276b0a7 Change check for Cython to attempt fallback to setuptools on supporte… (#5998)
* Change check for Cython to attempt fallback to setuptools on supported platforms.

This attempts to solve Issue #5984 without causing more problems for Issue #5558.

* Correct argument to extras_require.

* Refactor the declaration and usage of Cython

- Use setuptools.setup by default if available for import.
- The objective for that complicated import/cython is commented.
- Also have more specific variable names, and have their usage be
  clarified.

- Remove Cython from install_requires as it already is declared under
  setup_requires, and that it conflicts with install_requires due to
  issues in setuptools.

  - https://github.com/pypa/setuptools/issues/209
  - https://github.com/pypa/setuptools/issues/391

- This commit goes back to breaking installation in environments without
  Cython, but should be rectified in the next commit.

* Actually fix the specific usage of Cython

- In order for setup.py to make use of the Cython installed during by
  the setup_requires to be usable, it must be imported after it is
  installed by that step, thus it cannot be done at the top level and
  this can be achieved by importing it when it's actually called. A
  build_ext factory function is created for this.
- Still allow whatever Cython already present on the current environment
  be attempted to be used.  This may end up being unnecessary as if it
  is always declared in setup_requires (which isn't currently the case
  due to the complicated/documented block), it _should_ pull in the
  exact/supported version of Cython for usage.  This should be
  investigated so that this complicated logic may be avoided.

* Make distutils happy by not using factory function

- As it turns out, calling setup.py build_ext will result in a code path
  within setuptools that will invoke distutils in a way that forces an
  issubclass check, which ultimately results in an exception due to that
  function not being a class.
- To fix this, we go back to constructing a base class except also using
  the "new" style class (to make Python 2 happy) so that the __new__
  method will actually be called so that the logic to select the Cython
  version of build_ext will be invoked.
- Also use the super class protocol to invoke parent methods.

* Declare version bounds directly on setup_requires

- This allows us to fully remove the brittle version checks
- Also this allows us to directly declare setup_requires if Cython is
  definitely required, as this would allow the correct version to be
  installed directly by setuptools during the execution of the setup
  step.
- No need to check for failed Cython imports due to the presence of the
  setup_requires declaration.

* Add comment explaining the initialisation routine for KivyBuildExt.

Details of how setuptools deals with both cmdclass and when setup_requires
dependencies come in to scope are both relevant.

* Bring comment in to line with earlier changes.

The cython checks are significantly simpler now, and the rationale is also slightly different.
2019-03-04 11:49:42 +01:00
Shai Avraham 900237424e Fix rgba function for python 3 (used to crash) 2019-03-02 16:52:05 +01:00
Gabriel Pettier 278b00786a fix broken update to avfoundation 2019-02-21 22:53:59 +01:00
GoBig87 3d14a1a860 Adding switch between osx and ios 2019-02-21 01:16:03 +01:00
GoBig87 543ebd8e1b Adding fixes to support ios camera 2019-02-21 01:16:03 +01:00
Terje Skjaeveland c92e27ab3d img_tools.pxi: Fix incorrect rowlen for alignment
Fixes the k % rowlen == 0 test
2019-02-20 10:29:54 +01:00
Terje Skjaeveland 8807496b67 img_tools.pxi: Support pitch alignment in bgr->rgb
Adds support for pitch alignment in BGR pixel data
2019-02-20 10:29:54 +01:00
Ben Saylor 8291133df2 Add PyInstaller to .travis.yml 2019-02-18 13:10:45 +01:00
Ben Saylor cbdcdf1628 Fix GST_PLUGIN_PATH in runtime hook
- Only include `gst-plugins`
- Also, semicolon was only correct on Windows
2019-02-18 13:10:45 +01:00
Ben Saylor 5ffd911102 Include GStreamer binaries in get_deps_* 2019-02-18 13:10:45 +01:00
Mathieu Virbel 237b818d72 Update installation for RPI with notes for latest Raspian issues
Closes #6077
2019-02-15 22:06:07 +01:00
Alexander Taylor 51e6dae921
Merge pull request #6164 from inclement/fix_android_orientation
Removed default orientation hints on Android
2019-02-14 20:09:36 +00:00
Alexander Taylor 19603bf5b7 Removed default orientation hints on Android 2019-02-13 22:20:35 +00:00
Albert Zeyer 233cdd173d HIDInputMotionEventProvider, set thread name 2019-02-12 16:09:47 +01:00
Albert Zeyer eeabd13670 MTDMotionEventProvider, set thread name 2019-02-12 16:09:26 +01:00
Andre Miras 4905319cd3
Merge pull request #6148 from opacam/fix-travis-xsel
Fix some travis errors
2019-02-09 22:17:57 +01:00
Mathieu Virbel dfbdf6a1e5 Fix FBO tests, it was using render() but Fbo was correctly draw
Because Render is definitely not needed for fbo, that's how FBO is working: You render in a surface then read it. The render invoke window flip but this is not necessary.
2019-02-09 20:53:43 +01:00
opacam 5bbe9f06c3 Fix pep8: E121 continuation line under-indented for hanging indent (setup.py) 2019-02-09 16:19:22 +01:00
opacam c8e174b0b5 Fix pep8: E501 line too long for filechooser and camera_opencv 2019-02-09 16:16:51 +01:00
opacam 83c9a72b69 Fix travis error on linux: `Unable to find any valuable Cutbuffer provider`
This is due to a missing dependency for linux `xsel`
2019-02-09 15:59:44 +01:00
Farley Lai 1a2f48f094 Updated camera_opencv.py to use reshape(-1) instead of tostring() (#5922)
* Update camera_opencv.py

Uses frame.reshape(-1) instead of frame.tostring() to remove unnecessary overhead.

* Update camera_opencv.py
2019-02-08 23:54:33 +01:00
Cheaterman c6cc83a38b Add new "canonical" path for binary Mali driver (#6054)
* Add new "canonical" path for binary Mali driver

This improves detection on "standard" setups of the Mali driver for platforms such as the Odroid XU4.

* Add another search location for Mali binary driver
2019-02-08 23:23:00 +01:00
Mathieu Virbel 23825f938f
Merge pull request #6050 from jfrancoc/patch-1
correction of a malfunctioning with ..\ in Windows platforms (function _generate_file_entries)
2019-02-08 16:23:02 +01:00
Mathieu Virbel a95d67fde7
Merge pull request #6142 from kivy/fix-sdl2-image-loading
Fixes SDL2 image loading (jpg)
2019-02-08 11:52:54 +01:00
Mathieu Virbel 835f76c896 fix styling issues 2019-02-08 11:29:42 +01:00
Mathieu Virbel 6bd7dfc6a9 fixes SDL2 image loading (jpg) 2019-02-08 10:50:02 +01:00
Alexander Taylor 775cd9e6e3
Merge pull request #6138 from opacam/fix-android-sensor-orientation
Fix android's sensor orientation
2019-02-07 22:30:17 +00:00
opacam e72aa26e21 Fix android's sensor orientation 2019-02-07 11:10:44 +01:00
Alexander Taylor 8f54a3f0a5
Merge pull request #6130 from inclement/fix_python_version_in_buildozer_doc
Removed python version specification from buildozer install
2019-02-03 23:18:44 +00:00
Alexander Taylor d057d05aac Removed python version specification from buildozer install 2019-02-03 16:48:20 +00:00
Mathieu Virbel 38dbbe9260
Merge pull request #4219 from ignus2/sdl2_swapwindow_nogil
Added nogil to _WindowSDL2Storage.flip()
2019-02-03 17:13:51 +01:00
Mathieu Virbel 7e6afb1581
Merge pull request #6129 from clach04/patch-1
typo in doc comments
2019-02-03 16:59:36 +01:00
clach04 3caca76197
typo in doc comments 2019-02-03 07:44:26 -08:00
Alexander Taylor 1f11d12d60
Merge pull request #6128 from guysoft/fix-emoji
Fix #6127
2019-02-03 11:20:43 +00:00
Guy Sheffer 838e58d623 Fix #6127 2019-02-03 13:08:36 +02:00
Mathieu Virbel 4a7ae92f81
Fixes pep8 2019-02-02 23:29:40 +01:00
Mathieu Virbel 825b0b9bc3
Merge pull request #6026 from rnixx/rnixx_compile_vc4
Support building against mesa video core drivers.
2019-02-02 23:24:36 +01:00
Mathieu Virbel 33cb9bb195
Merge pull request #6122 from kivy/feature-save-to-bytesio
Allow saving a core Image into BytesIO
2019-02-02 19:21:53 +01:00
Mathieu Virbel ffd3251216 dont run test on osx because imageio doesnt supports bytesio yet 2019-02-02 14:22:21 +01:00
Mathieu Virbel f1c4289b6f add main documentation about save() with BytesIO + couple of pep fixes 2019-02-02 12:38:31 +01:00
Mathieu Virbel 0eadfdd911 fixes Widget.export_to_png and unittests 2019-02-02 09:23:27 +01:00
Alexander Taylor e31e7e52b6
Merge pull request #6124 from inclement/remove_py3_android_experimental
Removed doc note about Python 3 on Android being experimental
2019-02-02 08:14:52 +00:00