-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Performance: Stop using pkg_resources/declare_namespace (#2951)
* Performance: fix up namespace * Exclude azure_bdist_wheel.py from flak8 verification * Ignore remaining azure_bdist_wheel.py files from flake8 and stop running pylint on azure-cli-nspkg namespace package * Temporarily fix up flake8 script to exclude the azure_bdist_wheel.py files * Add missing azure_bdist_wheel file for the testsdk * Allow empty __init__.py files and exclude azure_bdist_wheel.py files from check for valid license header * Add azure_bdist_wheel.py files to project file * Bump minor version for all modules * Accidentally bumped the dependency on the azure-nspkg to 3.0.0 or later (which obviously can't be found) * Revert version bump - we'll do that when we release instead. * Partial add of azure-cli-command_modules-nspkg to allow reuse of the same azure_bdist_wheel.py file that the azure sdk is using * - Change things so we use an identical azure_bdist_wheel.py/setup.cfg file as the rest of the azure sdk. This required adding an azure-cli-command_modules-nspkg package since the sdk version uses the name of the package as the path in which to look for/exclude __init__.py files. * Update actual name of src/azure-cli-command_modules-nspkg to azure-cli-command-module-nspkg since that makes setuptools happier. * Stop building sdists * Address code review feedback: - set correct version requirement for azure-cli-nspkg in the command_modules nspkg setup.py - Remove hard-coded dependency on azure cli nspkg from azure cli core and let the bdist_wheel extension added it required.
- Loading branch information
Showing
104 changed files
with
15,866 additions
and
148 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.. :changelog: | ||
Release History | ||
=============== | ||
|
||
* Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include *.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Microsoft Azure CLI Command modules Namespace Package | ||
===================================== | ||
|
||
This is the Microsoft Azure CLI command module namespace package. | ||
|
||
This package is not intended to be installed directly by the end user. | ||
|
||
It provides the necessary files for other packages to extend the azure cli command module namespaces. |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[bdist_wheel] | ||
universal=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/usr/bin/env python | ||
|
||
# -------------------------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for license information. | ||
# -------------------------------------------------------------------------------------------- | ||
|
||
from codecs import open | ||
from setuptools import setup | ||
|
||
VERSION = "2.0.0+dev" | ||
|
||
CLASSIFIERS = [ | ||
'Development Status :: 5 - Production/Stable', | ||
'Intended Audience :: Developers', | ||
'Intended Audience :: System Administrators', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 2', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.4', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
'License :: OSI Approved :: MIT License', | ||
] | ||
|
||
with open('README.rst', 'r', encoding='utf-8') as f: | ||
README = f.read() | ||
with open('HISTORY.rst', 'r', encoding='utf-8') as f: | ||
HISTORY = f.read() | ||
|
||
setup( | ||
name='azure-cli-command-modules-nspkg', | ||
version=VERSION, | ||
description='Microsoft Azure CLI Command Modules Namespace Package', | ||
long_description=README + '\n\n' + HISTORY, | ||
license='MIT', | ||
author='Microsoft Corporation', | ||
author_email='azpycli@microsoft.com', | ||
url='https://github.com/Azure/azure-cli', | ||
zip_safe=False, | ||
classifiers=CLASSIFIERS, | ||
install_requires=[ | ||
'azure-cli-nspkg>=3.0.0' | ||
], | ||
packages=[ | ||
'azure', | ||
'azure.cli', | ||
'azure.cli.command_modules' | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.