From 689186982cdf0727aeeeedda3bbcb19ce701117a76f12b866d2c01aa53207e97 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 21 Nov 2024 10:06:56 +0000 Subject: [PATCH] - drop optional astunparse dependency for python 3.13 * Implemented support for filtering tests based on markers. Also supports the marker[argument] syntax that goes beyond what pytest OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hammett?expand=0&rev=9 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + hammett-0.10.0-gh.tar.gz | 3 ++ hammett-0.9.4-gh.tar.gz | 3 ++ python-hammett.changes | 99 ++++++++++++++++++++++++++++++++++++++++ python-hammett.spec | 74 ++++++++++++++++++++++++++++++ 6 files changed, 203 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 hammett-0.10.0-gh.tar.gz create mode 100644 hammett-0.9.4-gh.tar.gz create mode 100644 python-hammett.changes create mode 100644 python-hammett.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/hammett-0.10.0-gh.tar.gz b/hammett-0.10.0-gh.tar.gz new file mode 100644 index 0000000..03cf65d --- /dev/null +++ b/hammett-0.10.0-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7856e76827849f9dbebeb77245a75af7f2c73b2910fd0d66d9a226209fd9380f +size 27799 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 new file mode 100644 index 0000000..9555c95 --- /dev/null +++ b/python-hammett.changes @@ -0,0 +1,99 @@ +------------------------------------------------------------------- +Thu Nov 21 10:06:42 UTC 2024 - Dirk Müller + +- drop optional astunparse dependency for python 3.13 + +------------------------------------------------------------------- +Wed Nov 13 14:20:12 UTC 2024 - John Paul Adrian Glaubitz + +- Update to 0.10.0 + * New programmatic option for not insert cwd + into sys.path when running + * Test names have the same syntax as pytest + +------------------------------------------------------------------- +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 + +- update to 0.5.0 + * Implemented support for filtering tests based on markers. Also + supports the marker[argument] syntax that goes beyond what pytest + can do + * Nicer output on failed tests + +------------------------------------------------------------------- +Mon Mar 30 13:14:25 UTC 2020 - pgajdos@suse.com + +- initial vrsion 0.4.0, required by python-mutmut + diff --git a/python-hammett.spec b/python-hammett.spec new file mode 100644 index 0000000..dae606c --- /dev/null +++ b/python-hammett.spec @@ -0,0 +1,74 @@ +# +# spec file for package python-hammett +# +# 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 +# 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. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: python-hammett +Version: 0.10.0 +Release: 0 +Summary: Fast python test runner +License: BSD-3-Clause +Group: Development/Languages/Python +URL: https://github.com/boxed/hammett +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 +%if %{python_version_nodots} < 313 +Requires: python-astunparse +%endif +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch +%python_subpackages + +%description +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 +%autosetup -p1 -n hammett-%{version} +echo "# Empty module" >> hammett/mark.py + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/hammett +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# 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_alternative %{_bindir}/hammett +%{python_sitelib}/hammett +%{python_sitelib}/hammett-%{version}.dist-info + +%changelog