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