diff --git a/python-utils-2.5.6.tar.gz b/python-utils-2.5.6.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..251c452dca07a0cd1908ec89e3e5999f80ed3cff Binary files /dev/null and b/python-utils-2.5.6.tar.gz differ diff --git a/python-utils.spec b/python-utils.spec new file mode 100644 index 0000000000000000000000000000000000000000..ee882dc1d6ebeff449a4b9a4a148fceb74cceef5 --- /dev/null +++ b/python-utils.spec @@ -0,0 +1,49 @@ +Name: python-utils +Version: 2.5.6 +Release: 1 +Summary: Python Utils is a module with some convenient utilities +License: BSD +URL: https://github.com/WoLpH/python-utils +Source0: https://github.com/WoLpH/python-utils/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +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 +* Mon Dec 27 2021 liyanan - 2.5.6-1 +- package init diff --git a/python-utils.yaml b/python-utils.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ccd3963cbd3d45c9a750d5f8154df7e3f626666d --- /dev/null +++ b/python-utils.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: WoLpH/python-utils +tag_prefix: ^v +seperator: .