diff --git a/pytest-sugar-0.9.3.tar.gz b/pytest-sugar-0.9.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..f937f6d4a9405fd8607e7b3bc089b0898097589f Binary files /dev/null and b/pytest-sugar-0.9.3.tar.gz differ diff --git a/python-pytest-sugar.spec b/python-pytest-sugar.spec new file mode 100644 index 0000000000000000000000000000000000000000..b8c92325cb4ab18fdcfb0c17640c08a8c20194e2 --- /dev/null +++ b/python-pytest-sugar.spec @@ -0,0 +1,56 @@ +%bcond_without tests +%global _description %{expand: +pytest-sugar is a plugin for pytest that shows failures and errors instantly +and shows a progress bar.} + +Name: python-pytest-sugar +Version: 0.9.3 +Release: 1 +Summary: Change the default look and feel of pytest + +License: BSD +URL: https://pypi.org/project/pytest-sugar +Source0: %pypi_source + +BuildArch: noarch + +%{?python_enable_dependency_generator} + +%description %_description + +%package -n python3-pytest-sugar +Summary: %{summary} +BuildRequires: python3-devel +BuildRequires: python3-setuptools + + +%{?python_provide:%python_provide python3-pytest-sugar} + +%description -n python3-pytest-sugar %_description + + +%prep +%autosetup -n pytest-sugar-0.9.3 +rm -rf pytest-sugar.egg-info + +# Comment out to remove /usr/bin/env shebangs +# Can use something similar to correct/remove /usr/bin/python shebangs also +# find . -type f -name "*.py" -exec sed -i '/^#![ ]*\/usr\/bin\/env.*$/ d' {} 2>/dev/null ';' + +%build +%py3_build + +%install +%py3_install + +%files -n python3-pytest-sugar +%license LICENSE +%doc README.md +%{python3_sitelib}/pytest_sugar-0.9.3-py%{python3_version}.egg-info +%{python3_sitelib}/pytest_sugar.py +%dir %{python3_sitelib}/__pycache__ +%{python3_sitelib}/__pycache__/pytest_sugar* + +%changelog +* Fri Jul 09 2021 xuyonghui - 0.9.3-1 +- Package init