- Drop the doc subpackage, no need for it really
- Make sure the tests are realy executed OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-py?expand=0&rev=7
This commit is contained in:
committed by
Git OBS Bridge
parent
439acb5f51
commit
0ff5f6a7d8
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-py
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,6 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
%define oldpython python
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-py
|
||||
Version: 1.7.0
|
||||
@@ -25,9 +26,12 @@ License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/pytest-dev/py
|
||||
Source: https://files.pythonhosted.org/packages/source/p/py/py-%{version}.tar.gz
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools_scm}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Obsoletes: %{oldpython}-py-docs
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -44,6 +48,7 @@ the following tools and modules:
|
||||
%prep
|
||||
%setup -q -n py-%{version}
|
||||
rm -rf py.egg-info
|
||||
rm -f tox.ini
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -52,6 +57,9 @@ rm -rf py.egg-info
|
||||
%python_install
|
||||
%python_exec %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m pytest
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
|
||||
Reference in New Issue
Block a user