Compare commits
No commits in common. "factory" and "factory" have entirely different histories.
3
2.0.0.tar.gz
Normal file
3
2.0.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:9302546f4f1f64544d3f4839712a8ea4c82ed557ac6138d49d8ba328e12c0fb2
|
||||||
|
size 46395
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:d4297aa53cd223e6b29afd3ea9a26762497d62d52afc6a41e3c8cfba1e575e17
|
|
||||||
size 570921
|
|
38
pr_134.patch
Normal file
38
pr_134.patch
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
From bd3866316949f8ba7162e0292be0776d6f51cf50 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Maxime Lapointe <hunter_spawn@hotmail.com>
|
||||||
|
Date: Tue, 23 Jul 2019 08:55:15 -0400
|
||||||
|
Subject: [PATCH] Use sys.executable as default python executable
|
||||||
|
|
||||||
|
It's more likely to be the correct Python executable in case where someone specified the executable when running mutmut.
|
||||||
|
---
|
||||||
|
mutmut/__main__.py | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
Index: mutmut-2.0.0/mutmut/__main__.py
|
||||||
|
===================================================================
|
||||||
|
--- mutmut-2.0.0.orig/mutmut/__main__.py 2020-03-26 09:45:09.000000000 +0100
|
||||||
|
+++ mutmut-2.0.0/mutmut/__main__.py 2020-03-30 16:01:03.781625630 +0200
|
||||||
|
@@ -101,7 +101,7 @@ null_out = open(os.devnull, 'w')
|
||||||
|
@config_from_setup_cfg(
|
||||||
|
dict_synonyms='',
|
||||||
|
paths_to_exclude='',
|
||||||
|
- runner='python -m pytest -x --assert=plain',
|
||||||
|
+ runner='"' + sys.executable + '" -m pytest -x',
|
||||||
|
tests_dir='tests/:test/',
|
||||||
|
pre_mutation=None,
|
||||||
|
post_mutation=None,
|
||||||
|
Index: mutmut-2.0.0/tests/test_main.py
|
||||||
|
===================================================================
|
||||||
|
--- mutmut-2.0.0.orig/tests/test_main.py 2020-03-26 09:45:09.000000000 +0100
|
||||||
|
+++ mutmut-2.0.0/tests/test_main.py 2020-03-30 16:03:15.066124033 +0200
|
||||||
|
@@ -94,8 +94,8 @@ def create_filesystem(tmpdir, file_to_mu
|
||||||
|
with open(join(test_dir, 'setup.cfg'), 'w') as f:
|
||||||
|
f.write("""
|
||||||
|
[mutmut]
|
||||||
|
-runner=python -m hammett -x
|
||||||
|
-""")
|
||||||
|
+runner={} -m hammett -x
|
||||||
|
+""".format(sys.executable))
|
||||||
|
|
||||||
|
with open(join(test_dir, "foo.py"), 'w') as f:
|
||||||
|
f.write(file_to_mutate_contents)
|
@ -1,50 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Sat Nov 23 01:17:23 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
|
||||||
|
|
||||||
- Remove unneeded {Build,}Requires on hammett.
|
|
||||||
- We only need rich for the testsuite.
|
|
||||||
- We need toml for Python 3.10 only.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Thu Nov 21 10:11:34 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
|
||||||
|
|
||||||
- update to 3.2.2:
|
|
||||||
* Fixed crash when running mutmut results
|
|
||||||
* Read paths_to_mutate from config file
|
|
||||||
* Mutate break to return to avoid timeouts
|
|
||||||
* Added debug mode. Enable with debug=True in setup.cfg under
|
|
||||||
[mutmut]
|
|
||||||
* Fixed new test detection. The old code incorrectly detected
|
|
||||||
new tests when there were none, creating a much slower
|
|
||||||
interaction loop for fixing mutants.
|
|
||||||
* And many more fixes
|
|
||||||
* Timeouts for mutants implemented.
|
|
||||||
* Browser: syntax highlighting for diff view
|
|
||||||
* More fixes for generators.
|
|
||||||
* Fix for src-style layout of projects.
|
|
||||||
* Fixed bug where mutmut would recollect all tests on every
|
|
||||||
run, slowing down startup.
|
|
||||||
* Correctly handle mutation for generator functions (yield).
|
|
||||||
* Fixed so that from __future__ lines are always first.
|
|
||||||
* If no stats are collected exit directly, as that is a
|
|
||||||
breaking error for mutation testing.
|
|
||||||
* Changed name mangling to make mutants less likely to trigger
|
|
||||||
name-based python magic, like in pytest where functions named
|
|
||||||
test_* have special meaning.
|
|
||||||
* Another attempt to get the pypi package to work
|
|
||||||
* Another attempt to get the pypi package to work
|
|
||||||
* Fixed missing requirement in install package
|
|
||||||
* Fixed missing file from the install package
|
|
||||||
* Fixed bad entrypoint definition
|
|
||||||
* Ignore files that can't be parsed by parso
|
|
||||||
* Missed a file in distribution, so browse command was broken.
|
|
||||||
* Execution model switched to mutation schemata, which enabled
|
|
||||||
parallell execution.
|
|
||||||
* New terminal UI
|
|
||||||
* Pytest only, which enabled better integration, cutting
|
|
||||||
execution time significantly.
|
|
||||||
- drop pr_134.patch (upstream)
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Mar 14 10:02:38 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
Thu Mar 14 10:02:38 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -16,26 +16,32 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
# tri.declarative is Python 3 only
|
||||||
|
%define skip_python2 1
|
||||||
|
# hammett requires python 3.7 or later
|
||||||
|
%define skip_python36 1
|
||||||
|
# pony not available for 3.12
|
||||||
|
%global skip_python312 1
|
||||||
Name: python-mutmut
|
Name: python-mutmut
|
||||||
Version: 3.2.2
|
Version: 2.0.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python mutation testing
|
Summary: Python mutation testing
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
URL: https://github.com/boxed/mutmut
|
URL: https://github.com/boxed/mutmut
|
||||||
Source: https://github.com/boxed/mutmut/archive/%{version}.tar.gz
|
Source: https://github.com/boxed/mutmut/archive/%{version}.tar.gz
|
||||||
BuildRequires: %{python_module pip}
|
Patch1: pr_134.patch
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module wheel}
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-click
|
Requires: python-click
|
||||||
|
Requires: python-glob2
|
||||||
|
Requires: python-hammett
|
||||||
Requires: python-junit-xml >= 1.8
|
Requires: python-junit-xml >= 1.8
|
||||||
Requires: python-parso
|
Requires: python-parso
|
||||||
Requires: python-setproctitle
|
Requires: python-pony
|
||||||
%if 0%{?python_version_nodots} < 311
|
Requires: python-setuptools
|
||||||
Requires: python-toml
|
Requires: python-tri.declarative >= 3.0.0
|
||||||
%endif
|
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
Recommends: python-coverage
|
Recommends: python-coverage
|
||||||
@ -45,12 +51,14 @@ BuildArch: noarch
|
|||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module click}
|
BuildRequires: %{python_module click}
|
||||||
BuildRequires: %{python_module coverage}
|
BuildRequires: %{python_module coverage}
|
||||||
|
BuildRequires: %{python_module glob2}
|
||||||
|
BuildRequires: %{python_module hammett}
|
||||||
BuildRequires: %{python_module junit-xml >= 1.8}
|
BuildRequires: %{python_module junit-xml >= 1.8}
|
||||||
BuildRequires: %{python_module parso}
|
BuildRequires: %{python_module parso}
|
||||||
|
BuildRequires: %{python_module pony}
|
||||||
BuildRequires: %{python_module pytest >= 2.8.7}
|
BuildRequires: %{python_module pytest >= 2.8.7}
|
||||||
BuildRequires: %{python_module pytest-cov}
|
BuildRequires: %{python_module pytest-cov}
|
||||||
BuildRequires: %{python_module rich}
|
BuildRequires: %{python_module tri.declarative >= 3.0.0}
|
||||||
BuildRequires: %{python_module setproctitle}
|
|
||||||
BuildRequires: %{python_module whatthepatch >= 0.0.5}
|
BuildRequires: %{python_module whatthepatch >= 0.0.5}
|
||||||
BuildRequires: ed
|
BuildRequires: ed
|
||||||
BuildRequires: patch
|
BuildRequires: patch
|
||||||
@ -69,10 +77,10 @@ sed -Ei 's/,?<=?.*$//' test_requirements.txt
|
|||||||
sed -i '1{/^#!/d}' mutmut/__main__.py
|
sed -i '1{/^#!/d}' mutmut/__main__.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%pyproject_install
|
%python_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/mutmut
|
%python_clone -a %{buildroot}%{_bindir}/mutmut
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
@ -89,7 +97,6 @@ sed -i '1{/^#!/d}' mutmut/__main__.py
|
|||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%python_alternative %{_bindir}/mutmut
|
%python_alternative %{_bindir}/mutmut
|
||||||
%{python_sitelib}/mutmut
|
%{python_sitelib}/*
|
||||||
%{python_sitelib}/mutmut-%{version}.dist-info
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user