76 lines
2.4 KiB
RPMSpec
76 lines
2.4 KiB
RPMSpec
Name: python-pytest-shutil
|
|
Version: 1.7.0
|
|
Release: 3
|
|
Summary: A goodie-bag of unix shell and environment tools for py.test
|
|
License: MIT
|
|
URL: https://pypi.python.org/pypi/pytest-shutil
|
|
Source0: https://files.pythonhosted.org/packages/f7/fa/c1f7bfb61674f69fb2694bda0ef475a6b8b915a5c36105648dd58a6f200a/pytest-shutil-%{version}.tar.gz
|
|
|
|
Patch0: remove-require-contextlib2-on-python3.patch
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python3-devel python3-execnet python3-mock python3-wheel
|
|
BuildRequires: python3-path python3-pytest python3-pip python3-setuptools_git python3-termcolor
|
|
|
|
%description
|
|
This library is a goodie-bag of Unix shell and environment management tools for automated tests.
|
|
|
|
%package -n python3-pytest-shutil
|
|
Summary: A goodie-bag of unix shell and environment tools for py.test
|
|
%{?python_provide:%python_provide python3-pytest-shutil}
|
|
Requires: python3-pytest
|
|
|
|
%description -n python3-pytest-shutil
|
|
This library is a goodie-bag of Unix shell and environment management tools for automated tests.
|
|
|
|
%prep
|
|
%autosetup -n pytest-shutil-%{version} -p1
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1702355
|
|
sed -i -e 's|path.py|path|' setup.py
|
|
|
|
%build
|
|
%py3_build
|
|
|
|
%install
|
|
%py3_install
|
|
|
|
%check
|
|
# Disable test_pretty_formatter test that fails in osc build but it works when run manually.
|
|
# It should be something related to the shell and termcolor
|
|
export PYTHONPATH=%{buildroot}%{python3_sitelib}
|
|
pytest -k "not test_pretty_formatter"
|
|
|
|
%files -n python3-pytest-shutil
|
|
%doc README.md CHANGES.md
|
|
%{python3_sitelib}/*
|
|
|
|
%changelog
|
|
* Mon Jul 31 2023 xu_ping <707078654@qq.com> - 1.7.0-3
|
|
- remove buildrequires python3-contextlib2.
|
|
|
|
* Fri May 05 2023 yaoxin <yao_xin001@hoperun.com> - 1.7.0-2
|
|
- Fix compilation errors due to python-termcolor update to 2.3.0
|
|
|
|
* Thu Jun 30 2022 caodongxia <caodongxia@h-partners.com> - 1.7.0-1
|
|
- Update to 1.7.0
|
|
|
|
* Mon Apr 25 2022 caodongxia<caodongxia@h-partners.com> - 1.2.6-11
|
|
- add buildRequires to resolve compilation failure
|
|
|
|
* Fri Mar 4 2022 zhaoshuang<zhaoshuang@uniontech.com> - 1.2.6-10
|
|
- modify buildrequires to resolve build issue
|
|
|
|
* Thu Sep 10 2020 Ge Wang<wangge20@huawei.com> - 1.2.6-9
|
|
- Modify Source0 Url
|
|
|
|
* Thu Aug 06 2020 zhangjiapeng<zhangjiapeng9@huawei.com> - 1.2.6-8
|
|
- Remove python2
|
|
|
|
* Thu May 21 2020 wangerfeng<wangerfeng5@huawei.com> - 1.2.6-7
|
|
- fix testcase failure
|
|
|
|
* Wed Mar 4 2020 zhouyihang<zhouyihang1@huawei.com> - 1.2.6-6
|
|
- Pakcage init
|