Remove the test directory when packaging

This commit is contained in:
jxy_git 2023-05-30 14:42:35 +08:00
parent e763b6a310
commit 9b2acac986

View File

@ -1,8 +1,9 @@
%define _unpackaged_files_terminate_build 0
%{?python_enable_dependency_generator} %{?python_enable_dependency_generator}
%global pypi_name ansible-runner %global pypi_name ansible-runner
Name: python-%{pypi_name} Name: python-%{pypi_name}
Version: 1.4.6 Version: 1.4.6
Release: 4 Release: 5
Summary: A tool and python library to interface with Ansible Summary: A tool and python library to interface with Ansible
License: ASL 2.0 License: ASL 2.0
URL: https://github.com/ansible/ansible-runner URL: https://github.com/ansible/ansible-runner
@ -48,13 +49,13 @@ py.test-3 -v test
%{_bindir}/ansible-runner-3 %{_bindir}/ansible-runner-3
%{_bindir}/ansible-runner-%{python3_version} %{_bindir}/ansible-runner-%{python3_version}
%{python3_sitelib}/ansible_runner %{python3_sitelib}/ansible_runner
%{python3_sitelib}/test
%{python3_sitelib}/ansible_runner-%{version}-py%{python3_version}.egg-info %{python3_sitelib}/ansible_runner-%{version}-py%{python3_version}.egg-info
%{_bindir}/ansible-runner %{_bindir}/ansible-runner
%exclude %{python3_sitelib}/test/__pycache__/__init__.cpython-310.opt-1.pyc
%exclude %{python3_sitelib}/test/__pycache__/__init__.cpython-310.pyc
%changelog %changelog
* Tue May 30 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 1.4.6-5
- Remove the test directory when packaging
* Wed May 24 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 1.4.6-4 * Wed May 24 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 1.4.6-4
- Remove reduncency cache file - Remove reduncency cache file