2018-05-15 08:12:43 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pytest-isort
|
|
|
|
#
|
2022-03-29 19:43:56 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2018-05-15 08:12:43 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-02-15 09:02:42 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-05-15 08:12:43 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2022-03-29 19:43:56 +00:00
|
|
|
%{?!python_module:%define python_module() python3-%{**}}
|
2020-08-25 12:56:51 +00:00
|
|
|
%define skip_python2 1
|
2018-05-15 08:12:43 +00:00
|
|
|
Name: python-pytest-isort
|
2022-03-29 19:43:56 +00:00
|
|
|
Version: 3.0.0
|
2018-05-15 08:12:43 +00:00
|
|
|
Release: 0
|
2022-03-29 19:43:56 +00:00
|
|
|
Summary: Pytest plugin to check import ordering using isort
|
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/stephrdev/pytest-isort/
|
|
|
|
Source: https://github.com/stephrdev/pytest-isort/archive/refs/tags/%{version}.tar.gz#/pytest-isort-%{version}-gh.tar.gz
|
|
|
|
BuildRequires: %{python_module importlib-metadata if %python-base < 3.8}
|
2019-02-15 09:02:42 +00:00
|
|
|
BuildRequires: %{python_module isort >= 4.0}
|
2022-03-29 19:43:56 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module poetry >= 1.1}
|
|
|
|
BuildRequires: %{python_module pytest >= 6.2}
|
2018-05-15 08:12:43 +00:00
|
|
|
BuildRequires: fdupes
|
2019-02-15 09:02:42 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python-isort >= 4.0
|
2019-03-11 08:48:22 +00:00
|
|
|
Requires: python-pytest >= 3.5
|
2022-03-29 19:43:56 +00:00
|
|
|
%if 0%{python_version_nodots} < 38
|
|
|
|
Requires: python-importlib-metadata
|
|
|
|
%endif
|
2018-05-15 08:12:43 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2022-03-29 19:43:56 +00:00
|
|
|
This is a pytest plugin to check import ordering using isort.
|
2018-05-15 08:12:43 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n pytest-isort-%{version}
|
|
|
|
|
|
|
|
%build
|
2022-03-29 19:43:56 +00:00
|
|
|
%pyproject_wheel
|
2018-05-15 08:12:43 +00:00
|
|
|
|
|
|
|
%install
|
2022-03-29 19:43:56 +00:00
|
|
|
%pyproject_install
|
|
|
|
%{python_expand #
|
|
|
|
rm %{buildroot}%{$python_sitelib}/LICENSE.rst
|
|
|
|
%fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
}
|
2018-05-15 08:12:43 +00:00
|
|
|
|
|
|
|
%check
|
2019-03-11 08:48:22 +00:00
|
|
|
%pytest
|
2018-05-15 08:12:43 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc CHANGELOG.rst README.rst
|
|
|
|
%license LICENSE.rst
|
2022-03-29 19:43:56 +00:00
|
|
|
%{python_sitelib}/pytest_isort
|
|
|
|
%{python_sitelib}/pytest_isort-%{version}*-info
|
2018-05-15 08:12:43 +00:00
|
|
|
|
|
|
|
%changelog
|