forked from pool/python-screenplain
- Add fix_entry_point.patch
- We don't need any stinking pytest. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-screenplain?expand=0&rev=6
This commit is contained in:
@@ -32,8 +32,10 @@ URL: http://www.screenplain.com/
|
||||
# Source: https://files.pythonhosted.org/packages/source/s/screenplain/screenplain-%%{version}.tar.gz
|
||||
# Tarball generated from gh#vilcans/screenplain#62
|
||||
Source: screenplain-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM fix_entry_point.patch mcepl@suse.com
|
||||
# entry point lead to incorrect function.
|
||||
Patch0: fix_entry_point.patch
|
||||
BuildRequires: %{python_module pycodestyle}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module reportlab}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
@@ -76,9 +78,9 @@ sed -i '1{/^#!.*env python/d}' screenplain/main.py
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
export PYTEST_ADDOPTS="--doctest-modules"
|
||||
%pytest
|
||||
python3 -mpycodestyle -v --ignore=E402,W504 screenplain tests
|
||||
%pyunittest discover -v -p '*test*.py'
|
||||
%python_exec -mdoctest -v screenplain/*.py
|
||||
%python_exec -mpycodestyle -v screenplain tests
|
||||
|
||||
%post
|
||||
%python_install_alternative screenplain
|
||||
|
Reference in New Issue
Block a user