15
0

Accepting request 615033 from home:TheBlackCat:branches:devel:languages:python

- Create separate -doc subpackage to build docs.
- Run tests in -doc subpackage to avoid dependency loop with python-pytest.
- Use license tag

OBS-URL: https://build.opensuse.org/request/show/615033
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-atomicwrites?expand=0&rev=3
This commit is contained in:
Todd R
2018-06-07 18:11:41 +00:00
committed by Git OBS Bridge
parent b95b2752ca
commit c2bde02c93
4 changed files with 149 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-atomicwrites
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 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
@@ -26,12 +26,11 @@ Group: Development/Languages/Python
Url: https://github.com/untitaker/python-atomicwrites
Source: https://files.pythonhosted.org/packages/source/a/atomicwrites/atomicwrites-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
%description
@@ -59,14 +58,10 @@ rm -rf atomicwrites.egg-info
%python_install
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
%check
%{python_expand rm -rf tests/__pycache__
$python -m pytest
}
%files %{python_files}
%defattr(-,root,root,-)
%doc README.rst LICENSE
%doc README.rst
%license LICENSE
%{python_sitelib}/*
%changelog