diff options
author | Thomas Stringer <github@trstringer.com> | 2017-08-11 17:22:02 +0200 |
---|---|---|
committer | Matt Davis <nitzmahone@users.noreply.github.com> | 2017-08-11 17:22:02 +0200 |
commit | e4cd89936331be64d0385e36898cf735767fc89b (patch) | |
tree | e1104f59f935987da41e99ca818e4dcc9043484f /setup.py | |
parent | Refactor E-Series Hosts module to use module_utils (#20893) (diff) | |
download | ansible-e4cd89936331be64d0385e36898cf735767fc89b.tar.xz ansible-e4cd89936331be64d0385e36898cf735767fc89b.zip |
Add support for Azure 2.0.0 (#27920)
* Adapt azure_rm_resource_group to azure 2.0.0 + azure Cli support
* Fix exceptions in Azure ARM plugins
* update azure_rm_networkinterface documention to reflect required params
* change state param to not required for docs in azure_rm_subnet
* fix import to reflect azure==2.0.0 changes
* add aliases and fix docs for azure_rm_storageblob
* add resource_group_name alias to azure_rm_storageaccount_facts
* fix import bug due to change in azure==2.0.0
* fix args bug and enum modules issue
* update docs to reflect azure==2.0.0
* pin management clients to a specific api_version
* update docs to reflect the new azure-ansible-base python package
* add fallback for older api resource group listing
* rework azure dependencies installation
* refactor path joining to a cross-plat solution
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -2,6 +2,7 @@ import json import os import os.path +import re import sys from collections import defaultdict from distutils.command.build_scripts import build_scripts as BuildScripts @@ -147,6 +148,15 @@ if crypto_backend: install_requirements = [r for r in install_requirements if not (r.lower().startswith('pycrypto') or r.lower().startswith('cryptography'))] install_requirements.append(crypto_backend) +# specify any extra requirements for installation +extra_requirements = dict() +extra_requirements_dir = 'packaging/requirements' +for extra_requirements_filename in os.listdir(extra_requirements_dir): + filename_match = re.search(r'^requirements-(\w*).txt$', extra_requirements_filename) + if filename_match: + with open(os.path.join(extra_requirements_dir, extra_requirements_filename)) as extra_requirements_file: + extra_requirements[filename_match.group(1)] = extra_requirements_file.read().splitlines() + setup( # Use the distutils SDist so that symlinks are not expanded @@ -210,4 +220,5 @@ setup( 'bin/ansible-vault', ], data_files=[], + extras_require=extra_requirements ) |