|
|
e86cdc0 |
Name: python-utils
|
|
|
1f7f14c |
Version: 2.3.0
|
|
|
d443409 |
Release: 6%{?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
|
|
|
307e668 |
# Build docs with python3
|
|
|
307e668 |
# https://bugzilla.redhat.com/show_bug.cgi?id=1709063
|
|
|
307e668 |
# https://github.com/WoLpH/python-utils/pull/7
|
|
|
307e668 |
Patch0: https://patch-diff.githubusercontent.com/raw/WoLpH/python-utils/pull/7.patch
|
|
|
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 |
|
|
|
1f7f14c |
# 2.3.0 tarball has 2.2.0 in metadata
|
|
|
1f7f14c |
sed -i 's/2.2.0/%{version}/' python_utils/__about__.py
|
|
|
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
|
|
|
e86cdc0 |
%{python3_sitelib}/python_utils-%{version}-py?.?.egg-info
|
|
|
e86cdc0 |
|
|
|
e86cdc0 |
%changelog
|
|
|
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
|