!1 init package version 1.2.1 of python-mkdocs-redirects

From: @luolu12 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
This commit is contained in:
openeuler-ci-bot 2023-08-22 09:16:24 +00:00 committed by Gitee
commit 784205444c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 58 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,58 @@
%global pypi_name mkdocs-redirects
Name: python-%{pypi_name}
Version: 1.2.1
Release: 1
Summary: A MkDocs plugin for dynamic page redirects to prevent broken links
License: MIT
URL: https://github.com/datarobot/mkdocs-redirects
Source0: https://files.pythonhosted.org/packages/04/6a/50edd7ad78042b25c379aac7e8fa9cc34c6f55e3d2c03eb28814a9446617/mkdocs-redirects-1.2.1.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-hatchling
%description
mkdocs-redirectsPlugin for [mkdocs]( to create page redirects (e.g. for
moved/renamed pages).Initially developed by [DataRobot]( Installing> **Note:**
This package requires MkDocs version 1.0.4 or higher.Install with pip:bash pip
install mkdocs-redirects To use this plugin, specify your desired redirects in
the plugin's redirect_maps setting in your mkdocs.yml:yaml - redirects:
redirect_maps:...
%package -n python3-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name}
mkdocs-redirectsPlugin for [mkdocs]( to create page redirects (e.g. for
moved/renamed pages).Initially developed by [DataRobot]( Installing> **Note:**
This package requires MkDocs version 1.0.4 or higher.Install with pip:bash pip
install mkdocs-redirects To use this plugin, specify your desired redirects in
the plugin's redirect_maps setting in your mkdocs.yml:yaml - redirects:
redirect_maps:...
%prep
%autosetup -n %{pypi_name}-%{version}
%build
%pyproject_build
%install
%pyproject_install
%check
%{__python3} setup.py test
%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md
%{python3_sitelib}/mkdocs_redirects*
%changelog
* Tue Aug 22 2023 luolu12 <luluoc@isoftstone.com> - 1.2.1-1
- Initial package.