forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use relative path in dev_requirements (Azure#31416)
* Use relative path in dev_requirements * Packaging update of azure-mgmt-servermanager --------- Co-authored-by: Azure SDK Bot <[email protected]>
- Loading branch information
1 parent
e1683f5
commit 07d1063
Showing
7 changed files
with
101 additions
and
56 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
aiohttp==3.8.3 | ||
python-dateutil==2.8.2 | ||
azure-core==1.26.3 | ||
azure-identity==1.12.0 | ||
-e ../../core/azure-core | ||
-e ../../identity/azure-identity | ||
-e ../../../tools/azure-sdk-tools | ||
-e ../../../tools/azure-devtools |
8 changes: 4 additions & 4 deletions
8
sdk/appconfiguration/azure-appconfiguration-provider/dev_requirements.txt
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
-e ../../../tools/azure-devtools | ||
azure-core>=1.24.0 | ||
azure-appconfiguration==1.4.0 | ||
azure-identity | ||
azure-keyvault-secrets | ||
-e ../../core/azure-core | ||
-e ../../appconfiguration/azure-appconfiguration | ||
-e ../../identity/azure-identity | ||
-e ../../keyvault/azure-keyvault-secrets | ||
aiohttp>=3.0 | ||
-e ../../../tools/azure-sdk-tools |
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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
include _meta.json | ||
recursive-include tests *.py *.yaml | ||
recursive-include tests *.py *.json | ||
recursive-include samples *.py *.md | ||
include *.md | ||
include azure/__init__.py | ||
include azure/mgmt/__init__.py | ||
include LICENSE | ||
include azure/mgmt/servermanager/py.typed |
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
2 changes: 1 addition & 1 deletion
2
sdk/servermanager/azure-mgmt-servermanager/dev_requirements.txt
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
-e ../../../tools/azure-sdk-tools | ||
-e ../../../tools/azure-devtools | ||
azure-core | ||
../../core/azure-core | ||
../../identity/azure-identity |
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
#!/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. | ||
#-------------------------------------------------------------------------- | ||
# -------------------------------------------------------------------------- | ||
|
||
import re | ||
import os.path | ||
|
@@ -16,59 +16,68 @@ | |
PACKAGE_PPRINT_NAME = "Server Manager Management" | ||
|
||
# a-b-c => a/b/c | ||
package_folder_path = PACKAGE_NAME.replace('-', '/') | ||
package_folder_path = PACKAGE_NAME.replace("-", "/") | ||
# a-b-c => a.b.c | ||
namespace_name = PACKAGE_NAME.replace('-', '.') | ||
namespace_name = PACKAGE_NAME.replace("-", ".") | ||
|
||
# Version extraction inspired from 'requests' | ||
with open(os.path.join(package_folder_path, 'version.py') | ||
if os.path.exists(os.path.join(package_folder_path, 'version.py')) | ||
else os.path.join(package_folder_path, '_version.py'), 'r') as fd: | ||
version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', | ||
fd.read(), re.MULTILINE).group(1) | ||
with open( | ||
os.path.join(package_folder_path, "version.py") | ||
if os.path.exists(os.path.join(package_folder_path, "version.py")) | ||
else os.path.join(package_folder_path, "_version.py"), | ||
"r", | ||
) as fd: | ||
version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1) | ||
|
||
if not version: | ||
raise RuntimeError('Cannot find version information') | ||
raise RuntimeError("Cannot find version information") | ||
|
||
with open('README.md', encoding='utf-8') as f: | ||
with open("README.md", encoding="utf-8") as f: | ||
readme = f.read() | ||
with open('CHANGELOG.md', encoding='utf-8') as f: | ||
with open("CHANGELOG.md", encoding="utf-8") as f: | ||
changelog = f.read() | ||
|
||
setup( | ||
name=PACKAGE_NAME, | ||
version=version, | ||
description='Microsoft Azure {} Client Library for Python'.format(PACKAGE_PPRINT_NAME), | ||
long_description=readme + '\n\n' + changelog, | ||
long_description_content_type='text/markdown', | ||
license='MIT License', | ||
author='Microsoft Corporation', | ||
author_email='[email protected]', | ||
url='https://github.com/Azure/azure-sdk-for-python', | ||
description="Microsoft Azure {} Client Library for Python".format(PACKAGE_PPRINT_NAME), | ||
long_description=readme + "\n\n" + changelog, | ||
long_description_content_type="text/markdown", | ||
license="MIT License", | ||
author="Microsoft Corporation", | ||
author_email="[email protected]", | ||
url="https://github.com/Azure/azure-sdk-for-python", | ||
keywords="azure, azure sdk", # update with search keywords relevant to the azure service / product | ||
classifiers=[ | ||
'Development Status :: 5 - Production/Stable', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 3 :: Only', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
'License :: OSI Approved :: MIT License', | ||
"Development Status :: 5 - Production/Stable", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"License :: OSI Approved :: MIT License", | ||
], | ||
zip_safe=False, | ||
packages=find_packages(exclude=[ | ||
'tests', | ||
# Exclude packages that will be covered by PEP420 or nspkg | ||
'azure', | ||
'azure.mgmt', | ||
]), | ||
packages=find_packages( | ||
exclude=[ | ||
"tests", | ||
# Exclude packages that will be covered by PEP420 or nspkg | ||
"azure", | ||
"azure.mgmt", | ||
] | ||
), | ||
include_package_data=True, | ||
package_data={ | ||
"pytyped": ["py.typed"], | ||
}, | ||
install_requires=[ | ||
'msrest>=0.6.21', | ||
'azure-common~=1.1', | ||
'azure-mgmt-core>=1.3.0,<2.0.0', | ||
"isodate<1.0.0,>=0.6.1", | ||
"azure-common~=1.1", | ||
"azure-mgmt-core>=1.3.2,<2.0.0", | ||
"typing-extensions>=4.3.0; python_version<'3.8.0'", | ||
], | ||
python_requires=">=3.6" | ||
python_requires=">=3.7", | ||
) |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
-e ../../../tools/azure-sdk-tools | ||
-e ../../../tools/azure-devtools | ||
azure-core | ||
-e ../../core/azure-core |