14
0

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

- update to version 4.5.2
- drop removal of macos hidden temporary files: fixed upstream
- get the source from github instead of pypi for the tests
- add the build requirements for the tests
- run the tests

OBS-URL: https://build.opensuse.org/request/show/850002
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pelican?expand=0&rev=28
This commit is contained in:
2020-11-23 09:52:55 +00:00
committed by Git OBS Bridge
parent ff445c55af
commit dd8ecdea7e
4 changed files with 34 additions and 7 deletions

View File

@@ -19,23 +19,31 @@
%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pelican
Version: 4.5.1
Version: 4.5.2
Release: 0
Summary: A tool to generate a static blog from reStructuredText or Markdown input files
License: AGPL-3.0-only
Group: Development/Languages/Python
URL: https://getpelican.com/
Source: https://files.pythonhosted.org/packages/source/p/pelican/pelican-%{version}.tar.gz
# Use the source instead of the pypi release for the tests
Source: https://github.com/getpelican/pelican/archive/%{version}.tar.gz
BuildRequires: %{python_module Jinja2 >= 2.11}
BuildRequires: %{python_module Markdown >= 3.1.1}
BuildRequires: %{python_module Pygments}
BuildRequires: %{python_module Unidecode}
BuildRequires: %{python_module beautifulsoup4}
BuildRequires: %{python_module blinker}
BuildRequires: %{python_module docutils >= 0.15}
BuildRequires: %{python_module feedgenerator >= 1.9}
BuildRequires: %{python_module lxml}
BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-dateutil}
BuildRequires: %{python_module pytz >= 0a}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module typogrify}
BuildRequires: fdupes
BuildRequires: git-core
BuildRequires: python-rpm-macros
Requires: python-Jinja2 >= 2.11
Requires: python-Pygments
@@ -86,8 +94,6 @@ sed -i '1d' \
pelican/tools/pelican_quickstart.py
# remove executable bit, this is not a script
chmod -x pelican/tools/templates/publishconf.py.jinja2
# remove macos hidden temporary files
find . .DS_Store -print -delete
%build
%python_build
@@ -100,6 +106,10 @@ for p in pelican pelican-import pelican-plugins pelican-quickstart pelican-theme
%python_clone -a %{buildroot}%{_bindir}/$p
done
%check
export LC_ALL=C.utf8
%pytest
%post
%python_install_alternative pelican pelican-import pelican-plugins pelican-quickstart pelican-themes