Compare commits

...

15 Commits

Author SHA1 Message Date
openeuler-ci-bot
245d59d9b9
!23 【轻量级 PR】:fix bogus date in %changelog
From: @loong-C 
Reviewed-by: @zengwefeng 
Signed-off-by: @zengwefeng
2022-06-30 07:34:14 +00:00
loong-C
7b11d6d9af
fix bogus date in %changelog
![输入图片说明](https://images.gitee.com/uploads/images/2022/0615/153816_29526119_9884780.png "屏幕截图.png")
2022-06-15 07:38:49 +00:00
openeuler-ci-bot
3719d2c88d
!19 change python3-packaging buildrequires
Merge pull request !19 from 桐小哥/openEuler-22.03-LTS-Next
2022-01-06 14:13:52 +00:00
桐小哥
c9be77ecc7
change python3-packaging buildrequires 2022-01-06 13:06:08 +00:00
openeuler-ci-bot
30eac418c9 !16 [sync] PR-14: 【轻量级 PR】:Add python3-toml as BuildRequires to fix python dist version error
From: @openeuler-sync-bot
Reviewed-by: @yanglijin
Signed-off-by: @yanglijin
2021-08-19 01:48:41 +00:00
huangtianhua
53414cb524 Add python3-toml as BuildRequires to fix python dist version error
(cherry picked from commit c8c88b6cca9671e007fe32ee57eb00b0c38eaf67)
2021-08-19 09:42:27 +08:00
openeuler-ci-bot
fac63d92df !15 [sync] PR-10: update pytest package for openstack wallaby
From: @openeuler-sync-bot
Reviewed-by: @yanglijin
Signed-off-by: @yanglijin
2021-08-19 01:36:00 +00:00
liksh
058e191268 update to 6.2.2
(cherry picked from commit 80232993954c9910f7b3d841a6a6edf95e81a794)
2021-08-19 09:21:16 +08:00
openeuler-ci-bot
64b8112d22 !9 upgrade to 5.4.3
From: @jackie_wu123
Reviewed-by: @ultra_planet,@small_leek
Signed-off-by: @small_leek
2021-01-11 16:07:47 +08:00
jackie_wu
972d185412 upgrade to 5.4.3 2021-01-11 10:51:10 +08:00
openeuler-ci-bot
92271f796d !8 回退 'Pull Request !7 : Update pytest to 6.0.2 version'
From: @small_leek
Reviewed-by: @miao_kaibo
Signed-off-by: @miao_kaibo
2021-01-04 10:02:18 +08:00
small_leek
9e0de139b7 回退 'Pull Request !7 : Update pytest to 6.0.2 version' 2020-12-31 15:11:10 +08:00
openeuler-ci-bot
46e86cdd65 !7 Update pytest to 6.0.2 version
From: @baizg1107
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2020-12-09 17:10:14 +08:00
baizg1107
cfc8e1534e Update to 6.0.2 2020-12-09 16:30:07 +08:00
openeuler-ci-bot
add1d435c9 !6 disable python2
From: @jackie_wu123
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2020-11-02 14:37:49 +08:00
3 changed files with 88 additions and 55 deletions

Binary file not shown.

BIN
pytest-6.2.2.tar.gz Normal file

Binary file not shown.

View File

@ -1,56 +1,77 @@
# the testsuite is curremtly not fully compatible with python3
%bcond_with tests
%global pylib_version 1.5.0
%global with_help 1
Name: pytest Name: pytest
Version: 3.6.4 Version: 6.2.2
Release: 4 Release: 3
Summary: A mature full-featured Python testing tool Summary: Simple powerful testing with Python
License: MIT License: MIT
URL: http://pytest.org URL: https://pytest.org
Source0: https://files.pythonhosted.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz Source0: https://files.pythonhosted.org/packages/d1/80/b4f47a1f933699cd531a7b336a6f3d82912e3e5e66e4a3bb1d8f0d1d98b0/pytest-6.2.2.tar.gz
BuildArch: noarch
%if 0%{?with_help} %bcond_with tests
BuildRequires: %{_bindir}/sphinx-build-3 %{_bindir}/rst2html %bcond_with optional_tests
%bcond_without docs
BuildRequires: python3-devel
BuildRequires: python3-toml
BuildRequires: python3-setuptools
BuildRequires: python3-setuptools_scm
BuildRequires: python3-attrs
BuildRequires: python3-more-itertools
BuildRequires: python3-pluggy >= 0.12
BuildRequires: python3-py >= 1.5.0
BuildRequires: python3-wcwidth
%if %{with tests}
BuildRequires: python3-packaging
BuildRequires: python3-hypothesis
BuildRequires: python3-xmlschema
%if %{with optional_tests}
BuildRequires: python3-argcomplete
BuildRequires: python3-decorator
BuildRequires: python3-jinja2
BuildRequires: python3-mock
BuildRequires: python3-nose
BuildRequires: python3-numpy
BuildRequires: python3-pexpect
BuildRequires: python3-pytest-xdist
BuildRequires: python3-twisted
%endif
%if %{with timeout}
BuildRequires: python3-pytest-timeout
%endif
%endif %endif
%global _description \ %if %{with docs}
The pytest framework makes it easy to write small tests,\ BuildRequires: %{_bindir}/rst2html
yet scales to support complex functional testing for\ BuildRequires: make
applications and libraries. %endif
BuildArch: noarch
%description %description
%{_description} py.test provides simple, yet powerful testing for Python.
%package -n python3-%{name} %package -n python3-%{name}
Summary: %{summary} Summary: Simple powerful testing with Python
BuildRequires: python3-atomicwrites python3-attrs python3-devel python3-hypothesis
BuildRequires: python3-more-itertools python3-pluggy python3-py >= %{pylib_version}
BuildRequires: python3-setuptools python3-setuptools_scm python3-six
Requires: python3-atomicwrites python3-attrs python3-more-itertools
Requires: python3-pluggy python3-py >= %{pylib_version}
Requires: python3-setuptools python3-six
%{?python_provide:%python_provide python3-%{name}} %{?python_provide:%python_provide python3-%{name}}
Obsoletes: platform-python-%{name} < %{version}-%{release} Provides: pytest = %{version}-%{release}
Conflicts: python-pytest < 4.6
%description -n python3-%{name} %description -n python3-%{name}
%{_description} py.test provides simple, yet powerful testing for Python.
%if 0%{?with_help}
%package_help
%endif
%package help
Summary: Help documents for pytest
%description help
Help documents for pytest.
%prep %prep
%autosetup %autosetup -p1
%build %build
%py3_build %py3_build
%if 0%{?with_help} %if %{with docs}
for f in README CHANGELOG CONTRIBUTING ; do for f in README CHANGELOG CONTRIBUTING ; do
rst2html ${f}.rst > ${f}.html rst2html ${f}.rst > ${f}.html
done done
@ -58,53 +79,65 @@ done
%install %install
%py3_install %py3_install
for file in pytest py.test; do mv %{buildroot}%{_bindir}/pytest %{buildroot}%{_bindir}/pytest-%{python3_version}
mv $RPM_BUILD_ROOT%{_bindir}/${file} $RPM_BUILD_ROOT%{_bindir}/${file}-%{python3_version} ln -snf pytest-%{python3_version} %{buildroot}%{_bindir}/pytest-3
ln -snf ${file}-%{python3_version} $RPM_BUILD_ROOT%{_bindir}/${file}-3 mv %{buildroot}%{_bindir}/py.test %{buildroot}%{_bindir}/py.test-%{python3_version}
done ln -snf py.test-%{python3_version} %{buildroot}%{_bindir}/py.test-3
for file in pytest py.test; do ln -snf pytest-%{python3_version} %{buildroot}%{_bindir}/pytest
ln -snf ${file}-%{python2_version} $RPM_BUILD_ROOT%{_bindir}/${file} ln -snf py.test-%{python3_version} %{buildroot}%{_bindir}/py.test
done
%if 0%{?with_help} %if %{with docs}
install -d _htmldocs/html mkdir -p _htmldocs/html
%endif %endif
find $RPM_BUILD_ROOT{%{python2_sitelib},%{python3_sitelib}} \ find %{buildroot}%{python3_sitelib} \
-name '*.py' \ -name '*.py' \
-exec sed -i -e '1{/^#!/d}' {} \; -exec sed -i -e '1{/^#!/d}' {} \;
%check
%if %{with tests} %if %{with tests}
PATH=$RPM_BUILD_ROOT%{_bindir}:${PATH} \ %check
PYTHONPATH=$RPM_BUILD_ROOT%{python3_sitelib} \ PYTHONDONTWRITEBYTECODE=1 \
$RPM_BUILD_ROOT%{_bindir}/pytest-%{python3_version} -r s testing \ PATH=%{buildroot}%{_bindir}:${PATH} \
PYTHONPATH=%{buildroot}%{python3_sitelib} \
%{buildroot}%{_bindir}/pytest-%{python3_version} -r s testing \
%if %{with timeout}
--timeout=30 --timeout=30
%endif
%endif %endif
%files -n python3-%{name} %files -n python3-%{name}
%license LICENSE %license LICENSE
%{_bindir}/pytest %{_bindir}/pytest
%{_bindir}/py.test
%{_bindir}/pytest-3 %{_bindir}/pytest-3
%{_bindir}/pytest-%{python3_version} %{_bindir}/pytest-%{python3_version}
%{_bindir}/py.test
%{_bindir}/py.test-3 %{_bindir}/py.test-3
%{_bindir}/py.test-%{python3_version} %{_bindir}/py.test-%{python3_version}
%{python3_sitelib}/pytest-*.egg-info/ %{python3_sitelib}/pytest-*.egg-info/
%{python3_sitelib}/_pytest/ %{python3_sitelib}/_pytest/
%{python3_sitelib}/pytest.py %{python3_sitelib}/pytest/
%{python3_sitelib}/__pycache__/pytest.*
%if 0%{?with_help}
%files help %files help
%doc CHANGELOG.html README.html CONTRIBUTING.html _htmldocs/html %doc CHANGELOG.html README.html CONTRIBUTING.html _htmldocs/html
%endif
%changelog %changelog
* Thu Jan 06 2022 shixuantong <shixuantong@huawei.com> - 6.2.2-3
- change python3-packaging buildrequires
* Wed Aug 18 2021 huangtianhua <huangtianhua@huawei.com> - 6.2.2-2
- Add python3-toml as BuildRequires to fix python dist version error
* Mon Jul 19 2021 OpenStack_SIG <openstack@openeuler.org> - 6.2.2-1
- update to 6.2.2
* Mon Jan 11 2021 wutao <wutao61@huawei.com> - 5.4.3-1
- Update to 5.4.3
* Mon Nov 2 2020 wutao <wutao61@huawei.com> - 3.6.4-4 * Mon Nov 2 2020 wutao <wutao61@huawei.com> - 3.6.4-4
- disable python2 - disable python2
* Tue Dec 10 2019 mengxian <mengxian@huawei.com> - 3.6.4-2 * Tue Dec 10 2019 mengxian <mengxian@huawei.com> - 3.6.4-2
- Package init - Package init