mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix packaging to work with new module location
Changes include: * Remove references to old module dir from .spec * Use setuptools find_packages find all ansible packages
This commit is contained in:
parent
459722899d
commit
a0fecd6101
3 changed files with 3 additions and 20 deletions
|
@ -2,6 +2,7 @@ include README.md packaging/rpm/ansible.spec COPYING
|
||||||
include examples/hosts
|
include examples/hosts
|
||||||
include examples/ansible.cfg
|
include examples/ansible.cfg
|
||||||
include lib/ansible/module_utils/powershell.ps1
|
include lib/ansible/module_utils/powershell.ps1
|
||||||
|
recursive-include lib/ansible/modules *
|
||||||
recursive-include docs *
|
recursive-include docs *
|
||||||
include Makefile
|
include Makefile
|
||||||
include VERSION
|
include VERSION
|
||||||
|
|
|
@ -104,8 +104,6 @@ rm -rf %{buildroot}
|
||||||
%{python_sitelib}/ansible*
|
%{python_sitelib}/ansible*
|
||||||
%{_bindir}/ansible*
|
%{_bindir}/ansible*
|
||||||
%dir %{_datadir}/ansible
|
%dir %{_datadir}/ansible
|
||||||
%dir %{_datadir}/ansible/*
|
|
||||||
%{_datadir}/ansible/*/*
|
|
||||||
%config(noreplace) %{_sysconfdir}/ansible
|
%config(noreplace) %{_sysconfdir}/ansible
|
||||||
%doc README.md PKG-INFO COPYING
|
%doc README.md PKG-INFO COPYING
|
||||||
%doc %{_mandir}/man1/ansible*
|
%doc %{_mandir}/man1/ansible*
|
||||||
|
|
20
setup.py
20
setup.py
|
@ -7,7 +7,7 @@ from glob import glob
|
||||||
sys.path.insert(0, os.path.abspath('lib'))
|
sys.path.insert(0, os.path.abspath('lib'))
|
||||||
from ansible import __version__, __author__
|
from ansible import __version__, __author__
|
||||||
try:
|
try:
|
||||||
from setuptools import setup
|
from setuptools import setup, find_packages
|
||||||
except ImportError:
|
except ImportError:
|
||||||
print "Ansible now needs setuptools in order to build. " \
|
print "Ansible now needs setuptools in order to build. " \
|
||||||
"Install it using your package manager (usually python-setuptools) or via pip (pip install setuptools)."
|
"Install it using your package manager (usually python-setuptools) or via pip (pip install setuptools)."
|
||||||
|
@ -22,23 +22,7 @@ setup(name='ansible',
|
||||||
license='GPLv3',
|
license='GPLv3',
|
||||||
install_requires=['paramiko', 'jinja2', "PyYAML", 'setuptools', 'pycrypto >= 2.6'],
|
install_requires=['paramiko', 'jinja2', "PyYAML", 'setuptools', 'pycrypto >= 2.6'],
|
||||||
package_dir={ 'ansible': 'lib/ansible' },
|
package_dir={ 'ansible': 'lib/ansible' },
|
||||||
packages=[
|
packages=find_packages('lib'),
|
||||||
'ansible',
|
|
||||||
'ansible.cache',
|
|
||||||
'ansible.utils',
|
|
||||||
'ansible.utils.module_docs_fragments',
|
|
||||||
'ansible.inventory',
|
|
||||||
'ansible.inventory.vars_plugins',
|
|
||||||
'ansible.playbook',
|
|
||||||
'ansible.runner',
|
|
||||||
'ansible.runner.action_plugins',
|
|
||||||
'ansible.runner.lookup_plugins',
|
|
||||||
'ansible.runner.connection_plugins',
|
|
||||||
'ansible.runner.shell_plugins',
|
|
||||||
'ansible.runner.filter_plugins',
|
|
||||||
'ansible.callback_plugins',
|
|
||||||
'ansible.module_utils'
|
|
||||||
],
|
|
||||||
package_data={
|
package_data={
|
||||||
'': ['module_utils/*.ps1'],
|
'': ['module_utils/*.ps1'],
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue