forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Azure#8 from lsundaralingam/communication-identity…
…-personal Added root files to identity package
- Loading branch information
Showing
5 changed files
with
113 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
sdk/communication/azure-communication-identity/LICENSE.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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2017 Microsoft | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
7 changes: 7 additions & 0 deletions
7
sdk/communication/azure-communication-identity/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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
-e ../../../tools/azure-sdk-tools | ||
-e ../../../tools/azure-devtools | ||
-e ../../identity/azure-identity | ||
../../core/azure-core | ||
../azure-communication-nspkg | ||
../azure-mgmt-communication | ||
aiohttp>=3.0; python_version >= '3.5' |
7 changes: 7 additions & 0 deletions
7
sdk/communication/azure-communication-identity/sdk_packaging.toml
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,7 @@ | ||
[packaging] | ||
auto_update = false | ||
package_name = "azure-communication-identity" | ||
package_pprint_name = "Communication Service" | ||
package_doc_id = "" | ||
is_stable = false | ||
is_arm = false |
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,76 @@ | ||
from setuptools import setup, find_packages | ||
import os | ||
from io import open | ||
import re | ||
|
||
# example setup.py Feel free to copy the entire "azure-template" folder into a package folder named | ||
# with "azure-<yourpackagename>". Ensure that the below arguments to setup() are updated to reflect | ||
# your package. | ||
|
||
# this setup.py is set up in a specific way to keep the azure* and azure-mgmt-* namespaces WORKING all the way | ||
# up from python 2.7. Reference here: https://github.com/Azure/azure-sdk-for-python/wiki/Azure-packaging | ||
|
||
PACKAGE_NAME = "azure-communication-identity" | ||
PACKAGE_PPRINT_NAME = "Communication Identity Service" | ||
|
||
# a-b-c => a/b/c | ||
package_folder_path = PACKAGE_NAME.replace('-', '/') | ||
# a-b-c => a.b.c | ||
namespace_name = PACKAGE_NAME.replace('-', '.') | ||
|
||
# Version extraction inspired from 'requests' | ||
with open(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') | ||
|
||
with open('README.md', encoding='utf-8') as f: | ||
long_description = f.read() | ||
|
||
setup( | ||
name=PACKAGE_NAME, | ||
version=version, | ||
description='Microsoft Azure {} Client Library for Python'.format(PACKAGE_PPRINT_NAME), | ||
long_description_content_type='text/markdown', | ||
|
||
# ensure that these are updated to reflect the package owners' information | ||
long_description=long_description, | ||
url='https://github.com/Azure/azure-sdk-for-python', | ||
author='Microsoft Corporation', | ||
author_email='[email protected]', | ||
|
||
license='MIT License', | ||
# ensure that the development status reflects the status of your package | ||
classifiers=[ | ||
"Development Status :: 4 - Beta", | ||
|
||
'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', | ||
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: 3.8', | ||
'License :: OSI Approved :: MIT License', | ||
], | ||
packages=find_packages(exclude=[ | ||
'tests', | ||
# Exclude packages that will be covered by PEP420 or nspkg | ||
'azure', | ||
'azure.communication' | ||
]), | ||
install_requires=[ | ||
"msrest>=0.6.0", | ||
"azure-core<2.0.0,>=1.6.0", | ||
], | ||
extras_require={ | ||
":python_version<'3.0'": ['azure-communication-nspkg'], | ||
}, | ||
project_urls={ | ||
'Bug Reports': 'https://github.com/Azure/azure-sdk-for-python/issues', | ||
'Source': 'https://github.com/Azure/azure-sdk-for-python', | ||
} | ||
) |