Commit graph

128 commits

Author SHA1 Message Date
Toshio Kuratomi
a3ba96c512 Fix setup.py install.
In setuptools prior to 21.2.1, package_data can't directly reference
a directory.  Modify the entry for galaxy data so that it includes the
files but not the directories

Fixes #18231
2016-11-03 17:46:11 -07:00
Bill Nottingham
77e7ae6838 Change <support@ansible.com> - it's being retired. 2016-10-15 16:42:13 -07:00
Toshio Kuratomi
487e6562ca Fix ziploader for the cornercase of ansible invoking ansible.
* Make ziploader's ansible and ansible.module_utils libraries into
  namespace packages.
* Move __version__ and __author__ from ansible/__init__ to
  ansible/release.py.  This is because namespace packages only load one
  __init__.py.  If that is not the __init__.py with the author and
  version info then those won't be available.
* In ziplaoder, move the version ito ANSIBLE_CONSTANTS.
* Change PluginLoader to properly construct the path to the plugins even
  when namespace packages are present.
2016-04-29 08:47:49 -07:00
Brian Coca
369b3b317e renamed shell to console in last spot 2016-03-09 13:57:45 -05:00
Brian Coca
e74ab3ecdd draft 1st release of ansible-console
porting @dominis 's ansible-shell tool from 1.9 and integrating it into ansible
added verbosity control
made more resilitent to several errors
added highlight color, to configurable colors
more resilient on exception and interruptions
prompt coloring, goes red and changes to # when using become = true and root
become setting is now explicit and not a toggle
2016-03-07 20:25:21 -05:00
Toshio Kuratomi
baa309309d Bundle a new version of python-six for compatibility along with some code to make it easy for distributions to override the bunndled copy if they have a new enough version. 2015-10-16 08:21:28 -07:00
Brian Coca
66c3461f3c now include galaxy/data/ stuff for use with ansible-galaxy 2015-09-01 10:58:58 -04:00
billwanjohi
b2739cec6d add distutils package classifiers
I was particularly interested in the programming language ones,
but the others might be useful to others browsing PyPI.

Now with GPLv3+, and Utilities topic.
2015-07-27 19:33:54 +00:00
James Cammarata
8509f22839 Merge pull request #11731 from danasmera/devel
Delete unused import glob
2015-07-25 02:47:58 -04:00
danasmera
966193e233 Delete unused import glob 2015-07-24 23:57:38 -04:00
James Cammarata
373830b5df Fix removal of .git from modules directories
Also changed the setup.py maintainers email to our default support one.

