Blame SPECS/python-genty.spec

47d53f
%global pypi_name genty
47d53f
Name:           python-%{pypi_name}
47d53f
Version:        1.3.2
47d53f
Release:        9%{?dist}
47d53f
Summary:        Allows you to run a test with multiple data sets
47d53f
License:        ASL 2.0
47d53f
URL:            https://github.com/box/genty
47d53f
Source0:        %pypi_source
47d53f
BuildArch:      noarch
47d53f
47d53f
BuildRequires:  python3-devel
47d53f
BuildRequires:  python3dist(setuptools)
47d53f
BuildRequires:  python3dist(six)
47d53f
47d53f
%description
47d53f
Genty, pronounced "gen-tee", stands for "generate tests". It promotes
47d53f
generative testing, where a single test can execute over a variety of input
47d53f
Genty makes this a breeze.
47d53f
47d53f
47d53f
%package -n     python3-%{pypi_name}
47d53f
Summary:        %{summary}
47d53f
%{?python_provide:%python_provide python3-%{pypi_name}}
47d53f
Requires:       python3dist(six)
47d53f
47d53f
%description -n python3-%{pypi_name}
47d53f
Genty, pronounced "gen-tee", stands for "generate tests". It promotes
47d53f
generative testing, where a single test can execute over a variety of input
47d53f
Genty makes this a breeze.
47d53f
47d53f
47d53f
%prep
47d53f
%autosetup -n %{pypi_name}-%{version}
47d53f
47d53f
# Use mock from standard library:
47d53f
sed -i 's/from mock/from unittest.mock/' test/test_genty.py
47d53f
47d53f
47d53f
%build
47d53f
%py3_build
47d53f
47d53f
47d53f
%install
47d53f
%py3_install
47d53f
47d53f
47d53f
%check
47d53f
%{__python3} setup.py test
47d53f
47d53f
47d53f
%files -n python3-%{pypi_name}
47d53f
%license LICENSE
47d53f
%doc README.rst
47d53f
%{python3_sitelib}/%{pypi_name}
47d53f
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
47d53f
47d53f
47d53f
%changelog
47d53f
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-9
47d53f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
47d53f
47d53f
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-8
47d53f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
47d53f
47d53f
* Sun May 24 2020 Miro Hron훾ok <mhroncok@redhat.com> - 1.3.2-7
47d53f
- Rebuilt for Python 3.9
47d53f
47d53f
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-6
47d53f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
47d53f
47d53f
* Thu Oct 03 2019 Miro Hron훾ok <mhroncok@redhat.com> - 1.3.2-5
47d53f
- Rebuilt for Python 3.8.0rc1 (#1748018)
47d53f
47d53f
* Mon Aug 19 2019 Miro Hron훾ok <mhroncok@redhat.com> - 1.3.2-4
47d53f
- Rebuilt for Python 3.8
47d53f
47d53f
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-3
47d53f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
47d53f
47d53f
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-2
47d53f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
47d53f
47d53f
* Mon Jul 30 2018 Miro Hron훾ok <mhroncok@redhat.com> - 1.3.2-1
47d53f
- Initial package