mv commonmark to python3-commonmark

(cherry picked from commit f0da838b53fd9d9b50a0208858d5907de4e7351e)
This commit is contained in:
peijiankang 2023-08-30 16:06:54 +08:00 committed by openeuler-sync-bot
parent c33480b7d7
commit c0992043b6
2 changed files with 74 additions and 2 deletions

View File

@ -0,0 +1,69 @@
From 7fad39ad4816483612fdac95df0fc022c5620c4d Mon Sep 17 00:00:00 2001
From: peijiankang <peijiankang@kylinos.cn>
Date: Wed, 30 Aug 2023 15:50:07 +0800
Subject: [PATCH] mv commonmark to python3-commonmark
---
PKG-INFO | 10 +++++-----
README.rst | 10 +++++-----
setup.py | 2 +-
3 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/PKG-INFO b/PKG-INFO
index 65753a9..7d12804 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -62,11 +62,11 @@ Description: commonmark.py
::
- $ commonmark README.md -o README.html
- $ commonmark README.md -o README.json -aj # output AST as JSON
- $ commonmark README.md -a # pretty print generated AST structure
- $ commonmark -h
- usage: commonmark [-h] [-o [O]] [-a] [-aj] [infile]
+ $ python3-commonmark README.md -o README.html
+ $ python3-commonmark README.md -o README.json -aj # output AST as JSON
+ $ python3-commonmark README.md -a # pretty print generated AST structure
+ $ python3-commonmark -h
+ usage: python3-commonmark [-h] [-o [O]] [-a] [-aj] [infile]
Process Markdown according to the CommonMark specification.
diff --git a/README.rst b/README.rst
index a3da1c5..67ee75c 100644
--- a/README.rst
+++ b/README.rst
@@ -52,11 +52,11 @@ There is also a CLI:
::
- $ commonmark README.md -o README.html
- $ commonmark README.md -o README.json -aj # output AST as JSON
- $ commonmark README.md -a # pretty print generated AST structure
- $ commonmark -h
- usage: commonmark [-h] [-o [O]] [-a] [-aj] [infile]
+ $ python3-commonmark README.md -o README.html
+ $ python3-commonmark README.md -o README.json -aj # output AST as JSON
+ $ python3-commonmark README.md -a # pretty print generated AST structure
+ $ python3-commonmark -h
+ usage: python3-commonmark [-h] [-o [O]] [-a] [-aj] [infile]
Process Markdown according to the CommonMark specification.
diff --git a/setup.py b/setup.py
index d82c4fb..2b6b654 100644
--- a/setup.py
+++ b/setup.py
@@ -48,7 +48,7 @@ setup(
keywords=["markup", "markdown", "commonmark"],
entry_points={
'console_scripts': [
- 'commonmark = commonmark.cmark:main',
+ 'python3-commonmark = commonmark.cmark:main',
]
},
cmdclass={'test': Test},
--
2.33.0

View File

@ -1,13 +1,13 @@
Name: python-commonmark Name: python-commonmark
Version: 0.9.1 Version: 0.9.1
Release: 2 Release: 3
Summary: Python parser for the CommonMark Markdown spec Summary: Python parser for the CommonMark Markdown spec
License: BSD-3-Clause License: BSD-3-Clause
URL: https://github.com/rtfd/commonmark.py URL: https://github.com/rtfd/commonmark.py
Source0: https://files.pythonhosted.org/packages/60/48/a60f593447e8f0894ebb7f6e6c1f25dafc5e89c5879fdc9360ae93ff83f0/commonmark-0.9.1.tar.gz Source0: https://files.pythonhosted.org/packages/60/48/a60f593447e8f0894ebb7f6e6c1f25dafc5e89c5879fdc9360ae93ff83f0/commonmark-0.9.1.tar.gz
Patch0: 0001-mv-cmark-to-commonmark.patch Patch0: 0001-mv-cmark-to-commonmark.patch
Patch1: 0001-mv-commonmark-to-python3-commonmark.patch
BuildArch: noarch BuildArch: noarch
Requires: python3-future >= 0.14.0 Requires: python3-future >= 0.14.0
@ -85,6 +85,9 @@ mv %{buildroot}/filelist.lst .
%{_pkgdocdir} %{_pkgdocdir}
%changelog %changelog
* Wed Aug 30 2023 peijiankang <peijiankang@kylinos.cn> - 0.9.1-3
- mv commonmark to python3-commonmark
* Mon Feb 27 2023 peijiankang <peijiankang@kylinos.cn> - 0.9.1-2 * Mon Feb 27 2023 peijiankang <peijiankang@kylinos.cn> - 0.9.1-2
- mv cmark to commonmark - mv cmark to commonmark