Fixes #11051
2015-07-13 15:46:09 -04:00
Matt Martz
a0fc8bb0bd Testing additions and fixes
* Fix import pathing for units.mock
* Add some additional requirements
* Use compileall to test compatiblity with different python versions
2015-05-08 13:40:02 -05:00
Jürgen Hermann
597c0f48f5 Generic package_dir mapping in setup.py (closes #10437) 2015-03-12 02:28:33 +01:00
Toshio Kuratomi
9095e97c6a Parenthesis mean we can get rid of line continuation markers 2015-01-26 07:14:08 -08:00
Gilles Pietri
ee448493d7 Make setup.py work with Python 3 (and requiring 2.6) 2015-01-26 14:12:35 +01:00
Michael DeHaan
f80e766d97 Need to include extras in setup to accomodate future windows extras modules 2014-11-29 18:11:10 -05:00
Chris Church
8665f94ecb Make sure Windows modules are installed. 2014-11-28 09:52:39 -05:00
James Laska
a0fecd6101 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
2014-09-29 10:22:15 -04:00
Michael DeHaan
e5116d2f9b changes for package loading of modules 2014-09-26 11:25:56 -04:00
Josh Drake
aa419044c4 WIP on the re-implementation of fact caching and various backends. 2014-08-11 12:23:05 -04:00
James Cammarata
4bf826f514 Include *.ps1 files in the library for installation
Fixes #8490
2014-08-07 11:17:13 -05:00
James Laska
03efbfca29 Correct string concatenation error 2014-07-17 08:57:47 -04:00
Chris Church
3b4adb78cb Add shell_plugins to packages. 2014-06-20 09:36:53 -05:00
Michael DeHaan
56d03fc766 Merge pull request #6994 from tonk/docfix
Fix documentation error
2014-04-29 16:50:00 -04:00
James Cammarata
8e66a6c811 Cleaning up the import testing around setuptools 2014-04-29 14:53:44 -05:00
Ton Kersten
6735733ed1 Fix documentation error 2014-04-15 09:21:41 +02:00
Toshio Kuratomi
e622074812 Prnt error message is unable to use setuptools when building 2014-04-02 13:36:41 -07:00
Toshio Kuratomi
17f134ca02 distutils' requires parameter doesn't work with setuptools. Use
setuptools' instal_requires instead
2014-03-14 12:38:01 -07:00
Toshio Kuratomi
0fefab6651 Require a recent enough version of pycrypto and see that playbook and vault ues it. 2014-03-14 11:55:06 -07:00
Ton Kersten
ad687fcefd Added ansible-vault to the installer 2014-02-21 09:18:49 +01:00
James Cammarata
b73a8efbd9 Tweak library installation path to default to /usr/share/ansible if specified 2014-02-17 14:45:15 -06:00
James Cammarata
79b5ed5331 Merge branch 'patch-1' of https://github.com/eggsby/ansible into eggsby-patch-1 2014-02-17 14:39:28 -06:00
Michael DeHaan
d07a3b5e9b AnsibleWorks -> Ansible 2014-01-28 20:29:42 -05:00
Thomas Omans
4310fc260b bugfix: support path separators in module path
As described by http://docs.ansible.com/intro_configuration.html#library the library supports multiple paths to load modules from. 

Currently `setup.py` treats something like `/usr/share/ansible:/my/custom/modules` as a single directory name and results in the installed modules not being on the module path. (instead they are in a directory named `/usr/share/ansible:/my/custom/modules`) 

This commit simply takes the first listed directory as the install directory for the core modules.
2014-01-14 15:13:56 -08:00
Rene Moser
dc40c406c6 setup.py: fix ansible-galaxy was not installed when using make install 2013-12-20 09:27:13 +01:00
James Tanner
f3a4705a9c Revert "Merge pull request #4874 from leth/editable_install"
This reverts commit 15b89b45e1, reversing
changes made to 3d836a1ab7.
2013-12-16 15:57:03 -05:00
Marcus Cobden
8d98a55df1 Fix setup.py to work with 'pip install -e .' 2013-11-11 14:00:38 +00:00
Michael DeHaan
ad5731b4a8 Add module utils path to setup.py 2013-10-26 15:00:59 -04:00
Ton Kersten
0c2af5d5ec Fix the install destination, now with os.path.join 2013-09-23 14:34:27 +02:00
Ton Kersten
0476272c79 Fix the install destination 2013-09-23 11:30:31 +02:00
Skylar Saveland
50bd14faa9 use DEFAULT_MODULE_PATH in setup.py so that there is a chance to override with ANSIBLE_LIBRARY env variable 2013-09-16 19:08:22 -07:00
Michael DeHaan
4a3b762afe Update URLs and email address in setup.py 2013-08-24 11:25:02 -04:00
Benjamin Schwarze
61e660442c fix package mentioned twice in setup.py 2013-05-15 21:02:53 +02:00
Ton Kersten
17586bafee commit 290ecfcdc2fa6dcbee8328130c85916fdebd5152
Author: Ton Kersten <github@tonkersten.com>
Date:   Mon Apr 29 10:44:30 2013 +0200

    Fixed the installation of library directories

    When running install the `setup.py` give error

    changing mode of /usr/bin/ansible-doc to 755
    running install_data
    error: can't copy './library/utilities': doesn't exist or not a regular file
    make: *** [install] Error 1

    Debugging 'benno' came up with this patch, which works on CentOS 6.4 and
    on Ubuntu.
2013-04-29 10:50:12 +02:00
Jan-Piet Mens
17f31a2a79 CLI: ansible-doc shows lists of modules & module docs on command-line
check path is directory
added manpage & setup
small cleanup
shut up module_formatter in utils to avoid trace print on crud files in library
2012-11-30 21:57:25 -05:00
Jeroen Hoekx
67321a6012 Add ansible.runner.filter_plugins package to setup.py 2012-11-05 15:23:04 +01:00
Daniel Hokka Zakrisson
000d3832cc Make ansible.utils a package 2012-11-02 00:42:37 +01:00
Michael DeHaan
7d7ff9d616 Fixup setup.py path 2012-10-26 20:20:02 -04:00
Michael DeHaan
6ba30170dd Make group_vars and host_vars available to usr/bin/ansible, and make vars_plugins exist 2012-10-26 19:55:59 -04:00
Michael DeHaan
dd3beb844f add lookup plugins to setup.py 2012-10-12 20:07:45 -04:00
Tim Bielawa
baa91ebc95 Add DIST_MODULE_PATH so setup.py and ansible.spec can live in harmony. Closes #1277 2012-10-11 13:22:30 -04:00
Michael DeHaan
95540f40b0 Add package to setup.py 2012-09-07 21:03:59 -04:00
Daniel Hokka Zakrisson
5b49a059ac Install action_plugins 2012-09-08 00:21:56 +02:00
Michael DeHaan
f264f50f17 Update setup.py 2012-08-21 20:38:20 -04:00
Michael DeHaan
d70be9adfe Ship the noop.py callback 2012-08-18 21:38:57 -04:00
Dave Hatton
732cfe6d4f setup.py needs adjusting to ansible.runner.connections so that make rpm works 2012-08-19 10:25:14 +01:00
Michael DeHaan
eee2d1afd0 If ANSIBLE_KEEP_REMOTE_FILES=1 is set as an environment file, remote files will not be deleted, which is useful only for development debugging purposes. 2012-08-16 21:34:55 -04:00
Tim Bielawa
04ff248c62 Include bin/ansible-pull as part of the sdist in distutils. 2012-08-09 10:48:06 -04:00
Michael DeHaan
1c9b43df1b more whitespace 2012-08-06 21:00:21 -04:00
Michael DeHaan
6034b5b0f3 Split connection code into submodules. 2012-05-30 20:16:31 -04:00
Joshua Tacoma
0f7ab7cbf5 Listed python sub-packages in setup.py. 2012-05-28 22:06:38 -04:00
Stefane Fermigier
f7469f8704 Add requirements in setup.py. 2012-04-22 16:33:19 +02:00
Michael DeHaan
9049b0e7ca Because folks on RHEL 6 (not CentOS 6) have some issues with asciidoc, do not build the asciidoc from
the rpm or make install targets.  Also modify the make install (only) to copy over files into the library
directory since the setup.py does not do this (due to a distutils bug, more or less).
2012-03-15 20:21:10 -04:00
Seth Vidal
3567237dbc modify build/spec file to work on el6 with quasi-broken setup process
remove data_files section from setup.py for some reason or another
2012-03-13 11:08:10 -04:00
Tim Bielawa
3f245498c4 Fixup RPM building: Makefile, Spec File, .gitignore
Fixup distutils: setup.py

Clean old cruft: section 5 man pages
2012-03-10 14:22:11 -05:00
Michael DeHaan
209760f8f6 Add manpage for ansible-playbook, since it is a command. More detailed docs will remain on the web site. 2012-03-09 22:06:44 -05:00
Michael DeHaan
742258a078 Drop other man(5) pages so we can have only one source of docs -- ansible.github.com for those operations.
Easier to maintain and much more verbose.
2012-03-08 13:56:27 -05:00
Seth Vidal
47aa018a84 add MANIFEST.in, ansible.spec, modify setup.py for rpm pkg creation 2012-03-05 12:15:24 -05:00
Michael DeHaan
e4304a0ac5 Make sure tempdirs are cleaned up after execution steps, fix notifiers, make sure
service module is installed by setup.py
2012-03-02 22:38:55 -05:00
Michael DeHaan
281f96b8dd merge Seth's ansible-command script with ansible proper, so we can do nice output, one line output,
and treeish saving everywhere.

there are probably some quirks here we'll want to refine further later, for instance, we should
be able to do nicer things with "can't contact host tracebacks".
2012-02-28 03:54:41 -05:00
Michael DeHaan
0356925639 Rename ans-command to ansible-command and ans-playbook to ansible-playbook so my brain
can tab complete better
2012-02-28 22:08:31 -05:00
Michael DeHaan
c6eb3f1006 remove debug statement 2012-02-28 00:49:49 -05:00
Michael DeHaan
0321afb1e3 Minor error handling tweaks (yell if no args) for ansible-command and some minor
style bits (underscores between compound words, use dest always in optparse)
2012-02-28 00:28:43 -05:00
Tim Bielawa
6027c16ddd Update distutils setup script to install the new manual page 2012-02-26 21:04:38 -05:00
Tim Bielawa
d44e0bbb61 Update the python setup script to install the ansible modules man page. 2012-02-26 21:01:04 -05:00
Tim Bielawa
f0b0211772 Because everything should have a man page 2012-02-24 20:07:49 -05:00
Michael DeHaan
3da6370a65 use defaults better, improve/fix setup.py 2012-02-23 21:37:39 -05:00
Michael DeHaan
2c873a4467 Adding setup.py 2012-02-23 21:07:03 -05:00