From 8552f4d70090c8d17446d764a1f2924a1107675a Mon Sep 17 00:00:00 2001 From: huangtianhua Date: Sat, 26 Feb 2022 09:15:22 +0800 Subject: [PATCH] Provides pytest and py.test commands --- pytest.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pytest.spec b/pytest.spec index 0919581..95b6914 100644 --- a/pytest.spec +++ b/pytest.spec @@ -6,7 +6,7 @@ Name: pytest Version: 5.1.2 -Release: 1 +Release: 2 Summary: A mature full-featured Python testing tool License: MIT URL: http://pytest.org @@ -64,6 +64,9 @@ 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 +ln -snf pytest-%{python3_version} %{buildroot}%{_bindir}/pytest +ln -snf py.test-%{python3_version} %{buildroot}%{_bindir}/py.test + %if 0%{?with_help} install -d _htmldocs/html %endif @@ -83,8 +86,10 @@ PYTHONPATH=$RPM_BUILD_ROOT%{python3_sitelib} \ %files -n python3-%{name} %license LICENSE +%{_bindir}/pytest %{_bindir}/pytest-3 %{_bindir}/pytest-%{python3_version} +%{_bindir}/py.test %{_bindir}/py.test-3 %{_bindir}/py.test-%{python3_version} %{python3_sitelib}/pytest-*.egg-info/ @@ -99,6 +104,9 @@ PYTHONPATH=$RPM_BUILD_ROOT%{python3_sitelib} \ %endif %changelog +* Sat Feb 26 2022 huangtianhua - 5.1.2-2 +- Provides pytest and py.test commands + * Tue Feb 08 2022 huangtianhua - 5.1.2-1 - Upgrade to 5.1.2 to support OpenStack Train and drop python2 -- Gitee