python-gphoto2/python-gphoto2-do_not_install_data.patch
Ana Guerrero 69ea5e28b1 - Update to 2.5.1:
* Add '__version_tuple__' for easy runtime version checking.
  * API change: gp_log_add_func callback is passed str instead of bytes
  * Add some GPPort methods. This allows a port to be reset when an error
    occurs.
  * Pass CameraFile to gp_camera_capture_preview & gp_camera_file_get.
    Optional - one will be created if needed.
  * Remove Context::camera_autodetect method deprecated 3 years ago.
  * Rename Context, PortInfo & PortInfoList. Add aliases of old names.
  * Update libgphoto2 to v2.5.31.
  * API change! gp_file_open no longer creates CameraFile object. It is now
    consistent with the C API.
  * Deprecated functions: gp_abilities_list_append, gp_list_populate,
    gp_port_info_list_append, gp_widget_add_choice, gp_widget_set_info,
    gp_widget_set_name, gp_widget_set_range, gp_widget_set_readonly.
    These will be removed in a future release.
  * Change licence from GPLv3+ to LGPLv3+.
  * CameraList behaves like a cross between Python list and dict types.
  * Added unit tests to check most libgphoto2 functions.
  * Add Python 3.11 binary wheels.
  * Drop support for libgphoto2 before version v2.5.10
  * Clearer installation documentation.
  * Modernised Python package build system.
  * Update libgphoto2 to v2.5.30.
  * Include localisation files in Python package.
- Rebase python-gphoto2-do_not_install_data.patch to support upstream
  changes.
- Switch to pyproject macros.
- Move to the GitHub tarball.
- Run a portion of the (new!) testsuite.

OBS-URL: https://build.opensuse.org/package/show/graphics/python-gphoto2?expand=0&rev=20
2025-01-20 10:59:39 +00:00

18 lines
477 B
Diff

Index: gphoto2-2.5.1/setup.py
===================================================================
--- gphoto2-2.5.1.orig/setup.py
+++ gphoto2-2.5.1/setup.py
@@ -25,9 +25,9 @@ import os
import subprocess
import sys
-packages = ['gphoto2', 'gphoto2.examples']
-package_dir = {'gphoto2.examples': 'examples'}
-package_data = {'gphoto2.examples': ['*']}
+packages = ['gphoto2']
+package_dir = {}
+package_data = {}
exclude_package_data = {'': ['*.c']}
extra_link_args = []