Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
343 changes: 343 additions & 0 deletions .azure-pipelines/cd-publish-python.yml

Large diffs are not rendered by default.

20 changes: 9 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,28 +48,27 @@ jobs:
- name: Install dependencies
working-directory: ${{ matrix.library.path }}
run: |
python -m pip install --upgrade poetry
poetry install
pip install -r requirements-dev.txt
- name: Check code format
working-directory: ${{ matrix.library.path }}
run: |
poetry run yapf -dr ${{ matrix.library.name }}
yapf -dr ${{ matrix.library.name }}
- name: Check import order
working-directory: ${{ matrix.library.path }}
run: |
poetry run isort ${{ matrix.library.name }}
isort ${{ matrix.library.name }}
- name: Lint with Pylint
working-directory: ${{ matrix.library.path }}
run: |
poetry run pylint ${{ matrix.library.name }} --disable=W --rcfile=.pylintrc
pylint ${{ matrix.library.name }} --disable=W --rcfile=.pylintrc
- name: Static type checking with Mypy
working-directory: ${{ matrix.library.path }}
run: |
poetry run mypy ${{ matrix.library.name }}
mypy ${{ matrix.library.name }}
- name: Run the tests
working-directory: ${{ matrix.library.path }}
run: |
poetry run pytest
pytest

validation-workflow-with-generated-code:
runs-on: ubuntu-latest
Expand All @@ -87,14 +86,13 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
working-directory: "./tests/validation"
working-directory: "./tests/validation"
run: |
python -m pip install --upgrade poetry
poetry install
pip install -r requirements-dev.txt
- name: Static type checking with Mypy
working-directory: "./tests/validation"
run: |
poetry run mypy validation
mypy validation


# The check-python-version-matrix returns success if all matrix jobs in build are successful; otherwise, it returns a failure.
Expand Down
75 changes: 0 additions & 75 deletions .github/workflows/publish.yml

This file was deleted.

5 changes: 2 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"azure-pipelines.1ESPipelineTemplatesSchemaFile": true,
"python.testing.cwd": ".",
// "python.poetryPath": ".venv/bin/poetry",
// "python.testing.pytestPath": ".venv/bin/pytest",
// "python.analysis.typeCheckingMode": "basic",
"python.testing.pytestArgs": [
"packages/tests",
"packages/abstractions/tests",
Expand All @@ -17,4 +15,5 @@
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": false, // Disable pytest (does not work with poetry yet)
"azure-pipelines.1ESPipelineTemplatesSchemaFile": true
}
47 changes: 19 additions & 28 deletions packages/abstractions/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
requires = ["flit_core>=3.2,<4"]
build-backend = "flit_core.buildapi"

