1
0
Files
python-hammett/python-hammett.spec
Matej Cepl a70937da80 Accepting request 1147169 from home:bnavigator:branches:devel:languages:python
- 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

OBS-URL: https://build.opensuse.org/request/show/1147169
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hammett?expand=0&rev=5
2024-02-16 19:08:42 +00:00

76 lines
2.3 KiB
RPMSpec

#
# 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.9.4
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
Requires: python-astunparse
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module astunparse}
# /SECTION
%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