e86cdc0
Name:           python-utils
0a314df
Version:        2.4.0
509b9b4
Release:        2%{?dist}
e86cdc0
Summary:        Python Utils is a module with some convenient utilities
e86cdc0
e86cdc0
License:        BSD
e86cdc0
URL:            https://github.com/WoLpH/python-utils
e86cdc0
Source0:        %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
e86cdc0
BuildArch:      noarch
e86cdc0
e86cdc0
BuildRequires:  python3-devel
e86cdc0
BuildRequires:  python3-pytest-runner
e86cdc0
BuildRequires:  python3-pytest
e86cdc0
BuildRequires:  python3-setuptools
e86cdc0
BuildRequires:  python3-six
e86cdc0
BuildRequires:  python3-sphinx
e86cdc0
1f7f14c
%?python_enable_dependency_generator
1f7f14c
e86cdc0
%description
e86cdc0
Python Utils is a collection of small Python functions and classes which
e86cdc0
make common patterns shorter and easier. This module makes it easy to
e86cdc0
execute common tasks in Python scripts such as converting text to numbers
e86cdc0
and making sure a string is in unicode or bytes format.
e86cdc0
e86cdc0
%package -n     python3-utils
e86cdc0
Summary:        %{summary}
e86cdc0
%{?python_provide:%python_provide python3-utils}
e86cdc0
e86cdc0
%description -n python3-utils
e86cdc0
Python Utils is a collection of small Python functions and classes which
e86cdc0
make common patterns shorter and easier. This module makes it easy to
e86cdc0
execute common tasks in Python scripts such as converting text to numbers
e86cdc0
and making sure a string is in unicode or bytes format.
e86cdc0
e86cdc0
e86cdc0
%prep
307e668
%autosetup -p1 -n %{name}-%{version}
e86cdc0
# Remove bundled egg-info
e86cdc0
rm -rf %{name}.egg-info
e86cdc0
dc469f6
# Stop linting code in %%check and measuring coverage, this is upstream's business
dc469f6
sed -Ei '/--(cov|pep8|flakes)/d' pytest.ini
dc469f6
e86cdc0
%build
e86cdc0
%py3_build
e86cdc0
# generate html docs
e86cdc0
sphinx-build-3 docs html
e86cdc0
# remove the sphinx-build leftovers
e86cdc0
rm -rf html/{.doctrees,.buildinfo,*.inv}
e86cdc0
e86cdc0
e86cdc0
%install
e86cdc0
%py3_install
e86cdc0
e86cdc0
e86cdc0
%check
e86cdc0
%{__python3} setup.py pytest --addopts --ignore=build
e86cdc0
e86cdc0
e86cdc0
%files -n python3-utils
e86cdc0
%doc README.rst html
e86cdc0
%license LICENSE
e86cdc0
%{python3_sitelib}/python_utils
7aa040b
%{python3_sitelib}/python_utils-%{version}-py%{python3_version}.egg-info
e86cdc0
e86cdc0
%changelog
509b9b4
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-2
509b9b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
509b9b4
0a314df
* Mon Jun 01 2020 Charalampos Stratakis <cstratak@redhat.com> - 2.4.0-1
0a314df
- Update to 2.4.0 (#1809705)
0a314df
1d0a7b8
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.3.0-10
1d0a7b8
- Rebuilt for Python 3.9
1d0a7b8
95daa75
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-9
95daa75
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
95daa75
072bbdd
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.3.0-8
072bbdd
- Rebuilt for Python 3.8.0rc1 (#1748018)
072bbdd
454f146
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.3.0-7
454f146
- Rebuilt for Python 3.8
454f146
d443409
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-6
d443409
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
d443409
307e668
* Mon May 13 2019 Orion Poplawski <orion@nwra.com> - 2.3.0-5
307e668
- Add patch to build docs with python 3 (bugz#1709063)
307e668
- Drop unneeded BR on pytest-cache
307e668
a46867f
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-4
a46867f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
a46867f
ccd98e2
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-3
ccd98e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
ccd98e2
e78cf81
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.3.0-2
e78cf81
- Rebuilt for Python 3.7
e78cf81
1f7f14c
* Sat May 05 2018 Miro Hrončok <mhroncok@redhat.com> - 2.3.0-1
1f7f14c
- New version 2.3.0 (#1474328)
1f7f14c
- Use automatic dependency generator
1f7f14c
e4e45f9
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-3
e4e45f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
e4e45f9
23e0119
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
23e0119
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
23e0119
e87b22e
* Thu Jun 15 2017 Miro Hrončok <mhroncok@redhat.com> - 2.1.0-1
e87b22e
- New version 2.1.0 (#1438625)
e87b22e
7baf040
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-3
7baf040
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
7baf040
8569258
* Thu Dec 22 2016 Miro Hrončok <mhroncok@redhat.com> - 2.0.1-2
8569258
- Rebuild for Python 3.6
8569258
e86cdc0
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.0.1-1
e86cdc0
- Updated, added LICENSE file
e86cdc0
e86cdc0
* Sun Dec 04 2016 Miro Hrončok <mhroncok@redhat.com> - 2.0.0-1
e86cdc0
- Initial package