14
0

Accepting request 643259 from home:benoit_monin:branches:devel:languages:python

- update to version 3.0: major release
- update and adapt the patch for python-3.7
- run the tests via unittest discover
- remove nose from BuildRequires: not used anymore

OBS-URL: https://build.opensuse.org/request/show/643259
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Markdown?expand=0&rev=47
This commit is contained in:
Tomáš Chvátal
2018-10-19 19:47:18 +00:00
committed by Git OBS Bridge
parent e3e6d37042
commit ef891ff219
6 changed files with 53 additions and 19 deletions

View File

@@ -12,23 +12,22 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
Name: python-Markdown
Version: 2.6.11
Version: 3.0
Release: 0
Summary: Python implementation of Markdown
License: BSD-3-Clause
Group: Development/Languages/Python
Url: https://python-markdown.github.io/
Source: https://files.pythonhosted.org/packages/source/M/Markdown/Markdown-%{version}.tar.gz
Patch0: markdown-2.6.11-python37.patch
Patch0: markdown-3.0-python37.patch
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module xml}
BuildRequires: fdupes
@@ -66,7 +65,7 @@ supported by the [Available Extensions][].
%python_clone -a %{buildroot}%{_bindir}/markdown_py
%check
%python_exec run-tests.py
%python_exec -m unittest discover
%post
%python_install_alternative markdown_py