!1 Init package with version 0.3.5
From: @desert-sailor Reviewed-by: @yangzhao_kl Signed-off-by: @yangzhao_kl
This commit is contained in:
commit
d220ee92b1
25
0001-removes-cap-on-mdit-py-plugins-dependency.patch
Normal file
25
0001-removes-cap-on-mdit-py-plugins-dependency.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From 87e5d0d46f90ebfb8be068a943b1645503f13248 Mon Sep 17 00:00:00 2001
|
||||||
|
From: desert-sailor <dxwangk@isoftstone.com>
|
||||||
|
Date: Thu, 9 Nov 2023 09:58:35 +0800
|
||||||
|
Subject: [PATCH] removes cap on mdit-py-plugins dependency
|
||||||
|
|
||||||
|
---
|
||||||
|
pyproject.toml | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/pyproject.toml b/pyproject.toml
|
||||||
|
index 825c2f8..fceb3a6 100644
|
||||||
|
--- a/pyproject.toml
|
||||||
|
+++ b/pyproject.toml
|
||||||
|
@@ -27,7 +27,7 @@ keywords = ["mdformat", "markdown", "formatter", "gfm"]
|
||||||
|
python = "^3.7"
|
||||||
|
mdformat = ">=0.7.5,<0.8.0"
|
||||||
|
markdown-it-py = { version = "*", extras = [ "linkify" ] } # Let `mdformat` choose version boundaries for `markdown-it-py`
|
||||||
|
-mdit-py-plugins = ">=0.2.0,<0.4.0"
|
||||||
|
+mdit-py-plugins = ">=0.2.0"
|
||||||
|
mdformat-tables = ">=0.4.0"
|
||||||
|
|
||||||
|
[tool.poetry.dev-dependencies]
|
||||||
|
--
|
||||||
|
2.41.0
|
||||||
|
|
||||||
BIN
mdformat-gfm-0.3.5.tar.gz
Normal file
BIN
mdformat-gfm-0.3.5.tar.gz
Normal file
Binary file not shown.
65
python-mdformat-gfm.spec
Normal file
65
python-mdformat-gfm.spec
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
%global _empty_manifest_terminate_build 0
|
||||||
|
Name: python-mdformat-gfm
|
||||||
|
Version: 0.3.5
|
||||||
|
Release: 1
|
||||||
|
Summary: Mdformat plugin for GitHub Flavored Markdown compatibility.
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/hukkinj1/mdformat-gfm
|
||||||
|
Source0: https://files.pythonhosted.org/packages/5e/31/1ac2f7f7a16ef33b4de03c9296afe18659624d67886da802a871c85eef31/mdformat-gfm-0.3.5.tar.gz
|
||||||
|
Patch1: 0001-removes-cap-on-mdit-py-plugins-dependency.patch
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3-pbr
|
||||||
|
BuildRequires: python3-pip
|
||||||
|
BuildRequires: python3-wheel
|
||||||
|
BuildRequires: python3-hatchling
|
||||||
|
BuildRequires: python3-poetry-core
|
||||||
|
|
||||||
|
%description
|
||||||
|
Mdformat plugin for GitHub Flavored Markdown compatibility.
|
||||||
|
|
||||||
|
%package -n python3-mdformat-gfm
|
||||||
|
Summary: Mdformat plugin for GitHub Flavored Markdown compatibility.
|
||||||
|
Provides: python-mdformat-gfm
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3-hatchling
|
||||||
|
%description -n python3-mdformat-gfm
|
||||||
|
Mdformat plugin for GitHub Flavored Markdown compatibility.
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary: Development documents and examples for mdformat-gfm
|
||||||
|
Provides: python3-mdformat-gfm-doc
|
||||||
|
|
||||||
|
%description help
|
||||||
|
Development documents and examples for mdformat-gfm.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1 -n mdformat-gfm-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
%pyproject_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%pyproject_install
|
||||||
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||||
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
||||||
|
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
||||||
|
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
||||||
|
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
||||||
|
|
||||||
|
%files -n python3-mdformat-gfm
|
||||||
|
%doc README.md
|
||||||
|
%license LICENSE
|
||||||
|
%{python3_sitelib}/mdformat_gfm
|
||||||
|
%{python3_sitelib}/mdformat_gfm*.dist-info/
|
||||||
|
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%{_docdir}/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Nov 7 2023 Dongxing Wang <dxwangk@isoftstone.com> - 0.3.5-1
|
||||||
|
- Init package.
|
||||||
Loading…
x
Reference in New Issue
Block a user