Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
159 lines (153 loc) · 4.46 KB
/
Copy pathpyproject.toml
File metadata and controls
159 lines (153 loc) · 4.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
[build-system]
build-backend = "uv_build"
requires = [ "uv-build>=0.9,<0.13" ]
[project]
name = "office365-rest-python-client"
version = "3.3.0"
description = "Microsoft 365 & Microsoft Graph Library for Python"
readme = "README.md"
license = { file = "LICENSE" }
maintainers = [
{ name = "Domenico Di Nicola", email = "dom.dinicola@gmail.com" },
]
authors = [
{ name = "Vadim Gremyachev", email = "vvgrem@gmail.com" },
]
# With Python 3.10 we get support for "Type | None", instead of Optional[Type]
requires-python = ">=3.8.0"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries",
]
dependencies = [
"msal>=1.28,<2",
"pytz>=2021.1",
"requests>=2.32.4,<3",
"typing-extensions>=4.5",
# The codebase uses "Self" and "Required" available in the typing module
# since Python 3.11. Therefore, typing_extensions is required as long
# as office365-rest-python-client supports Python versions < 3.11.
# On Python versions >= 3.11, typing_extensions re-exports these names
# from the standard library typing module.
]
optional-dependencies.azure = [
"azure-storage-blob>=12.19",
"cryptography>=42",
]
optional-dependencies.duckdb = [
"duckdb>=1",
]
optional-dependencies.examples = [
"faker",
"tqdm>=4.60,<5",
]
optional-dependencies.excel = [
"openpyxl>=3.1",
]
optional-dependencies.httpx = [
"httpx>=0.27,<1",
]
optional-dependencies.notebooks = [
"jinja2",
"jupyter",
"nbformat",
"pandas>=1.3",
]
optional-dependencies.ntlm = [
"requests-ntlm",
]
optional-dependencies.pandas = [
"pandas>=1.5",
]
optional-dependencies.parquet = [
"pyarrow>=14",
]
optional-dependencies.progress = [
"tqdm>=4.60,<5",
]
optional-dependencies.sql = [
"sqlalchemy>=2",
]
urls.funding = "https://ko-fi.com/vgrem"
urls.repository = "https://github.com/vgrem/office365-rest-python-client"
[dependency-groups]
dev = [
"adal~=1.2.4",
"configparser>=5.0.2,<7.3",
"cryptography>=44",
"faker>=4.1.2,<40.42",
"pre-commit>=4",
"pyproject-fmt",
"pyright>=1.1.408",
"pytest",
"pyyaml>=6,<7",
# Ruff is pinned once, here, and installed from this lockfile in CI
# (see .github/workflows/ci.yml), so local hooks and CI cannot drift.
"ruff==0.16.10",
"types-requests",
]
docs = [
"mkdocs~=1.6; python_version>='3.9'",
"mkdocs-awesome-pages-plugin~=2.9; python_version>='3.9'",
"mkdocs-gen-files~=0.5; python_version>='3.9'",
"mkdocs-material~=9.5; python_version>='3.9'",
"mkdocstrings[python]>=0.28,<2; python_version>='3.9'",
"pygments>=2.17; python_version>='3.9'",
]
[tool.uv]
# Resolve/lock only for interpreters we actually develop and test against.
# The package still declares `requires-python >=3.8` (see [project]) so this
# does not change what consumers may install; it only keeps the universal
# lockfile from retaining unpatched pins that can no longer be upgraded on
# EOL interpreters (3.8/3.9). Remove this once requires-python is raised
# (planned for 4.0).
environments = [ "python_full_version >= '3.10'" ]
build-backend.module-name = "office365"
build-backend.module-root = ""
[tool.ruff]
target-version = "py38"
line-length = 121
src = [ "examples", "generator", "office365", "tests" ]
format.line-ending = "lf"
format.docstring-code-format = true
lint.select = [
"A", # flake8-builtins
"ASYNC", # flake8-async
"B", # bugbear
#"D", # pydocstyle
"E", # pycodestyle
"F", # pyflakes
"I", # isort
#"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint
#"PTH", # flake8-pathlib
"PYI", # flake8-pyi
#"RUF", # ruff
#"UP", # pyupgrade
"W", # pycodestyle
]
lint.ignore = [
"B008", # Do not perform function call in argument defaults
"PLC0415", # `import` should be at the top-level of a file (circular import workaround)
]
lint.pylint.max-args = 50
lint.pylint.max-branches = 16
lint.pylint.max-statements = 60
[tool.pyright]
pythonVersion = "3.8"
include = [ "office365" ]
extraPaths = [ ".venv/lib/python3.11/site-packages" ]