python-pytest-shutil/python-pytest-shutil.spec

76 lines
2.4 KiB
RPMSpec
Raw Normal View History

2020-03-06 22:04:22 +08:00
Name: python-pytest-shutil
2022-07-01 17:56:15 +08:00
Version: 1.7.0
Release: 3
2020-03-06 22:04:22 +08:00
Summary: A goodie-bag of unix shell and environment tools for py.test
License: MIT
URL: https://pypi.python.org/pypi/pytest-shutil
2022-07-01 17:56:15 +08:00
Source0: https://files.pythonhosted.org/packages/f7/fa/c1f7bfb61674f69fb2694bda0ef475a6b8b915a5c36105648dd58a6f200a/pytest-shutil-%{version}.tar.gz
2020-03-06 22:04:22 +08:00
Patch0: remove-require-contextlib2-on-python3.patch
2020-03-06 22:04:22 +08:00
BuildArch: noarch
BuildRequires: python3-devel python3-execnet python3-mock python3-wheel
2022-07-01 17:56:15 +08:00
BuildRequires: python3-path python3-pytest python3-pip python3-setuptools_git python3-termcolor
2020-03-06 22:04:22 +08:00
%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
2022-07-01 17:56:15 +08:00
# https://bugzilla.redhat.com/show_bug.cgi?id=1702355
sed -i -e 's|path.py|path|' setup.py
2020-03-06 22:04:22 +08:00
%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"
2020-03-06 22:04:22 +08:00
%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
2022-07-01 17:56:15 +08:00
* 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
2020-09-11 15:43:57 +08:00
* Thu Sep 10 2020 Ge Wang<wangge20@huawei.com> - 1.2.6-9
- Modify Source0 Url
2020-08-06 10:36:39 +08:00
* Thu Aug 06 2020 zhangjiapeng<zhangjiapeng9@huawei.com> - 1.2.6-8
- Remove python2
2020-05-22 09:19:21 +08:00
* Thu May 21 2020 wangerfeng<wangerfeng5@huawei.com> - 1.2.6-7
2020-05-22 09:32:19 +08:00
- fix testcase failure
2020-08-06 10:36:39 +08:00
2020-05-22 09:19:21 +08:00
* Wed Mar 4 2020 zhouyihang<zhouyihang1@huawei.com> - 1.2.6-6
2020-03-06 22:04:22 +08:00
- Pakcage init