| 
									
										
										
										
											2019-09-09 07:15:10 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | # spec file for package python-mutmut
 | 
					
						
							|  |  |  | #
 | 
					
						
							| 
									
										
										
										
											2020-03-31 06:24:04 +00:00
										 |  |  | # Copyright (c) 2020 SUSE LLC
 | 
					
						
							| 
									
										
										
										
											2019-09-09 07:15:10 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | # All modifications and additions to the file contributed by third parties
 | 
					
						
							|  |  |  | # remain the property of their copyright owners, unless otherwise agreed
 | 
					
						
							|  |  |  | # upon. The license for this file, and modifications and additions to the
 | 
					
						
							|  |  |  | # file, is the same license as for the pristine package itself (unless the
 | 
					
						
							|  |  |  | # license for the pristine package is not an Open Source License, in which
 | 
					
						
							|  |  |  | # case the license is the MIT License). An "Open Source License" is a
 | 
					
						
							|  |  |  | # license that conforms to the Open Source Definition (Version 1.9)
 | 
					
						
							|  |  |  | # published by the Open Source Initiative.
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-10-14 10:31:11 +00:00
										 |  |  | # Please submit bugfixes or comments via https://bugs.opensuse.org/
 | 
					
						
							|  |  |  | #
 | 
					
						
							| 
									
										
										
										
											2019-09-09 07:15:10 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 | 
					
						
							|  |  |  | # tri.declarative is Python 3 only
 | 
					
						
							|  |  |  | %define skip_python2 1
 | 
					
						
							|  |  |  | Name:           python-mutmut
 | 
					
						
							| 
									
										
										
										
											2020-03-31 06:24:04 +00:00
										 |  |  | Version:        2.0.0
 | 
					
						
							| 
									
										
										
										
											2019-09-09 07:15:10 +00:00
										 |  |  | Release:        0
 | 
					
						
							|  |  |  | Summary:        Python mutation testing
 | 
					
						
							| 
									
										
										
										
											2019-10-14 10:31:11 +00:00
										 |  |  | License:        BSD-3-Clause
 | 
					
						
							| 
									
										
										
										
											2019-10-15 08:19:02 +00:00
										 |  |  | URL:            https://github.com/boxed/mutmut
 | 
					
						
							|  |  |  | Source:         https://github.com/boxed/mutmut/archive/%{version}.tar.gz
 | 
					
						
							|  |  |  | Patch1:         pr_134.patch
 | 
					
						
							| 
									
										
										
										
											2019-09-09 07:15:10 +00:00
										 |  |  | BuildRequires:  %{python_module setuptools}
 | 
					
						
							| 
									
										
										
										
											2019-10-15 08:19:02 +00:00
										 |  |  | BuildRequires:  fdupes
 | 
					
						
							| 
									
										
										
										
											2019-10-14 10:31:11 +00:00
										 |  |  | BuildRequires:  python-rpm-macros
 | 
					
						
							| 
									
										
										
										
											2019-10-15 08:19:02 +00:00
										 |  |  | Requires:       python-click
 | 
					
						
							|  |  |  | Requires:       python-glob2
 | 
					
						
							| 
									
										
										
										
											2020-03-31 06:24:04 +00:00
										 |  |  | Requires:       python-hammett
 | 
					
						
							| 
									
										
										
										
											2019-10-15 08:19:02 +00:00
										 |  |  | Requires:       python-junit-xml >= 1.8
 | 
					
						
							|  |  |  | Requires:       python-parso
 | 
					
						
							|  |  |  | Requires:       python-pony
 | 
					
						
							| 
									
										
										
										
											2020-03-31 06:24:04 +00:00
										 |  |  | Requires:       python-setuptools
 | 
					
						
							| 
									
										
										
										
											2019-10-15 08:19:02 +00:00
										 |  |  | Requires:       python-tri.declarative >= 3.0.0
 | 
					
						
							|  |  |  | Recommends:     python-coverage
 | 
					
						
							|  |  |  | Recommends:     python-pytest
 | 
					
						
							|  |  |  | Suggests:       python-pytest-cov
 | 
					
						
							|  |  |  | BuildArch:      noarch
 | 
					
						
							| 
									
										
										
										
											2019-09-09 07:15:10 +00:00
										 |  |  | # SECTION test requirements
 | 
					
						
							|  |  |  | BuildRequires:  %{python_module click}
 | 
					
						
							| 
									
										
										
										
											2019-10-14 10:31:11 +00:00
										 |  |  | BuildRequires:  %{python_module coverage}
 | 
					
						
							| 
									
										
										
										
											2019-09-09 07:15:10 +00:00
										 |  |  | BuildRequires:  %{python_module glob2}
 | 
					
						
							| 
									
										
										
										
											2020-03-31 06:24:04 +00:00
										 |  |  | BuildRequires:  %{python_module hammett}
 | 
					
						
							| 
									
										
										
										
											2019-09-09 07:15:10 +00:00
										 |  |  | BuildRequires:  %{python_module junit-xml >= 1.8}
 | 
					
						
							| 
									
										
										
										
											2019-10-14 10:31:11 +00:00
										 |  |  | BuildRequires:  %{python_module mock >= 2.0.0}
 | 
					
						
							| 
									
										
										
										
											2019-09-09 07:15:10 +00:00
										 |  |  | BuildRequires:  %{python_module parso}
 | 
					
						
							|  |  |  | BuildRequires:  %{python_module pony}
 | 
					
						
							|  |  |  | BuildRequires:  %{python_module pytest >= 2.8.7}
 | 
					
						
							|  |  |  | BuildRequires:  %{python_module pytest-cov}
 | 
					
						
							| 
									
										
										
										
											2019-10-14 10:31:11 +00:00
										 |  |  | BuildRequires:  %{python_module tri.declarative >= 3.0.0}
 | 
					
						
							| 
									
										
										
										
											2019-09-09 07:15:10 +00:00
										 |  |  | BuildRequires:  %{python_module whatthepatch >= 0.0.5}
 | 
					
						
							|  |  |  | BuildRequires:  ed
 | 
					
						
							| 
									
										
										
										
											2019-10-14 10:31:11 +00:00
										 |  |  | BuildRequires:  patch
 | 
					
						
							| 
									
										
										
										
											2019-09-09 07:15:10 +00:00
										 |  |  | # /SECTION
 | 
					
						
							|  |  |  | %python_subpackages
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %description
 | 
					
						
							|  |  |  | Python mutation testing.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %prep
 | 
					
						
							|  |  |  | %setup -q -n mutmut-%{version}
 | 
					
						
							|  |  |  | %autopatch -p1
 | 
					
						
							|  |  |  | sed -i 's/==/>=/' *requirements.txt
 | 
					
						
							|  |  |  | # Remove maximum pins any anything that follows
 | 
					
						
							|  |  |  | sed -Ei 's/,?<=?.*$//' test_requirements.txt
 | 
					
						
							|  |  |  | sed -i '1{/^#!/d}' mutmut/__main__.py
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %build
 | 
					
						
							|  |  |  | %python_build
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %install
 | 
					
						
							|  |  |  | %python_install
 | 
					
						
							|  |  |  | %python_expand %fdupes %{buildroot}%{$python_sitelib}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %check
 | 
					
						
							| 
									
										
										
										
											2020-03-31 06:24:04 +00:00
										 |  |  | %pytest
 | 
					
						
							| 
									
										
										
										
											2019-09-09 07:15:10 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %files %{python_files}
 | 
					
						
							|  |  |  | %doc README.rst
 | 
					
						
							|  |  |  | %license LICENSE
 | 
					
						
							|  |  |  | %python3_only %{_bindir}/mutmut
 | 
					
						
							|  |  |  | %{python_sitelib}/*
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %changelog
 |