From fb41f1e7bfb254aad34cd32d4224f53fb28237b5 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Jan 07 2020 12:37:25 +0000 Subject: * Mon Jan 06 2020 Fabian Affolter - 0.3.1-2 - Update removal of test files (rhbz#1787443) * Thu Jan 02 2020 Fabian Affolter - 0.3.1-1 - Initial package for Fedora --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..86f9a5d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/pytest-isort-0.3.1.tar.gz diff --git a/python-pytest-isort.spec b/python-pytest-isort.spec new file mode 100644 index 0000000..17b7de1 --- /dev/null +++ b/python-pytest-isort.spec @@ -0,0 +1,56 @@ +%global pypi_name pytest-isort + +Name: python-%{pypi_name} +Version: 0.3.1 +Release: 2%{?dist} +Summary: Pytest plugin to check import ordering using isort + +License: BSD +URL: http://github.com/moccu/pytest-isort/ +Source0: http://github.com/moccu/pytest-isort/archive/%{version}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + +%description +py.test plugin to check import ordering using isort. + +%package -n python3-%{pypi_name} +Summary: %{summary} + +BuildRequires: python3-devel +BuildRequires: python3-isort +BuildRequires: python3-pytest +BuildRequires: python3-setuptools +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +py.test plugin to check import ordering using isort. + +%prep +%autosetup -n %{pypi_name}-%{version} +rm -rf %{pypi_name}.egg-info + +%build +%py3_build + +%install +%py3_install + +%check +PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v test_isort.py \ + -k "not test_file_no_ignored and not test_file_ignored and not \ + test_correctly_sorted and not test_incorrectly_sorted" +rm -rf %{buildroot}%{python3_sitelib}/__pycache__/pytest_isort.cpython-%{python3_version_nodots}-PYTEST.pyc + +%files -n python3-%{pypi_name} +%license LICENSE.rst +%doc README.rst +%{python3_sitelib}/__pycache__/* +%{python3_sitelib}/pytest_isort.py +%{python3_sitelib}/pytest_isort-%{version}-py?.?.egg-info + +%changelog +* Mon Jan 06 2020 Fabian Affolter - 0.3.1-2 +- Update removal of test files (rhbz#1787443) + +* Thu Jan 02 2020 Fabian Affolter - 0.3.1-1 +- Initial package for Fedora diff --git a/sources b/sources new file mode 100644 index 0000000..9b81400 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (pytest-isort-0.3.1.tar.gz) = 2fd39108a6acacf18ce68bb537d2adeb4ff7cd8ea4c9611e5312edea5a0bc4841111ffb544318aa7b3bebe38e9f4744f07a45b2ebcbf872f79003b249ee115ca