-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
133 lines (115 loc) · 3.2 KB
/
pyproject.toml
File metadata and controls
133 lines (115 loc) · 3.2 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
[project]
name = "python-xbox"
description = "A library to authenticate with Xbox Network and use their API"
authors = [
{name = "Manfred Dennerlein Rodelo", email = "manfred@dennerlein.name"},
]
dependencies = [
"cryptography>=42.0",
"httpx>=0.25.1",
"ms_cv>=0.1.1",
"pydantic>=2.12",
]
requires-python = ">=3.11"
readme = "README.md"
license = "MIT"
keywords = ["xbox one live api"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dynamic = ["version"]
[project.urls]
Source = "https://github.com/tr4nt0r/python-xbox"
[project.optional-dependencies]
cli = [
"platformdirs>=4.5.0"
]
[project.scripts]
xbox-authenticate = "pythonxbox.scripts.authenticate:main"
xbox-change-gt = "pythonxbox.scripts.change_gamertag:main"
xbox-friends = "pythonxbox.scripts.friends:main"
xbox-searchlive = "pythonxbox.scripts.search:main"
xbox-xal = "pythonxbox.scripts.xal:main"
[tool.ruff]
line-length = 88
target-version = "py311"
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "UP", "S", "ANN", "C4", "I", "RUF", "SIM", "PLR", "ERA", "RET", "B", "A"]
# select = ["ALL"]
ignore = ["ANN003", "ANN401", "D", "COM"]
[tool.ruff.lint.per-file-ignores]
"**/scripts/*" = ["UP", "S104"]
"tests/*" = ["S101", "PLR2004"]
"src/pythonxbox/authentication/xal.py" = ["S101"]
[tool.ruff.lint.isort]
force-sort-within-sections = true
known-first-party = ["pythonxbox"]
combine-as-imports = true
split-on-trailing-comma = false
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.hatch.version]
source = "regex_commit"
commit_extra_args = ["-e"]
path = "src/pythonxbox/__init__.py"
[tool.hatch.build.targets.sdist]
include = [
"src/pythonxbox",
]
[tool.hatch.build.targets.wheel]
packages = ["src/pythonxbox"]
[tool.hatch.envs.default]
python = "3.13"
dependencies = [
"platformdirs==4.9.6",
"cryptography==46.0.7",
"httpx==0.28.1",
"ms_cv==0.1.1",
"pydantic==2.13.2",
"pytest==9.0.3",
"pytest-asyncio==1.3.0",
"pytest-cov==7.1.0",
"freezegun==1.5.5",
"respx~=0.22",
]
[tool.hatch.envs.hatch-test]
parallel = true
extra-dependencies = [
"pytest-cov~=7.0",
"pytest-asyncio~=1.1",
"respx~=0.22",
"freezegun==1.5.5"
]
extra-args = ["--cov=src/", "--cov-report=term-missing", "--cov-report=xml", "-vv"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
pythonpath = ["src"]
[[tool.hatch.envs.hatch-test.matrix]]
python = ["3.14", "3.13", "3.12", "3.11"]
[tool.hatch.envs.hatch-static-analysis]
dependencies = [
"ruff==0.15.11",
]
config-path = "none"
[tool.hatch.envs.docs]
dependencies = [
"mkdocs-material==9.7.6",
"mkdocstrings[python]==1.0.4",
]
[tool.hatch.envs.docs.scripts]
serve = "mkdocs serve"
build = "mkdocs build"
[build-system]
requires = ["hatchling", "hatch-regex-commit"]
build-backend = "hatchling.build"