From: TizenOpenSource Date: Wed, 7 Feb 2024 06:55:48 +0000 (+0900) Subject: Bump to 2.17.2 X-Git-Tag: accepted/tizen/base/20240328.043226^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_base;p=platform%2Fupstream%2Fpython3-pygments.git Bump to 2.17.2 Signed-off-by: TizenOpenSource --- diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 0a60df1..0000000 --- a/.gitignore +++ /dev/null @@ -1,19 +0,0 @@ -*.pyc -*.pyo -.*.sw[op] -/.pytest_cache/ -/.idea/ -/.project -/.tags -/.tox/ -/.cache/ -/TAGS -/build/* -/dist/* -/doc/_build -/.coverage -/htmlcov -/.vscode -venv/ -.venv/ -.DS_Store diff --git a/packaging/python3-pygments.manifest b/packaging/python3-pygments.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/python3-pygments.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/python3-pygments.spec b/packaging/python3-pygments.spec new file mode 100644 index 0000000..0057984 --- /dev/null +++ b/packaging/python3-pygments.spec @@ -0,0 +1,44 @@ +Name: python3-pygments +Version: 2.17.2 +Release: 1 +Summary: A syntax highlighting engine written in Python3 +Group: Development/Libraries +License: BSD-2-Clause +URL: http://pygments.org/ +Source0: %{name}-%{version}.tar.gz +Source1001: python3-pygments.manifest + +BuildRequires: pkgconfig(python3) +BuildRequires: python3-build +BuildRequires: python3-pip +BuildRequires: python3-hatchling + +BuildArch: noarch + +%description +Pygments is a syntax highlighting engine written in Python3. That means, it +will take source code (or other markup) in a supported language and output +a processed version (in different formats) containing syntax highlighting +markup. + +%prep +%setup -q -n %{name}-%{version} +cp %{SOURCE1001} . + +%build +%{_bindir}/python3 -m build -n + +%install +%{_bindir}/python3 -m pip install --root %{buildroot} ./dist/pygments-%{version}-py3-*.whl + +%files +%manifest %{name}.manifest +%license LICENSE +%{_bindir}/pygmentize +%{python3_sitelib}/pygments/*.py +%{python3_sitelib}/pygments/filters/* +%{python3_sitelib}/pygments/formatters/* +%{python3_sitelib}/pygments/lexers/* +%{python3_sitelib}/pygments/__pycache__/* +%{python3_sitelib}/pygments/styles/* +%{python3_sitelib}/pygments-%{version}.dist-info/*