Skip to content

Commit 4be7965

Browse files
authored
Merge branch 'dev' into feat/retry-handler
2 parents 21fe3b8 + 25d8366 commit 4be7965

File tree

6 files changed

+27
-17
lines changed

6 files changed

+27
-17
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44
name: msgraph-sdk-python-core
55

66
on:
7-
push:
8-
branches: [master]
97
pull_request:
10-
branches: [dev]
8+
branches: [master, dev]
119

1210
jobs:
1311
build:

.pypirc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ index-servers =
55

66
[pypi]
77
repository = https://upload.pypi.org/legacy/
8-
username = msgraphsdkteam # Replace with your PyPI username
8+
username = msgraphsdkteam
99

1010
[testpypi]
1111
repository = https://test.pypi.org/legacy/
12-
username = msgraphsdkteam # Replace with your TestPyPI username
12+
username = msgraphsdkteam-test

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
[![CI Actions Status](https://github.com/microsoftgraph/msgraph-sdk-python-core/workflows/msgraph-sdk-python-core/badge.svg)](https://github.com/microsoftgraph/msgraph-sdk-python-core/actions)
22

3-
## Microsoft Graph Core Python Client Library
3+
## Microsoft Graph Core Python Client Library (preview).
44

55
The Microsoft Graph Core Python client library is a lightweight wrapper around the Microsoft Graph API. It provides functionality to create clients with desired configuration and middleware.
66

7+
**Disclaimer**: Please, be aware that preview versions of `msgraph-core` package are for testing purpose only. Do not use them in a production environment.
8+
79
## Prerequisites
810

911
Python 3.5+ (this library doesn't support older versions of Python)
@@ -15,13 +17,17 @@ The Microsoft Graph Core Python client library is a lightweight wrapper around t
1517
To call Microsoft Graph, your app must acquire an access token from the Microsoft identity platform. Learn more about this -
1618

1719
- [Authentication and authorization basics for Microsoft Graph](https://docs.microsoft.com/en-us/graph/auth/auth-concepts)
18-
- [Register your app with the Microsoft identity platform](https://docs.microsoft.com/en-us/graph/auth/auth-concepts)
20+
- [Register your app with the Microsoft identity platform](https://docs.microsoft.com/en-us/graph/auth-register-app-v2)
1921

2022

2123
### 2. Install the required packages
2224

23-
`pip install msgraph-core`
24-
`pip install azure-identity`
25+
msgraph-core is available on PyPI.
26+
27+
```cmd
28+
python -m pip install msgraph-core
29+
python -m pip install azure-identity
30+
```
2531

2632
### 3. Import modules
2733

@@ -53,15 +59,15 @@ result = client.get('/me')
5359
print(result.json())
5460
```
5561

56-
For more information on how to use the package, refer to the [samples](https://github.com/microsoftgraph/msgraph-sdk-python-core/tree/dev/samples)
62+
For more information on how to use the package, refer to the [samples](https://github.com/microsoftgraph/msgraph-sdk-python-core/tree/dev/samples).
5763

5864
## Issues
5965

6066
View or log issues on the [Issues](https://github.com/microsoftgraph/msgraph-sdk-python-core/issues) tab in the repo.
6167

6268
## Contributing
6369

64-
Please see the [contributing guidelines](CONTRIBUTING.rst)
70+
Please see the [contributing guidelines](CONTRIBUTING.rst).
6571

6672
## Copyright and license
6773

msgraph/__init__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,12 @@
22
# Copyright (c) Microsoft Corporation.
33
# Licensed under the MIT License.
44
# -----------------------------------
5+
6+
# pylint: disable=line-too-long
7+
# This is to allow complete package description on PyPI
8+
"""
9+
Core component of the Microsoft Graph Python SDK consisting of HTTP/Graph Client and a configurable middleware pipeline (Preview).
10+
"""
11+
from .core import SDK_VERSION
12+
13+
__version__ = SDK_VERSION

msgraph/core/_constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
"""
99
DEFAULT_REQUEST_TIMEOUT = 100
1010
DEFAULT_CONNECTION_TIMEOUT = 30
11-
SDK_VERSION = '0.1.0'
11+
SDK_VERSION = '0.1.2'

pyproject.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,9 @@ build-backend = "flit_core.buildapi"
66
module = "msgraph"
77
author = "Microsoft"
88
author-email = "[email protected]"
9-
home-page="https://github.com/microsoftgraph/msgraph-sdk-python-core"
9+
home-page = "https://github.com/microsoftgraph/msgraph-sdk-python-core"
1010
dist-name="msgraph-core"
11-
requires=[
12-
"requests >= 2.23.0",
13-
]
1411
requires-python=">=3.5"
15-
classifiers = ["License :: OSI Approved :: MIT License"]
12+
classifiers = [ "License :: OSI Approved :: MIT License",]
1613
description-file = "README.md"
1714

0 commit comments

Comments
 (0)