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

12345678910111213141516171819202122232425262728293031323334353637383940
  1. From 662cd67695c31126d72035a818b0f5f1da5a31ca Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  3. Date: Sat, 17 Aug 2024 12:24:28 +0200
  4. Subject: [PATCH] setup.py: drop data_files, installs LICENSE to incorrect
  5. place
  6. As reported in issue
  7. https://github.com/xmlrunner/unittest-xml-reporting/issues/284, the
  8. data_files statement in the setup() calls installs the LICENSE file in
  9. the wrong place: in /usr/LICENSE, or even /LICENSE depending on the
  10. configuration.
  11. So let's drop this, and let setuptools install the LICENSE file
  12. automatically: since setuptools v56, the license_files attribute is
  13. automatically assigned to a default value, which includes "LICENSE",
  14. so there is in fact nothing to do to the get the LICENSE file
  15. installed at the correct location. See
  16. https://setuptools.pypa.io/en/latest/history.html#v56-0-0.
  17. Upstream: https://github.com/xmlrunner/unittest-xml-reporting/pull/287
  18. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  19. ---
  20. setup.py | 1 -
  21. 1 file changed, 1 deletion(-)
  22. diff --git a/setup.py b/setup.py
  23. index c524ed4..afa5925 100755
  24. --- a/setup.py
  25. +++ b/setup.py
  26. @@ -27,7 +27,6 @@ setup(
  27. description = 'unittest-based test runner with Ant/JUnit like XML reporting.',
  28. long_description = long_description,
  29. long_description_content_type = 'text/markdown',
  30. - data_files = [('', ['LICENSE'])],
  31. install_requires = ['lxml'],
  32. license = 'BSD',
  33. platforms = ['Any'],
  34. --
  35. 2.46.0