2021-01-11 10:51:10 +08:00
|
|
|
Name: pytest
|
2023-06-09 17:16:56 +08:00
|
|
|
Version: 7.3.2
|
2021-12-13 13:38:37 +08:00
|
|
|
Release: 1
|
2021-01-11 10:51:10 +08:00
|
|
|
Summary: Simple powerful testing with Python
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://pytest.org
|
2023-06-09 17:16:56 +08:00
|
|
|
Source0: https://files.pythonhosted.org/packages/ec/d9/36b65598f3d19d0a14d13dc87ad5fa42869ae53bb7471f619a30eaabc4bf/%{name}-%{version}.tar.gz
|
2021-01-11 10:51:10 +08:00
|
|
|
|
2019-12-17 11:02:32 +08:00
|
|
|
%bcond_with tests
|
2021-01-11 10:51:10 +08:00
|
|
|
%bcond_with optional_tests
|
|
|
|
|
%bcond_without docs
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
2021-08-18 07:24:56 +00:00
|
|
|
BuildRequires: python3-toml
|
2021-01-11 10:51:10 +08:00
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
BuildRequires: python3-setuptools_scm
|
|
|
|
|
BuildRequires: python3-attrs
|
|
|
|
|
BuildRequires: python3-more-itertools
|
|
|
|
|
BuildRequires: python3-packaging
|
|
|
|
|
BuildRequires: python3-pluggy >= 0.12
|
|
|
|
|
BuildRequires: python3-py >= 1.5.0
|
|
|
|
|
BuildRequires: python3-wcwidth
|
2023-06-09 17:16:56 +08:00
|
|
|
BuildRequires: python3-docutils
|
|
|
|
|
BuildRequires: python3-pip
|
|
|
|
|
BuildRequires: python3-wheel
|
|
|
|
|
Requires: python3-tomli
|
2021-01-11 10:51:10 +08:00
|
|
|
%if %{with tests}
|
|
|
|
|
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
|
2019-12-17 11:02:32 +08:00
|
|
|
|
2021-01-11 10:51:10 +08:00
|
|
|
%if %{with docs}
|
|
|
|
|
BuildRequires: %{_bindir}/rst2html
|
|
|
|
|
BuildRequires: make
|
2019-12-17 11:02:32 +08:00
|
|
|
%endif
|
|
|
|
|
|
2023-06-09 17:16:56 +08:00
|
|
|
Requires: python3.10dist(exceptiongroup)
|
|
|
|
|
|
2021-01-11 10:51:10 +08:00
|
|
|
BuildArch: noarch
|
2019-12-17 11:02:32 +08:00
|
|
|
|
|
|
|
|
%description
|
2021-01-11 10:51:10 +08:00
|
|
|
py.test provides simple, yet powerful testing for Python.
|
2019-12-17 11:02:32 +08:00
|
|
|
|
|
|
|
|
|
2021-01-11 10:51:10 +08:00
|
|
|
%package -n python3-%{name}
|
|
|
|
|
Summary: Simple powerful testing with Python
|
2019-12-17 11:02:32 +08:00
|
|
|
%{?python_provide:%python_provide python3-%{name}}
|
2021-01-11 10:51:10 +08:00
|
|
|
Provides: pytest = %{version}-%{release}
|
|
|
|
|
Conflicts: python-pytest < 4.6
|
2019-12-17 11:02:32 +08:00
|
|
|
|
|
|
|
|
%description -n python3-%{name}
|
2021-01-11 10:51:10 +08:00
|
|
|
py.test provides simple, yet powerful testing for Python.
|
2019-12-17 11:02:32 +08:00
|
|
|
|
2021-01-11 10:51:10 +08:00
|
|
|
%package help
|
|
|
|
|
Summary: Help documents for pytest
|
|
|
|
|
%description help
|
|
|
|
|
Help documents for pytest.
|
2019-12-17 11:02:32 +08:00
|
|
|
|
|
|
|
|
%prep
|
2021-01-11 10:51:10 +08:00
|
|
|
%autosetup -p1
|
2019-12-17 11:02:32 +08:00
|
|
|
|
|
|
|
|
%build
|
2023-06-09 17:16:56 +08:00
|
|
|
%pyproject_build
|
2019-12-17 11:02:32 +08:00
|
|
|
|
2021-01-11 10:51:10 +08:00
|
|
|
%if %{with docs}
|
2019-12-17 11:02:32 +08:00
|
|
|
for f in README CHANGELOG CONTRIBUTING ; do
|
|
|
|
|
rst2html ${f}.rst > ${f}.html
|
|
|
|
|
done
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%install
|
2023-06-09 17:16:56 +08:00
|
|
|
%pyproject_install
|
2021-01-11 10:51:10 +08:00
|
|
|
mv %{buildroot}%{_bindir}/pytest %{buildroot}%{_bindir}/pytest-%{python3_version}
|
|
|
|
|
ln -snf pytest-%{python3_version} %{buildroot}%{_bindir}/pytest-3
|
|
|
|
|
mv %{buildroot}%{_bindir}/py.test %{buildroot}%{_bindir}/py.test-%{python3_version}
|
|
|
|
|
ln -snf py.test-%{python3_version} %{buildroot}%{_bindir}/py.test-3
|
2019-12-17 11:02:32 +08:00
|
|
|
|
2021-01-11 10:51:10 +08:00
|
|
|
ln -snf pytest-%{python3_version} %{buildroot}%{_bindir}/pytest
|
|
|
|
|
ln -snf py.test-%{python3_version} %{buildroot}%{_bindir}/py.test
|
2019-12-17 11:02:32 +08:00
|
|
|
|
2021-01-11 10:51:10 +08:00
|
|
|
%if %{with docs}
|
|
|
|
|
mkdir -p _htmldocs/html
|
2019-12-17 11:02:32 +08:00
|
|
|
%endif
|
|
|
|
|
|
2021-01-11 10:51:10 +08:00
|
|
|
find %{buildroot}%{python3_sitelib} \
|
2019-12-17 11:02:32 +08:00
|
|
|
-name '*.py' \
|
|
|
|
|
-exec sed -i -e '1{/^#!/d}' {} \;
|
|
|
|
|
|
|
|
|
|
%if %{with tests}
|
2021-01-11 10:51:10 +08:00
|
|
|
%check
|
|
|
|
|
PYTHONDONTWRITEBYTECODE=1 \
|
|
|
|
|
PATH=%{buildroot}%{_bindir}:${PATH} \
|
|
|
|
|
PYTHONPATH=%{buildroot}%{python3_sitelib} \
|
|
|
|
|
%{buildroot}%{_bindir}/pytest-%{python3_version} -r s testing \
|
|
|
|
|
%if %{with timeout}
|
2019-12-17 11:02:32 +08:00
|
|
|
--timeout=30
|
2021-01-11 10:51:10 +08:00
|
|
|
%endif
|
2019-12-17 11:02:32 +08:00
|
|
|
%endif
|
|
|
|
|
|
2020-11-02 14:25:54 +08:00
|
|
|
%files -n python3-%{name}
|
2019-12-17 11:02:32 +08:00
|
|
|
%license LICENSE
|
|
|
|
|
%{_bindir}/pytest
|
|
|
|
|
%{_bindir}/pytest-3
|
|
|
|
|
%{_bindir}/pytest-%{python3_version}
|
2021-01-11 10:51:10 +08:00
|
|
|
%{_bindir}/py.test
|
2019-12-17 11:02:32 +08:00
|
|
|
%{_bindir}/py.test-3
|
|
|
|
|
%{_bindir}/py.test-%{python3_version}
|
|
|
|
|
%{python3_sitelib}/_pytest/
|
2021-01-11 10:51:10 +08:00
|
|
|
%{python3_sitelib}/pytest/
|
2023-06-09 17:16:56 +08:00
|
|
|
%{python3_sitelib}/__pycache__/py.cpython-310.opt-1.pyc
|
|
|
|
|
%{python3_sitelib}/__pycache__/py.cpython-310.pyc
|
|
|
|
|
%{python3_sitelib}/py.py
|
|
|
|
|
%{python3_sitelib}/pytest-*.dist-info/
|
2019-12-17 11:02:32 +08:00
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%doc CHANGELOG.html README.html CONTRIBUTING.html _htmldocs/html
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-06-09 17:16:56 +08:00
|
|
|
* Fri Jun 9 2023 li-miaomiao_zhr <mmlidc@isoftstone.com> - 7.3.2-1
|
|
|
|
|
- Upgrade package pytest to version 7.3.2
|
|
|
|
|
|
2022-07-12 08:56:18 +00:00
|
|
|
* Tue Jul 12 2022 renliang16 <renliang@uniontech.com> - 7.0.1-1
|
|
|
|
|
- Upgrade package pytest to version 7.0.1
|
|
|
|
|
|
2021-12-13 13:38:37 +08:00
|
|
|
* Mon Dec 13 2021 shixuantong <shixuantong@huawei.com> - 6.2.5-1
|
|
|
|
|
- update version to 6.2.5
|
|
|
|
|
|
2021-08-18 07:24:56 +00:00
|
|
|
* Wed Aug 18 2021 huangtianhua <huangtianhua@huawei.com> - 6.2.2-2
|
|
|
|
|
- Add python3-toml as BuildRequires to fix python dist version error
|
|
|
|
|
|
2021-07-19 17:30:10 +08:00
|
|
|
* Mon Jul 19 2021 OpenStack_SIG <openstack@openeuler.org> - 6.2.2-1
|
|
|
|
|
- update to 6.2.2
|
|
|
|
|
|
2022-06-15 07:37:58 +00:00
|
|
|
* Mon Jan 11 2021 wutao <wutao61@huawei.com> - 5.4.3-1
|
2021-01-11 10:51:10 +08:00
|
|
|
- Update to 5.4.3
|
|
|
|
|
|
2020-11-02 14:25:54 +08:00
|
|
|
* Mon Nov 2 2020 wutao <wutao61@huawei.com> - 3.6.4-4
|
2021-01-11 10:51:10 +08:00
|
|
|
- disable python2
|
2020-11-02 14:25:54 +08:00
|
|
|
|
2019-12-17 11:02:32 +08:00
|
|
|
* Tue Dec 10 2019 mengxian <mengxian@huawei.com> - 3.6.4-2
|
|
|
|
|
- Package init
|