!56 [sync] PR-53: Use wildcards to include the pygments module.

From: @openeuler-sync-bot 
Reviewed-by: @Charlie_li 
Signed-off-by: @Charlie_li
This commit is contained in:
openeuler-ci-bot 2023-12-28 09:54:46 +00:00 committed by Gitee
commit f43aab86f2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,26 @@
From 01f05b4dc5155745d401f31545fc1a089e8a3710 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Matth=C3=A4us=20G=2E=20Chajdas?= <dev@anteru.net>
Date: Fri, 29 Nov 2019 20:21:03 +0100
Subject: [PATCH] Use wildcards to include the pygments module.
This should fix PR#1316 properly.
---
setup.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/setup.py b/setup.py
index d4555e3f..9c245215 100755
--- a/setup.py
+++ b/setup.py
@@ -35,7 +35,7 @@ setup(
description = 'Pygments is a syntax highlighting package written in Python.',
long_description = __doc__,
keywords = 'syntax highlighting',
- packages = find_packages(exclude=['tests']),
+ packages = find_packages(include=['pygments', 'pygments.*']),
entry_points = {
'console_scripts': ['pygmentize = pygments.cmdline:main'],
},
--
2.42.0.windows.2

View File

@ -16,7 +16,7 @@ need to prettify source code. Highlights are: \
Name: python-pygments
Summary: Syntax highlighting engine written in Python
Version: 2.5.2
Release: 5
Release: 6
License: BSD
URL: http://pygments.org/
Source0: https://pypi.org/packages/source/P/Pygments/Pygments-%{version}.tar.gz
@ -26,6 +26,7 @@ Patch6000: backport-CVE-2021-20270.patch
Patch6001: backport-CVE-2021-27291.patch
Patch6002: backport-weed-out-more-backtracking-string-regexes.patch
Patch6003: backport-Remove-generated-output-directory-when-make-clean-is.patch
Patch6004: backport-Use-wildcards-to-include-the-pygments-module.patch
%description
%{_description}
@ -86,6 +87,9 @@ cp -r doc/docs doc/reST
%lang(en) %{_mandir}/man1/pygmentize.1*
%changelog
* Wed Dec 27 2023 fandehui <fandehui@xfusion.com> - 2.5.2-6
- Use wildcards to include the pygments module
* Thu Nov 3 2021 huangduirong<huangduirong@huawei.com> - 2.5.2-5
- Remove generated output/ directory when 'make clean' is called