From e86cdc0076f0ea9fdc8d37f4e101060ca5dca70b Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Dec 19 2016 14:25:30 +0000 Subject: Initial import (#1401334), updated --- diff --git a/.gitignore b/.gitignore index e69de29..5514ba4 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,2 @@ +/python-utils-2.0.0.tar.gz +/python-utils-2.0.1.tar.gz diff --git a/python-utils.spec b/python-utils.spec new file mode 100644 index 0000000..05a74f9 --- /dev/null +++ b/python-utils.spec @@ -0,0 +1,74 @@ +Name: python-utils +Version: 2.0.1 +Release: 1%{?dist} +Summary: Python Utils is a module with some convenient utilities + +License: BSD +URL: https://github.com/WoLpH/python-utils +Source0: %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-pytest-runner +BuildRequires: python3-pytest +BuildRequires: python3-setuptools +BuildRequires: python3-six +BuildRequires: python3-flake8 +BuildRequires: python3-pytest-cache +BuildRequires: python3-pytest-cov +BuildRequires: python3-pytest-flakes +BuildRequires: python3-pytest-pep8 +BuildRequires: python3-sphinx + +%description +Python Utils is a collection of small Python functions and classes which +make common patterns shorter and easier. This module makes it easy to +execute common tasks in Python scripts such as converting text to numbers +and making sure a string is in unicode or bytes format. + +%package -n python3-utils +Summary: %{summary} +%{?python_provide:%python_provide python3-utils} +Requires: python3-six + +%description -n python3-utils +Python Utils is a collection of small Python functions and classes which +make common patterns shorter and easier. This module makes it easy to +execute common tasks in Python scripts such as converting text to numbers +and making sure a string is in unicode or bytes format. + + +%prep +%autosetup -n %{name}-%{version} +# Remove bundled egg-info +rm -rf %{name}.egg-info + + +%build +%py3_build +# generate html docs +sphinx-build-3 docs html +# remove the sphinx-build leftovers +rm -rf html/{.doctrees,.buildinfo,*.inv} + + +%install +%py3_install + + +%check +%{__python3} setup.py pytest --addopts --ignore=build + + +%files -n python3-utils +%doc README.rst html +%license LICENSE +%{python3_sitelib}/python_utils +%{python3_sitelib}/python_utils-%{version}-py?.?.egg-info + +%changelog +* Mon Dec 19 2016 Miro Hrončok - 2.0.1-1 +- Updated, added LICENSE file + +* Sun Dec 04 2016 Miro Hrončok - 2.0.0-1 +- Initial package diff --git a/sources b/sources index e69de29..502fd71 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (python-utils-2.0.1.tar.gz) = 948b7a844977b00a3dbf13a82880c7b88f195936e30c9390d9f3c4728a5e9c7602d0be68e17a438298634d71ff5e1ac4ed3dc56859a8426246d129983e201ad4