c8563fc
%global pypi_name django-pytest
9e89b65
%global with_python3 1
c8563fc
c8563fc
Name:           python-%{pypi_name}
c8563fc
Version:        0.2.0
6f298ad
Release:        9%{?dist}
c8563fc
Summary:        Allows you to use py.test as a django test runner
c8563fc
c8563fc
License:        BSD
c8563fc
URL:            https://github.com/buchuki/django-pytest
c8563fc
Source0:        http://pypi.python.org/packages/source/d/django-pytest/%{pypi_name}-%{version}.tar.gz
c8563fc
c8563fc
BuildArch:      noarch
9e89b65
BuildRequires:  python2-devel
c8563fc
BuildRequires:  python-setuptools
c8563fc
9e89b65
%if 0%{?with_python3}
9e89b65
BuildRequires:  python3-devel
9e89b65
BuildRequires:  python3-setuptools
9e89b65
%endif
9e89b65
c8563fc
Requires:       python-django
c8563fc
Requires:       pytest
c8563fc
c8563fc
Provides:       %{pypi_name} = %{version}-%{release}
c8563fc
c8563fc
%description
c8563fc
This project allows you to use py.test as a django test runner,
c8563fc
instead of the default test runner.
c8563fc
9e89b65
%if 0%{?with_python3}
9e89b65
%package -n     python3-%{pypi_name}
9e89b65
Summary:        Allows you to use py.test as a django test runner
9e89b65
9e89b65
Requires:       python3-django
9e89b65
Requires:       python3-pytest
9e89b65
9e89b65
%description -n python3-%{pypi_name}
9e89b65
Django is a high-level Python Web framework that encourages rapid
9e89b65
development and a clean, pragmatic design. It focuses on automating as
9e89b65
much as possible and adhering to the DRY (Don't Repeat Yourself)
9e89b65
principle.
9e89b65
%endif
9e89b65
c8563fc
%prep
c8563fc
%setup -q -n %{pypi_name}-%{version}
c8563fc
# remove the bundled egg-info
c8563fc
rm -rf %{pypi_name}.egg-info
c8563fc
9e89b65
%if 0%{?with_python3}
9e89b65
cp -a . %{py3dir}
9e89b65
%endif
9e89b65
c8563fc
c8563fc
%build
c8563fc
%{__python} setup.py build
c8563fc
9e89b65
%if 0%{?with_python3}
9e89b65
pushd %{py3dir}
9e89b65
%{__python3} setup.py build
9e89b65
popd
9e89b65
%endif # with_python3
9e89b65
c8563fc
c8563fc
%install
9e89b65
%if 0%{?with_python3}
9e89b65
pushd %{py3dir}
9e89b65
%{__python3} setup.py install --skip-build --root %{buildroot}
9e89b65
popd
9e89b65
%endif # with_python3
9e89b65
9e89b65
%{__python} setup.py install --skip-build --root %{buildroot}
c8563fc
c8563fc
 
c8563fc
%files
c8563fc
%doc LICENSE.txt README.md
c8563fc
%{python_sitelib}/django_pytest/
c8563fc
%{python_sitelib}/django_pytest-%{version}-py2.7.egg-info
c8563fc
9e89b65
%files -n python3-%{pypi_name}
9e89b65
%doc LICENSE.txt README.md
9e89b65
%{python3_sitelib}/django_pytest/
b148dda
%{python3_sitelib}/django_pytest-%{version}-py3.?.egg-info
9e89b65
c8563fc
%changelog
6f298ad
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-9
6f298ad
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
6f298ad
66a1951
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-8
66a1951
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
66a1951
21e1109
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-7
21e1109
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
21e1109
b148dda
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.2.0-6
b148dda
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
b148dda
6406396
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-5
6406396
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
6406396
9e89b65
* Wed Mar 27 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.2.0-4
9e89b65
- Rebuilt with Django 1.5.
9e89b65
- Introduced python3 subpackage.
9e89b65
ede3da0
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-3
ede3da0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ede3da0
48cf6cb
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-2
48cf6cb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
48cf6cb
c8563fc
* Wed Mar 28 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.2.0-1
c8563fc
- Update to version 0.2.0
c8563fc
- Be more verbose in %%files section
c8563fc
c8563fc
* Wed Mar 28 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.1.5-1
c8563fc
- Initial package