forked from pool/python-pytest-spec
- update to 4.0.0:
* v.4.0.0 * Drop support for Python 2.7, 3.5, 3.6, 3.7 * Added support for Python 3.11, 3.12 * Migrate project back to pip from poetry * Replace mock by version from stdlib - drop python-pytest-spec-nopython2.patch: upstream OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-spec?expand=0&rev=15
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pytest-spec
|
||||
#
|
||||
# Copyright (c) 2023 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
|
||||
@@ -17,15 +17,15 @@
|
||||
|
||||
|
||||
Name: python-pytest-spec
|
||||
Version: 3.2.0
|
||||
Version: 4.0.0
|
||||
Release: 0
|
||||
Summary: Plugin to display pytest execution output like a specification
|
||||
License: GPL-2.0-only
|
||||
URL: https://github.com/pchomik/pytest-spec
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pytest-spec/pytest-spec-%{version}.tar.gz
|
||||
# https://github.com/pchomik/pytest-spec/compare/3.2.0...master
|
||||
Patch1: python-pytest-spec-nopython2.patch
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pytest-spec/pytest_spec-%{version}.tar.gz
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
@@ -38,15 +38,13 @@ BuildRequires: %{python_module pytest}
|
||||
pytest plugin to display test execution output like a specification.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n pytest-spec-%{version}
|
||||
%autosetup -p1 -n pytest_spec-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
# Do not install tests
|
||||
%python_expand rm -r %{buildroot}%{$python_sitelib}/test
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
@@ -55,6 +53,7 @@ pytest plugin to display test execution output like a specification.
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
%license LICENSE.txt
|
||||
%{python_sitelib}/pytest_spec*
|
||||
%{python_sitelib}/pytest_spec
|
||||
%{python_sitelib}/pytest_spec-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user