init package version 1.3.1 of mkdoc

This commit is contained in:
luolu12 2023-06-15 10:22:00 +08:00
parent 4b33b7d767
commit ad37c4f0d9
3 changed files with 85 additions and 0 deletions

25
markdown-version.patch Normal file
View File

@ -0,0 +1,25 @@
From 16eec781d87b4c1d941290405cc7203624697d0c Mon Sep 17 00:00:00 2001
From: luolu12 <luluoc@isoftstone.com>
Date: Thu, 15 Jun 2023 14:45:43 +0800
Subject: [PATCH] patch add
---
setup.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/setup.py b/setup.py
index 1115ce0..94bd15a 100755
--- a/setup.py
+++ b/setup.py
@@ -64,7 +64,7 @@ setup(
install_requires=[
'click>=3.3',
'Jinja2>=2.10.2',
- 'Markdown>=3.2.1,<3.4',
+ 'Markdown>=3.2.1,<=3.4.1',
'PyYAML>=3.10',
'watchdog>=2.0',
'ghp-import>=1.0',
--
2.33.0

BIN
mkdocs-1.3.1.tar.gz Normal file

Binary file not shown.

60
python-mkdocs.spec Normal file
View File

@ -0,0 +1,60 @@
# Created by pyp2rpm-3.3.9
%global pypi_name mkdocs
%global pypi_version 1.3.1
Name: python-%{pypi_name}
Version: %{pypi_version}
Release: 1
Summary: Project documentation with Markdown
License: BSD
URL: https://www.mkdocs.org
Source0: https://files.pythonhosted.org/packages/52/16/2c2de8fac0437fb81d8f31558111fddcedf56eb56d90dea6ec922fcd588a/mkdocs-1.3.1.tar.gz
BuildArch: noarch
Patch001:markdown-version.patch
BuildRequires: python3-devel
BuildRequires: python3dist(setuptools)
%description
MkDocs is a fast and simple way to create a website from source files written
in Markdown, and configured with a YAML configuration file, the documentation
can be hosted anywhere, even in free hosting services like Read the Docs and
GitHub Pages.
MkDocs is Python powered, this package is built with Python 3.
%package -n python3-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name}
MkDocs is a fast and simple way to create a website from source files written
in Markdown, and configured with a YAML configuration file, the documentation
can be hosted anywhere, even in free hosting services like Read the Docs and
GitHub Pages.
MkDocs is Python powered, this package is built with Python 3.
%patch001 -p1
%prep
%autosetup -n %{pypi_name}-%{pypi_version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%build
%py3_build
%install
%py3_install
%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md
%{_bindir}/mkdocs
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-*.egg-info
%changelog
* Thu Jun 15 2023 luolu12 <luluoc@isoftstone.com> - 1.3.1-1
- Initial package.