Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
28b6f5c692
!22 Remove buildrequires python3-contextlib
From: @cherry530 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2023-07-31 03:39:54 +00:00
cherry530
6ffb085866 remove buildrequires python3-contextlib2
Signed-off-by: cherry530 <707078654@qq.com>
2023-07-31 11:19:24 +08:00
openeuler-ci-bot
40c1e2d82c
!21 修复python-termcolor升级导致的check阶段报错
From: @starlet-dx 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2023-05-05 09:27:48 +00:00
starlet-dx
07ee78f149 Fix compilation errors due to python-termcolor update to 2.3.0 2023-05-05 16:16:39 +08:00
openeuler-ci-bot
834fc181cf
!19 Package upgrade
Package upgrade 
From: @caodongxia 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
2022-07-04 10:54:59 +00:00
caodongxia
a320e9c5aa Package upgrade 2022-07-04 18:40:50 +08:00
openeuler-ci-bot
1ae8f4f279
!18 修复编译失败问题
From: @caodongxia 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
2022-04-25 03:11:17 +00:00
caodongxia
3fe5d27f22 add buildRequires to resolve compilation failure 2022-04-25 10:45:23 +08:00
openeuler-ci-bot
f5057a2825
!17 [轻量级PR] 修改spec文件的buildrequires,解决编译问题
From: @kkzhs_admin 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
2022-03-14 07:23:47 +00:00
kkz
4565a24d37 modify buildrequires to resolve build issue 2022-03-07 12:18:26 +08:00
5 changed files with 51 additions and 32 deletions

View File

@ -1,25 +0,0 @@
From b960d8d90235218a3e1f66a2e59420087e27c14a Mon Sep 17 00:00:00 2001
Subject: [PATCH] cmdline
---
tests/integration/test_cmdline_integration.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tests/integration/test_cmdline_integration.py b/tests/integration/test_cmdline_integration.py
index 8d92a2e..e99831f 100644
--- a/tests/integration/test_cmdline_integration.py
+++ b/tests/integration/test_cmdline_integration.py
@@ -5,6 +5,7 @@ from pytest_shutil import cmdline
def test_chdir():
here = os.getcwd()
+ bindir=os.path.realpath('/bin')
with cmdline.chdir('/bin'):
- assert os.getcwd() == '/bin'
- assert os.getcwd() == here
\ No newline at end of file
+ assert os.getcwd() == bindir
+ assert os.getcwd() == here
--
2.23.0

Binary file not shown.

BIN
pytest-shutil-1.7.0.tar.gz Normal file

Binary file not shown.

View File

@ -1,16 +1,17 @@
Name: python-pytest-shutil Name: python-pytest-shutil
Version: 1.2.6 Version: 1.7.0
Release: 9 Release: 3
Summary: A goodie-bag of unix shell and environment tools for py.test Summary: A goodie-bag of unix shell and environment tools for py.test
License: MIT License: MIT
URL: https://pypi.python.org/pypi/pytest-shutil URL: https://pypi.python.org/pypi/pytest-shutil
Source0: https://files.pythonhosted.org/packages/f4/6c/c536c7bf1bd1d6a385eef074f581d513b4a5525b2bd5cc763f4870d66516/pytest-shutil-%{version}.tar.gz Source0: https://files.pythonhosted.org/packages/f7/fa/c1f7bfb61674f69fb2694bda0ef475a6b8b915a5c36105648dd58a6f200a/pytest-shutil-%{version}.tar.gz
Patch0000: 0001-modified-path-to-fix-testcase.patch
Patch0: remove-require-contextlib2-on-python3.patch
BuildArch: noarch BuildArch: noarch
BuildRequires: python3-contextlib2 python3-devel python3-execnet python3-mock BuildRequires: python3-devel python3-execnet python3-mock python3-wheel
BuildRequires: python3-path python3-pytest python3-setuptools_git python3-six BuildRequires: python3-path python3-pytest python3-pip python3-setuptools_git python3-termcolor
%description %description
This library is a goodie-bag of Unix shell and environment management tools for automated tests. This library is a goodie-bag of Unix shell and environment management tools for automated tests.
@ -26,6 +27,9 @@ This library is a goodie-bag of Unix shell and environment management tools for
%prep %prep
%autosetup -n pytest-shutil-%{version} -p1 %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 %build
%py3_build %py3_build
@ -33,13 +37,31 @@ This library is a goodie-bag of Unix shell and environment management tools for
%py3_install %py3_install
%check %check
%{__python3} setup.py test # 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 %files -n python3-pytest-shutil
%doc README.md CHANGES.md %doc README.md CHANGES.md
%{python3_sitelib}/* %{python3_sitelib}/*
%changelog %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 * Thu Sep 10 2020 Ge Wang<wangge20@huawei.com> - 1.2.6-9
- Modify Source0 Url - Modify Source0 Url

View File

@ -0,0 +1,22 @@
From 2d6709e2fc7fba1e0d61e8dad03fa68bf19a9b0f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
Date: Sun, 18 Aug 2019 10:46:37 +0200
Subject: [PATCH] pytest-shutil: Only require contextlib2 on Python 2
---
pytest-shutil/setup.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pytest-shutil/setup.py b/pytest-shutil/setup.py
index 70cc354..57f710d 100644
--- a/setup.py
+++ b/setup.py
@@ -24,7 +24,7 @@
install_requires = ['six',
'execnet',
- 'contextlib2',
+ 'contextlib2;python_version<"3"',
'pytest',
'path.py',
'mock',