1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/library
Norman J. Harman Jr 19b84d0527 pip module improvements
- Do not silently ignore malformed pip requirements files.
- Properly reports changed when removing packages.
- "latest" i.e. --upgrade is *not* incompatible with requirements files.
- Less branchy, simpler logic.
- Removed pointless variable "initializations", Python doesn't need that.
  Other code simplifications.
- Fun fact; pip install is (kind of) case insensitive, pip freeze is not.
  So, 'sqlalchemy' will be reported as installed by install, but missing
  by freeze.

The perhaps controversial change and the one that led to finding /
fixing above issues...

Instead of adding command parameters 'index', and 'find', and 'mirrors',
and etc.  Added 'extra_args' which are passed onto pip.

The use case for --index-url is having a private pypi repo, like
http://pypi.python.org/pypi/localshop, to which you publish private
packages.  I'm sure most every pip option has a use case for someone.
extra_args handles all those. Can reserve ansible command parameters for
the most common.

Tested with pip 1.1.
2012-12-12 15:40:25 -06:00
..
add_host add add_host action plugin - add hosts to inventory during a playbook 2012-11-09 00:16:17 -05:00
apt DOCUMENTATION strings 2012-11-21 18:49:30 +01:00
apt_repository DOCUMENTATION strings 2012-11-21 18:49:30 +01:00
assemble DOCUMENTATION strings 2012-11-21 18:49:30 +01:00
async_status chmod -x for all module files in source checkout 2012-11-19 13:47:40 -05:00
async_wrapper chmod -x for all module files in source checkout 2012-11-19 13:47:40 -05:00
authorized_key removed env as per project policy 2012-11-27 11:18:46 -05:00
command DOCUMENTATION strings 2012-11-21 18:49:30 +01:00
copy chmod -x for all module files in source checkout 2012-11-19 13:47:40 -05:00
cron DOCUMENTATION strings 2012-11-21 18:49:30 +01:00
debug DOCUMENTATION strings 2012-11-21 18:49:30 +01:00
easy_install chmod -x for all module files in source checkout 2012-11-19 13:47:40 -05:00
ec2 DOCUMENTATION strings 2012-11-21 18:49:30 +01:00
facter chmod -x for all module files in source checkout 2012-11-19 13:47:40 -05:00
fail DOCUMENTATION strings 2012-11-21 18:49:30 +01:00
fetch DOCUMENTATION strings 2012-11-21 18:49:30 +01:00
file module_formatter: re-instate code 2012-11-22 07:23:10 +01:00
fireball DOCUMENTATION strings 2012-11-21 18:49:30 +01:00
get_url DOCUMENTATION strings 2012-11-21 18:49:30 +01:00
git Further refine remote branch tracking in b1ec6e8 2012-12-04 17:02:54 -08:00
group Fix "NameError: global name 'name' is not defined" exception 2012-12-05 18:48:43 +01:00
group_by Add a group_by action plugin. 2012-10-29 13:10:23 +01:00
ini_file ini_file: prohibit section name 'default' 2012-11-27 13:21:48 +01:00
lineinfile DOCUMENTATION strings 2012-11-21 18:49:30 +01:00
mail typo 2012-10-16 14:40:35 +02:00
mount chmod -x for all module files in source checkout 2012-11-19 13:47:40 -05:00
mysql_db DOCUMENTATION strings 2012-11-21 18:49:30 +01:00
mysql_user chmod -x for all module files in source checkout 2012-11-19 13:47:40 -05:00
nagios added support for scheduling downtime for all services on host 2012-12-03 22:40:27 +01:00
ohai DOCUMENTATION strings 2012-11-21 18:49:30 +01:00
pause Reformat code: examples consistently 2012-10-23 15:14:01 +02:00
ping DOCUMENTATION strings 2012-11-21 18:49:30 +01:00
pip pip module improvements 2012-12-12 15:40:25 -06:00
postgresql_db DOCUMENTATION strings 2012-11-21 18:49:30 +01:00
postgresql_user Select all fields from the user, as some of them are version-dependent 2012-12-05 09:51:40 +01:00
raw DOCUMENTATION strings 2012-11-21 18:49:30 +01:00
script DOCUMENTATION strings 2012-11-21 18:49:30 +01:00
seboolean DOCUMENTATION strings 2012-11-21 18:49:30 +01:00
selinux DOCUMENTATION strings 2012-11-21 18:49:30 +01:00
service Use shlex for rc.conf parsing. 2012-11-25 13:09:54 +01:00
setup Streamline code 2012-11-23 10:58:17 -05:00
shell DOCUMENTATION strings 2012-11-21 18:49:30 +01:00
slurp DOCUMENTATION strings 2012-11-21 18:49:30 +01:00
subversion : doesn't work in this documentation. 2012-11-28 10:36:22 +01:00
supervisorctl supervisorctl: document the 'present' option 2012-12-06 13:33:00 -05:00
svr4pkg DOCUMENTATION strings 2012-11-21 18:49:30 +01:00
template chmod -x for all module files in source checkout 2012-11-19 13:47:40 -05:00
user DOCUMENTATION strings 2012-11-21 18:49:30 +01:00
virt chmod -x for all module files in source checkout 2012-11-19 13:47:40 -05:00
wait_for removed env as per project policy 2012-11-27 11:18:46 -05:00
yum if user has manually installed an intermediate version - don't ignore it: issue 1754 2012-12-12 11:52:35 -05:00