0001-setup.py-drop-data_files-installs-LICENSE-to-incorre.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. From ee3010004a005bc852e6b9318807f373bd89e901 Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  3. Date: Sat, 17 Aug 2024 14:10:16 +0200
  4. Subject: [PATCH] setup.py: drop data_files, installs LICENSE to incorrect
  5. place
  6. The data_files statement in the setup() calls installs the LICENSE
  7. file in the wrong place: in /usr/LICENSE, or even /LICENSE depending
  8. on the configuration.
  9. So let's drop this, and let setuptools install the LICENSE file
  10. automatically: since setuptools v56, the license_files attribute is
  11. automatically assigned to a default value, which includes "LICENSE",
  12. so there is in fact nothing to do to the get the LICENSE file
  13. installed at the correct location. See
  14. https://setuptools.pypa.io/en/latest/history.html#v56-0-0.
  15. Upstream: https://github.com/s0md3v/huepy/pull/42
  16. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  17. ---
  18. setup.py | 1 -
  19. 1 file changed, 1 deletion(-)
  20. diff --git a/setup.py b/setup.py
  21. index 8b5a726..bd41f1c 100644
  22. --- a/setup.py
  23. +++ b/setup.py
  24. @@ -30,7 +30,6 @@ setup(
  25. keywords='hue, color, terminal color, colorama',
  26. packages=find_packages(),
  27. py_modules=['huepy'],
  28. - data_files=[('', ['LICENSE'])],
  29. include_package_data=True,
  30. classifiers=[
  31. 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
  32. --
  33. 2.46.0