Skip to content

Commit b547c99

Browse files
committed
Provides setup.py
1 parent d702d86 commit b547c99

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

setup.py

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
#!/usr/bin/env python
2+
#------------------------------------------------------------------------------
3+
#
4+
# Copyright (c) Microsoft Corporation.
5+
# All rights reserved.
6+
#
7+
# This code is licensed under the MIT License.
8+
#
9+
# Permission is hereby granted, free of charge, to any person obtaining a copy
10+
# of this software and associated documentation files(the "Software"), to deal
11+
# in the Software without restriction, including without limitation the rights
12+
# to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
13+
# copies of the Software, and to permit persons to whom the Software is
14+
# furnished to do so, subject to the following conditions :
15+
#
16+
# The above copyright notice and this permission notice shall be included in
17+
# all copies or substantial portions of the Software.
18+
#
19+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
22+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25+
# THE SOFTWARE.
26+
#
27+
#------------------------------------------------------------------------------
28+
29+
from setuptools import setup
30+
import re, io
31+
32+
# setup.py shall not import main package
33+
__version__ = re.search(
34+
r'__version__\s*=\s*[\'"]([^\'"]*)[\'"]', # It excludes inline comment too
35+
io.open('msal/application.py', encoding='utf_8_sig').read()
36+
).group(1)
37+
38+
setup(
39+
name='msal',
40+
version=__version__,
41+
description=(
42+
'The MSAL for Python library makes it easy for python application '
43+
'to authenticate to Azure Active Directory v2 '
44+
'(which serves Microsoft Account and AAD and B2C).'),
45+
license='MIT',
46+
author='Microsoft Corporation',
47+
author_email='[email protected]',
48+
url='https://github.com/AzureAD/microsoft-authentication-library-for-python',
49+
classifiers=[
50+
'Development Status :: 3 - Alpha',
51+
'Programming Language :: Python',
52+
'Programming Language :: Python :: 2',
53+
'Programming Language :: Python :: 2.7',
54+
'Programming Language :: Python :: 3',
55+
'Programming Language :: Python :: 3.3',
56+
'Programming Language :: Python :: 3.4',
57+
'Programming Language :: Python :: 3.5',
58+
'Programming Language :: Python :: 3.6',
59+
'Programming Language :: Python :: 3.7',
60+
'License :: OSI Approved :: MIT License',
61+
],
62+
packages=['msal'],
63+
install_requires=[
64+
'requests>=2.0.0',
65+
'PyJWT[crypto]>=1.0.0',
66+
]
67+
)
68+

0 commit comments

Comments
 (0)