Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
1de2df1a47
!9 Upgrade to 0.9.0
From: @cherry530 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2023-05-08 01:28:51 +00:00
cherry530
f10430c333 Upgrade to 0.9.0
Signed-off-by: cherry530 <707078654@qq.com>
2023-05-06 11:24:59 +08:00
openeuler-ci-bot
f6884a3bf4
!7 Replace nose2-python_version with nose2 due to python-nose2 updated to version 0.12.0
From: @wang--ge 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2023-01-11 01:29:33 +00:00
wang--ge
25c895080e replace nose2-python3_version with nose2 2023-01-10 19:47:20 +08:00
openeuler-ci-bot
b24ac9a3b8
!5 License compliance rectification
From: @starlet-dx 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
2022-05-10 02:53:44 +00:00
starlet-dx
80ede1c33b License compliance rectification 2022-05-09 17:49:27 +08:00
openeuler-ci-bot
cabd43ee91
!4 Update to 0.8.1 and remove python-nose
From: @starlet-dx 
Reviewed-by: @myeuler 
Signed-off-by: @myeuler
2022-05-05 02:22:26 +00:00
starlet-dx
858d5adb28 Update to 0.8.1 and remove python-nose 2022-04-29 15:50:57 +08:00
openeuler-ci-bot
0b3d5ec962 !1 add python-parameterized package
Merge pull request !1 from 陈棋德/master
2020-07-13 15:07:02 +08:00
dillon chen
052a933880 add python-parameterized package 2020-06-18 17:08:57 +08:00
2 changed files with 68 additions and 0 deletions

BIN
parameterized-0.9.0.tar.gz Normal file

Binary file not shown.

68
python-parameterized.spec Normal file
View File

@ -0,0 +1,68 @@
%global srcname parameterized
Name: python-%{srcname}
Version: 0.9.0
Release: 1
Summary: Parameterized testing with any Python test framework
License: BSD-2-Clause
URL: https://pypi.python.org/pypi/parameterized
Source0: https://files.pythonhosted.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
BuildRequires: python3-pip python3-hatchling python3-hatch-vcs python3-wheel
BuildArch: noarch
%description
%{summary}.
%package -n python3-%{srcname}
Summary: %{summary}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-nose2
BuildRequires: python3-pytest
%{?python_provide:%python_provide python3-%{srcname}}
%description -n python3-%{srcname}
%{summary}.
Python 3 version.
%prep
%autosetup -p1 -n %{srcname}-%{version}
sed -r -i 's/^import mock/from unittest import mock/' parameterized/test.py
sed -r -i 's/assert_equal\(missing/# &/' parameterized/test.py
%build
%pyproject_build
%install
%pyproject_install parameterized==%{version}
%check
export PYTHONPATH=%{buildroot}%{python3_sitelib}
nose2 -v
pytest -v parameterized/test.py
%{__python3} -m unittest -v parameterized.test
%files -n python3-%{srcname}
%license LICENSE.txt
%doc README.rst
%{python3_sitelib}/%{srcname}*
%changelog
* Sat May 06 2023 xu_ping <707078654@qq.com> - 0.9.0-1
- Upgrade to 0.9.0
* Tue Jan 10 2023 Ge Wang <wangge20@h-partners.com> - 0.8.1-3
- Replace nose2-%{python3_version} with nose2 due to python-nose2 updated to version 0.12.0
* Mon May 9 2022 yaoxin <yaoxin30@h-partners.com> - 0.8.1-2
- License compliance rectification
* Fri Apr 29 2022 yaoxin <yaoxin30@h-partners.com> - 0.8.1-1
- Update to 0.8.1 and remove python-nose
* Thu Jun 11 2020 Dillon Chen <dillon.chen@turbolinux.com.cn> - 0.7.4-1
- build for openEuler