14
0

Accepting request 1132431 from home:eroca:python

Submit python-mistletoe, a Markdown parser in pure Python, designed to be fast, spec-compliant and fully customizable.

OBS-URL: https://build.opensuse.org/request/show/1132431
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mistletoe?expand=0&rev=1
This commit is contained in:
2023-12-11 09:18:30 +00:00
committed by Git OBS Bridge
commit f6bc1c5a6b
5 changed files with 113 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
mistletoe-1.2.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6f0fb038842edef82ab62d4df73bc55e55631779385a49820f2882bbbdc93aad
size 120752

15
python-mistletoe.changes Normal file
View File

@@ -0,0 +1,15 @@
-------------------------------------------------------------------
Sun Dec 10 16:43:59 UTC 2023 - Elisei Roca <eroca@mailbox.org>
- Update to version 1.2.1:
https://github.com/miyuchina/mistletoe/compare/v1.0.1...v1.2.1
-------------------------------------------------------------------
Sun Apr 30 08:43:29 UTC 2023 - Xu Zhao <i@xuzhao.net>
- Upgrade to 1.0.1.
-------------------------------------------------------------------
Wed Jun 8 04:42:27 UTC 2022 - Xu Zhao <i@xuzhao.net>
- Initial version. v0.8.2.

71
python-mistletoe.spec Normal file
View File

@@ -0,0 +1,71 @@
#
# spec file for package python-mistletoe
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: python-mistletoe
Version: 1.2.1
Release: 0
Summary: A Markdown parser in pure Python
License: MIT
URL: https://github.com/miyuchina/mistletoe
Source: https://files.pythonhosted.org/packages/source/m/mistletoe/mistletoe-%{version}.tar.gz
BuildRequires: %{python_module Pygments}
BuildRequires: %{python_module parameterized}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Recommends: python-Pygments
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
%description
A Markdown parser in pure Python, designed to be fast,
spec-compliant and fully customizable.
%prep
%autosetup -p1 -n mistletoe-%{version}
sed -i 's,/usr/bin/env python,/usr/bin/python3,' mistletoe/contrib/md2jira.py
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/mistletoe
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%post
%python_install_alternative mistletoe
%postun
%python_uninstall_alternative mistletoe
%files %{python_files}
%doc README.md
%license LICENSE
%python_alternative %{_bindir}/mistletoe
%{python_sitelib}/mistletoe
%{python_sitelib}/mistletoe-%{version}.dist-info
%changelog