Compare commits

..

17 Commits

Author SHA256 Message Date
Ana Guerrero
f1eaee06b9 Accepting request 1225919 from devel:languages:python
- Remove unneeded {Build,}Requires on hammett.
- We only need rich for the testsuite.
- We need toml for Python 3.10 only.

OBS-URL: https://build.opensuse.org/request/show/1225919
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mutmut?expand=0&rev=8
2024-11-24 10:04:24 +00:00
Ana Guerrero
ac00fb8cb7 Accepting request 1225562 from devel:languages:python
- 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.

OBS-URL: https://build.opensuse.org/request/show/1225562
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mutmut?expand=0&rev=7
2024-11-21 14:19:23 +00:00
fbf8a8c928 - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mutmut?expand=0&rev=15
2024-11-21 10:12:29 +00:00
Ana Guerrero
73df113068 Accepting request 1157923 from devel:languages:python
- skip building for 3.12

- skip python 3.6 (hammett requires python 3.7 or later)

OBS-URL: https://build.opensuse.org/request/show/1157923
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mutmut?expand=0&rev=6
2024-03-14 16:45:34 +00:00
84fc5f12b4 - skip building for 3.12
- skip python 3.6 (hammett requires python 3.7 or later)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mutmut?expand=0&rev=13
2024-03-14 10:03:01 +00:00
Dominique Leuenberger
2bbd0939cf Accepting request 964657 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/964657
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mutmut?expand=0&rev=5
2022-03-24 21:58:29 +00:00
77314bbb97 Accepting request 964628 from home:pgajdos:python
- python-mock is not required for build

OBS-URL: https://build.opensuse.org/request/show/964628
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mutmut?expand=0&rev=11
2022-03-24 12:33:15 +00:00
Dominique Leuenberger
c4e1345a9e Accepting request 868660 from devel:languages:python
- skip python 3.6 (hammett requires python 3.7 or later)

OBS-URL: https://build.opensuse.org/request/show/868660
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mutmut?expand=0&rev=4
2021-02-08 10:47:16 +00:00
5f7780e5ff - skip python 3.6 (hammett requires python 3.7 or later)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mutmut?expand=0&rev=9
2021-02-02 13:29:58 +00:00
Yuchen Lin
3382d57b1a Accepting request 808669 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/808669
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mutmut?expand=0&rev=3
2020-05-26 15:22:40 +00:00
Tomáš Chvátal
94a7318edc Accepting request 808652 from home:pgajdos:python
submit

OBS-URL: https://build.opensuse.org/request/show/808652
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mutmut?expand=0&rev=7
2020-05-25 09:21:10 +00:00
Dominique Leuenberger
ab66da826e Accepting request 789963 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/789963
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mutmut?expand=0&rev=2
2020-03-31 15:15:27 +00:00
Tomáš Chvátal
e155afa4c7 Accepting request 789811 from home:pgajdos:python
- version update to 2.0.0
  * New execution model. This should result in some modest speed improvements when using pytest.
  * A special execution mode when using the hammett test runner. This is MUCH MUCH faster. Please try it!
  * Dropped support for python < 3.7. If you need to use mutmut on older versions of python, please use mutmut 1.9.0
  * Some other speed improvements.
  * `mutmut run 7` will always rerun the mutant `7`
  * `mutmut show <filename>` to show all mutants for that file
  * `mutmut run <filename>` to run mutation testing on that file
  * New experimental plugin system: create a file `mutmut_config.py` in your base directory. In it you can have an `init()` function, and a `pre_mutation(context)` function. You can set `context.skip = True` to skip a mutant, and you can modify `context.config.runner`, this is useful to limit the tests. Check out the `Context` class for what information you get.
  * Better display of `mutmut show`/`mutmut result`
  * Fixed a spurious mutant on assigning a local variable with type annotations
  * mutmut now will rerun tests without mutation when tests have changed. This avoids a common pitfall of introducing a failing test and then having all mutants killed incorrectly
  * Added `mutmut html` report generation.
  * Bugfix for multiple assignment. Mutmut used to not handle `foo = bar = baz` correctly (Thanks Roxane Bellot!)
  * Bugfix for incorrect mutation of "in" operator (Thanks Roxane Bellot!)
  * Fixed bug where a mutant survived in the internal AST too long. This could cause mutmut to apply more than one mutant at a time.
  * Vastly improved startup performance when resuming a mutation run.
  * Added new experimental feature for advanced config at runtime of mutations
- modified patches
  % pr_134.patch (extended)
- deleted patches
  - no-direct-python-call.patch (merged to pr_134.patch)

OBS-URL: https://build.opensuse.org/request/show/789811
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mutmut?expand=0&rev=5
2020-03-31 06:24:04 +00:00
Dominique Leuenberger
d8d95ff412 Accepting request 738549 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/738549
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mutmut?expand=0&rev=1
2019-10-16 07:17:58 +00:00
Tomáš Chvátal
bed5e7ccf2 - Update to 1.6.0:
* Various minor fixes around in the package
- Remove merged patches pr_148.patch merged_4405bafe.patch
- Rebase patch pr_134.patch
- Add patch no-direct-python-call.patch to avoid direct calls
  to python binary

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mutmut?expand=0&rev=3
2019-10-15 08:19:02 +00:00
Tomáš Chvátal
3fd620780d OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mutmut?expand=0&rev=2 2019-10-14 10:31:11 +00:00
Tomáš Chvátal
d2149eee40 Accepting request 728151 from home:jayvdb:py-tri
Independent testing tool, with pytest plugin

OBS-URL: https://build.opensuse.org/request/show/728151
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mutmut?expand=0&rev=1
2019-09-09 07:15:10 +00:00
2 changed files with 0 additions and 41 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9302546f4f1f64544d3f4839712a8ea4c82ed557ac6138d49d8ba328e12c0fb2
size 46395

View File

@ -1,38 +0,0 @@
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)