mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 03:11:24 -07:00
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
This commit is contained in:
parent
1b9d9376e2
commit
e4cd899363
17 changed files with 151 additions and 51 deletions
11
setup.py
11
setup.py
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue