python-utils/python-utils.spec

53 lines
1.8 KiB
RPMSpec
Raw Permalink Normal View History

2021-12-30 10:09:34 +08:00
Name: python-utils
2022-11-03 16:23:03 +00:00
Version: 3.4.5
2021-12-30 10:09:34 +08:00
Release: 1
Summary: Python Utils is a module with some convenient utilities
License: BSD
URL: https://github.com/WoLpH/python-utils
2022-11-03 16:23:03 +00:00
Source0: https://github.com/wolph/python-utils/releases/download/v%{version}/%{name}-%{version}.tar.gz
2021-12-30 10:09:34 +08:00
BuildArch: noarch
BuildRequires: make python3-devel python3-pytest-runner python3-pytest python3-setuptools
BuildRequires: python3-six python3-sphinx
%?python_enable_dependency_generator
%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}
%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 -p1 -n %{name}-%{version}
rm -rf %{name}.egg-info
sed -Ei '/--(cov|pep8|flake8)/d' pytest.ini
sed -Ezi 's/flake8.+=.+\n(\s*\S+\s*\n)*\n/\n/' pytest.ini
%build
%py3_build
sphinx-build-3 docs html
rm -rf html/{.doctrees,.buildinfo,*.inv}
%install
%py3_install
%files -n python3-utils
%doc README.rst html
%license LICENSE
%{python3_sitelib}/python_utils
%{python3_sitelib}/python_utils-%{version}-py%{python3_version}.egg-info
%changelog
2022-11-03 16:23:03 +00:00
* Fri Nov 4 2022 hkgy <kaguyahatu@outlook.com> - 3.4.5-1
- Upgrade to v3.4.5
2021-12-30 10:09:34 +08:00
* Mon Dec 27 2021 liyanan <liyanan32@huawei.com> - 2.5.6-1
- package init