-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpyproject.toml
More file actions
130 lines (109 loc) · 3.18 KB
/
pyproject.toml
File metadata and controls
130 lines (109 loc) · 3.18 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
[build-system]
requires = [
"setuptools>=77"
]
build-backend = "setuptools.build_meta"
[project]
name = "graph-onedrive"
dynamic = ["version"]
description = "Perform simple tasks on OneDrive through the Graph API."
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.9"
license = { text = "BSD-3-Clause" }
authors = [
{ name = "Dario Bauer", email = "dariobauer@duck.com" }
]
keywords = ["onedrive", "graph", "microsoft"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"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 :: Only",
"License :: OSI Approved :: BSD License",
]
dependencies = [
"aiofiles",
"httpx",
]
[project.urls]
Homepage = "https://github.com/dariobauer/graph-onedrive"
Documentation = "https://github.com/dariobauer/graph-onedrive/blob/main/docs/DOCUMENTATION.md"
"Issue Tracker" = "https://github.com/dariobauer/graph-onedrive/issues"
Changes = "https://github.com/dariobauer/graph-onedrive/blob/main/CHANGES.md"
"Source Code" = "https://github.com/dariobauer/graph-onedrive"
[project.optional-dependencies]
# Testing dependencies used by Tox
# Note: contributors need to install tox before testing, refer CONTRIBUTING.md
test = [
"covdefaults",
"coverage[toml]",
"pytest",
"pytest-asyncio",
"pyyaml",
"respx",
"toml",
"types-aiofiles",
"types-PyYAML",
"types-toml",
]
[project.scripts]
graph-onedrive = "graph_onedrive._cli:main"
[tool.setuptools]
package-dir = { "" = "src" }
include-package-data = true
license-files = ["LICENSE"]
[tool.setuptools.packages.find]
where = ["src"]
exclude = ["tests*", "testing*", "docs*"]
[tool.setuptools.package-data]
graph_onedrive = ["py.typed"]
# ---- Tooling Configurations ----
[tool.black]
target-version = ["py39", "py310", "py311", "py312", "py313"]
[tool.coverage.run]
plugins = ["covdefaults",]
source = ["graph_onedrive"]
[tool.pytest.ini_options]
minversion = "7.0"
testpaths = ["tests",]
[tool.mypy]
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
disallow_subclassing_any = true
no_implicit_optional = true
strict_equality = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unused_ignores = true
namespace_packages = false
[[tool.mypy.overrides]]
module = [
"testing.*",
"tests.*",
"docs.*"
]
disallow_untyped_defs = false
[tool.tox]
requires = ["tox>=4.0"]
env_list = ["py39", "py310", "py311", "py312", "py313", "style-and-typing"]
skip_missing_interpreters = true
[tool.tox.env_run_base]
setenv = {PYTHONPATH = "{toxinidir}"}
deps = [".[test]"]
commands = [
["coverage", "erase"],
["coverage", "run", "-m", "pytest", "{posargs:tests}"],
["coverage", "report", "--fail-under", "55"],
]
[tool.tox.env.style-and-typing]
skip_install = true
deps = ["pre-commit"]
commands = [["pre-commit", "run", "--all-files"]]