Blame SPECS/python-pytest-isort.spec

0b471e
%global pypi_name pytest-isort
0b471e
0b471e
Name:           python-%{pypi_name}
0b471e
Version:        1.2.0
0b471e
Release:        2%{?dist}
0b471e
Summary:        Pytest plugin to check import ordering using isort
0b471e
0b471e
License:        BSD
0b471e
URL:            http://github.com/moccu/pytest-isort/
0b471e
Source0:        %{pypi_source}
0b471e
BuildArch:      noarch
0b471e
0b471e
%description
0b471e
py.test plugin to check import ordering using isort.
0b471e
0b471e
%package -n     python3-%{pypi_name}
0b471e
Summary:        %{summary}
0b471e
0b471e
BuildRequires:  python3-devel
0b471e
BuildRequires:  python3-isort
0b471e
BuildRequires:  python3-pytest
0b471e
BuildRequires:  python3-setuptools
0b471e
%{?python_provide:%python_provide python3-%{pypi_name}}
0b471e
0b471e
%description -n python3-%{pypi_name}
0b471e
py.test plugin to check import ordering using isort.
0b471e
0b471e
%prep
0b471e
%autosetup -n %{pypi_name}-%{version}
0b471e
rm -rf %{pypi_name}.egg-info
0b471e
0b471e
%build
0b471e
%py3_build
0b471e
0b471e
%install
0b471e
%py3_install
0b471e
0b471e
%check
0b471e
PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v test_isort.py \
0b471e
  -k "not test_file_no_ignored and not test_file_ignored and not \
0b471e
  test_correctly_sorted and not test_incorrectly_sorted"
0b471e
rm -rf %{buildroot}%{python3_sitelib}/__pycache__/pytest_isort.cpython-%{python3_version_nodots}-PYTEST.pyc
0b471e
0b471e
%files -n python3-%{pypi_name}
0b471e
%license LICENSE.rst
0b471e
%doc README.rst
0b471e
%{python3_sitelib}/__pycache__/*
0b471e
%{python3_sitelib}/pytest_isort.py
0b471e
%{python3_sitelib}/pytest_isort-%{version}-py%{python3_version}.egg-info
0b471e
0b471e
%changelog
0b471e
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
0b471e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
0b471e
0b471e
* Fri Sep 11 2020 Fabian Affolter <mail@fabian-affolter.ch> - 1.2.0-1
0b471e
- Update to latest upstream release 1.2.0
0b471e
0b471e
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
0b471e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
0b471e
0b471e
* Tue Jul 14 2020 Fabian Affolter <mail@fabian-affolter.ch> - 1.1.0-1
0b471e
- Update to latest upstream release 1.1.0
0b471e
0b471e
* Tue May 26 2020 Miro HronĨok <mhroncok@redhat.com> - 0.3.1-4
0b471e
- Rebuilt for Python 3.9
0b471e
0b471e
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-3
0b471e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
0b471e
0b471e
* Mon Jan 06 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.3.1-2
0b471e
- Update removal of test files (rhbz#1787443)
0b471e
0b471e
* Thu Jan 02 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.3.1-1
0b471e
- Initial package for Fedora