[tool.poetry]
[project]
name = "microsoft-kiota-abstractions"
version = "1.10.2"
description = "Core abstractions for kiota generated libraries in Python"
authors = ["Microsoft <graphtooling+python@microsoft.com>"]
license = "MIT"
authors = [{name = "Microsoft", email = "graphtooling+python@microsoft.com"}]
license = {text = "MIT"}
readme = "README.md"
keywords = ["kiota", "openAPI", "Microsoft", "Graph"]
classifiers = [
Expand All @@ -19,27 +19,22 @@ classifiers = [
"Programming Language :: Python :: 3.14",
"License :: OSI Approved :: MIT License",
]
homepage = "https://github.com/microsoft/kiota#readme"
repository = "https://github.com/microsoft/kiota-python"
documentation = "https://learn.microsoft.com/openapi/kiota/"
packages = [{include = "kiota_abstractions"}]
requires-python = ">=3.10"
dependencies = [
"std-uritemplate>=2.0.0",
"opentelemetry-api>=1.27.0",
"opentelemetry-sdk>=1.27.0",
]

[tool.poetry.dependencies]
python = ">=3.10,<4.0"
std-uritemplate = ">=2.0.0"
opentelemetry-api = ">=1.27.0"
opentelemetry-sdk = ">=1.27.0"
[project.urls]
Homepage = "https://github.com/microsoft/kiota#readme"
Repository = "https://github.com/microsoft/kiota-python"
Documentation = "https://learn.microsoft.com/openapi/kiota/"

[tool.poetry.group.dev.dependencies]
yapf = ">=0.40.2,<0.44.0"
isort = ">=5.13.2,<9.0.0"
pylint = ">=3.2.7,<5.0.0"
mypy = ">=1.11.2,<3.0.0"
pytest = ">=8.3.2,<10.0.0"
pytest-asyncio = ">=0.24,<1.4"
poetry-plugin-mono-repo-deps = ">=0.2.1,<0.4.0"
[tool.flit.module]
name = "kiota_abstractions"

[mypy]
[tool.mypy]
warn_unused_configs = true
files = "kiota_abstractions"

Expand All @@ -50,8 +45,4 @@ each_dict_entry_on_separate_line = true
column_limit = 100

[tool.isort]
profile = "hug"

[tool.poetry-monorepo.deps]
enabled = true
commands = ["build", "export", "publish"]
profile = "hug"
7 changes: 7 additions & 0 deletions packages/abstractions/requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-e .
yapf>=0.40.2,<0.44.0
isort>=5.13.2,<9.0.0
pylint>=3.2.7,<5.0.0
mypy>=1.11.2,<3.0.0
pytest>=8.3.2,<10.0.0
pytest-asyncio>=0.24,<1.4
52 changes: 21 additions & 31 deletions packages/authentication/azure/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
requires = ["flit_core>=3.2,<4"]
build-backend = "flit_core.buildapi"

[tool.poetry]
[project]
name = "microsoft-kiota-authentication-azure"
version = "1.10.2"
description = "Core abstractions for kiota generated libraries in Python"
authors = ["Microsoft <graphtooling+python@microsoft.com>"]
license = "MIT"
authors = [{name = "Microsoft", email = "graphtooling+python@microsoft.com"}]
license = {text = "MIT"}
readme = "README.md"
keywords = ["kiota", "openAPI", "Microsoft", "Graph"]
classifiers = [
Expand All @@ -19,30 +19,24 @@ classifiers = [
"Programming Language :: Python :: 3.14",
"License :: OSI Approved :: MIT License",
]
homepage = "https://github.com/microsoft/kiota#readme"
repository = "https://github.com/microsoft/kiota-python"
documentation = "https://learn.microsoft.com/openapi/kiota/"
packages = [{include = "kiota_authentication_azure"}]
requires-python = ">=3.10"
dependencies = [
"aiohttp>=3.8.0",
"azure-core>=1.21.1",
"microsoft-kiota-abstractions>=1.10.2,<2.0.0",
"opentelemetry-api>=1.27.0",
"opentelemetry-sdk>=1.27.0",
]

[tool.poetry.dependencies]
python = ">=3.10,<4.0"
aiohttp = ">=3.8.0"
azure-core = ">=1.21.1"
microsoft-kiota-abstractions = {path="../../abstractions/", develop=true}
opentelemetry-api = ">=1.27.0"
opentelemetry-sdk = ">=1.27.0"
[project.urls]
Homepage = "https://github.com/microsoft/kiota#readme"
Repository = "https://github.com/microsoft/kiota-python"
Documentation = "https://learn.microsoft.com/openapi/kiota/"

[tool.poetry.group.dev.dependencies]
yapf = ">=0.40.2,<0.44.0"
isort = ">=5.13.2,<9.0.0"
pylint = ">=3.2.7,<5.0.0"
mypy = ">=1.11.2,<3.0.0"
pytest = ">=8.3.2,<10.0.0"
pytest-asyncio = ">=0.24,<1.4"
pytest-mock = "^3.14.0"
poetry-plugin-mono-repo-deps = ">=0.2.1,<0.4.0"
[tool.flit.module]
name = "kiota_authentication_azure"

[mypy]
[tool.mypy]
warn_unused_configs = true
files = "kiota_authentication_azure"

Expand All @@ -53,8 +47,4 @@ each_dict_entry_on_separate_line = true
column_limit = 100

[tool.isort]
profile = "hug"

[tool.poetry-monorepo.deps]
enabled = true
commands = ["build", "export", "publish"]
profile = "hug"
9 changes: 9 additions & 0 deletions packages/authentication/azure/requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-e ../../abstractions
-e .
yapf>=0.40.2,<0.44.0
isort>=5.13.2,<9.0.0
pylint>=3.2.7,<5.0.0
mypy>=1.11.2,<3.0.0
pytest>=8.3.2,<10.0.0
pytest-asyncio>=0.24,<1.4
pytest-mock>=3.14.0,<4.0.0
53 changes: 22 additions & 31 deletions packages/bundle/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
requires = ["flit_core>=3.2,<4"]
build-backend = "flit_core.buildapi"

[tool.poetry]
[project]
name = "microsoft-kiota-bundle"
version = "1.10.2"
description = "Bundle package for kiota generated libraries in Python"
authors = ["Microsoft <graphtooling+python@microsoft.com>"]
license = "MIT"
authors = [{name = "Microsoft", email = "graphtooling+python@microsoft.com"}]
license = {text = "MIT"}
readme = "README.md"
keywords = ["kiota", "openAPI", "Microsoft", "Graph"]
classifiers = [
Expand All @@ -19,30 +19,25 @@ classifiers = [
"Programming Language :: Python :: 3.14",
"License :: OSI Approved :: MIT License",
]
homepage = "https://github.com/microsoft/kiota#readme"
repository = "https://github.com/microsoft/kiota-python"
documentation = "https://learn.microsoft.com/openapi/kiota/"
packages = [{include = "kiota_bundle"}]
requires-python = ">=3.10"
dependencies = [
"microsoft-kiota-abstractions>=1.10.2,<2.0.0",
"microsoft-kiota-http>=1.10.2,<2.0.0",
"microsoft-kiota-serialization-json>=1.10.2,<2.0.0",
"microsoft-kiota-serialization-form>=1.10.2,<2.0.0",
"microsoft-kiota-serialization-text>=1.10.2,<2.0.0",
"microsoft-kiota-serialization-multipart>=1.10.2,<2.0.0",
]

[tool.poetry.dependencies]
python = ">=3.10,<4.0"
microsoft-kiota-abstractions = {path="../../packages/abstractions/", develop=true}
microsoft-kiota-http = {path="../../packages/http/httpx/", develop=true}
microsoft-kiota-serialization-json = {path="../../packages/serialization/json/", develop=true}
microsoft-kiota-serialization-form = {path="../../packages/serialization/form/", develop=true}
microsoft-kiota-serialization-text = {path="../../packages/serialization/text/", develop=true}
microsoft-kiota-serialization-multipart = {path="../../packages/serialization/multipart/", develop=true}
[project.urls]
Homepage = "https://github.com/microsoft/kiota#readme"
Repository = "https://github.com/microsoft/kiota-python"
Documentation = "https://learn.microsoft.com/openapi/kiota/"

[tool.poetry.group.dev.dependencies]
yapf = "^0.40.2"
isort = "^5.13.2"
pylint = "^3.2.7"
mypy = "^1.11.2"
pytest = "^8.3.2"
pytest-asyncio = "^0.24.0"
poetry-plugin-mono-repo-deps = "^0.2.1"
[tool.flit.module]
name = "kiota_bundle"

[mypy]
[tool.mypy]
warn_unused_configs = true
files = "kiota_bundle"

Expand All @@ -53,8 +48,4 @@ each_dict_entry_on_separate_line = true
column_limit = 100

[tool.isort]
profile = "hug"

[tool.poetry-monorepo.deps]
enabled = true
commands = ["build", "export", "publish"]
profile = "hug"
Loading
Loading