diff --git a/hammett-0.5.0.tar.gz b/hammett-0.5.0.tar.gz deleted file mode 100644 index ccd54d4..0000000 --- a/hammett-0.5.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:95817dafcd88ceae43f21cd8186f1eea1f0d6ee8902d4b6f715908e41daddb60 -size 11562 diff --git a/hammett-0.9.4-gh.tar.gz b/hammett-0.9.4-gh.tar.gz new file mode 100644 index 0000000..324b54b --- /dev/null +++ b/hammett-0.9.4-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:724a160c9c18aeca6bc9274e53de56bb9466144aa37653a448e40826b933058f +size 27615 diff --git a/python-hammett.changes b/python-hammett.changes index 609090f..5c4b175 100644 --- a/python-hammett.changes +++ b/python-hammett.changes @@ -1,3 +1,75 @@ +------------------------------------------------------------------- +Fri Feb 16 17:55:11 UTC 2024 - Ben Greiner + +- Update to 0.9.4 + * Python 3.11 compatibility + * Hooks for using Hammett as an API (for mutmut3) + * Explicit fixture names didn't work + * Support skipif + * warns() without arguments fixed + * conftest.py handling massively improved +- Release 0.9.3 + * Some fixes for pytest compatibility + * The bare minimum to work with pytest-snapshot (but not be able + to collect snapshots) + * Random fixes. Super basic support for pytest_sessionstart + * Support for specifying config in setup.cfg file. This is useful + for e.g django: config=nomigrations + * Experimental multiprocessing tests + * A little fix for not breaking when test plugins think we have + xdist + * Fixes for running in no-cache mode, and some improvements for + making mutation testing faster down the line +- Release 0.9.2 + * Fixed some really bad bugs relating to fixtures +- Release 0.9.1 + * Fixed plugins dynamically adding implicit fixtures. This fixes + pytest-django + * Implemented support for pytest.warns/hammett.warns + * Make cache default off, since it's still rather flaky +- Release 0.9.0 + * Added support for caplog + * Don't try to collect hidden files +- Release 0.8.0 + * Added support for the capsys feature from pytest + * Fixed verbose output + * Improved test feedback + * Support for class based tests (like unittest) + * Also search for *_test.py, since it seems pytest tries these + * Compatibility with a funny little pytest feature where you can + pass a list and not a list of a list to parametrize if you have + just one argument + * Pixed python 3.6 support + * Sort local variables in error output +- Release 0.7.1 + * Fixed pretty bad cache invalidation bug. You might need to + delete your .hammett-db file. + * Attempt to get windows support +- Release 0.7.0 + * Added hammett specific tests files system. This means if you + have a file my_project/foo.py hammett will look for + my_project/foo__tests.py and testt/foo__tests.py for tests + specific for that module. + * If you have module specific tests (see previous point), you can + now run tests for a module with hammett my_project.foo + * Implemented a results cache. This means that if you haven't + changed your source or tests hammett knows not to rerun the + tests. If you have module specific tests it will run only the + relevant tests for that module when you change the module. + * Added hammett command line. Beware of using this after doing + setup.py develop as setuptools then adds a huge overhead. + * Support python 3.6 + * Optimizations +- Release 0.6.0 + * Added --durations feature + * Improvements to skipping tests + * Run tests in lexiographic order + * Better assertion analysis + * You can now pass hammett a directory on the command line and + it'll do the right thing + * Support names parameter of mark.parametrize() being a + list/tuple + ------------------------------------------------------------------- Wed Apr 8 14:39:57 UTC 2020 - Marketa Calabkova diff --git a/python-hammett.spec b/python-hammett.spec index 964b30e..41f9cc5 100644 --- a/python-hammett.spec +++ b/python-hammett.spec @@ -1,7 +1,7 @@ # # spec file for package python-hammett # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,49 +16,60 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 Name: python-hammett -Version: 0.5.0 +Version: 0.9.4 Release: 0 -Summary: hammett is a fast python test runner +Summary: Fast python test runner License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/boxed/hammett -Source0: https://files.pythonhosted.org/packages/source/h/hammett/hammett-%{version}.tar.gz -Source1: tests.tar.bz2 +Source0: https://github.com/boxed/hammett/archive/refs/tags/%{version}.tar.gz#/hammett-%{version}-gh.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-astunparse -Requires: python-colorama +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module astunparse} -BuildRequires: %{python_module colorama} -BuildRequires: %{python_module pytest} # /SECTION %python_subpackages %description -hammett is a fast python test runner +Hammett is a fast python test runner that aims to be compatible with the parts +of pytest most people use (unless that conflicts with the goal of being fast). %prep -%setup -q -n hammett-%{version} -a1 +%autosetup -p1 -n hammett-%{version} +echo "# Empty module" >> hammett/mark.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/hammett %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pytest +# the rest doesn't work: https://github.com/boxed/hammett/issues/12 +testfiles="tests/test_di.py tests/test_misc.py" +%pyunittest $testfiles -v + +%post +%python_install_alternative hammett + +%postun +%python_uninstall_alternative hammett %files %{python_files} %doc AUTHORS.rst README.rst %license LICENSE -%{python_sitelib}/* +%python_alternative %{_bindir}/hammett +%{python_sitelib}/hammett +%{python_sitelib}/hammett-%{version}.dist-info %changelog diff --git a/tests.tar.bz2 b/tests.tar.bz2 deleted file mode 100644 index 7a3c260..0000000 --- a/tests.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:436cfb646e778c3fb322dcdded0f48c895b5216f2b9e4e5b296572c8e85d8f24 -size 914