e86cdc0
Name:           python-utils
e86cdc0
Version:        2.0.1
7baf040
Release:        3%{?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-flake8
e86cdc0
BuildRequires:  python3-pytest-cache
e86cdc0
BuildRequires:  python3-pytest-cov
e86cdc0
BuildRequires:  python3-pytest-flakes
e86cdc0
BuildRequires:  python3-pytest-pep8
e86cdc0
BuildRequires:  python3-sphinx
e86cdc0
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
Requires:       python3-six
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
e86cdc0
%autosetup -n %{name}-%{version}
e86cdc0
# Remove bundled egg-info
e86cdc0
rm -rf %{name}.egg-info
e86cdc0
e86cdc0
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
e86cdc0
%{python3_sitelib}/python_utils-%{version}-py?.?.egg-info
e86cdc0
e86cdc0
%changelog
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