-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
132 lines (111 loc) · 2.93 KB
/
pyproject.toml
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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "pymojang"
dynamic = ["version"]
description = "It's a full wrapper arround the Mojang API and Mojang Authentication API"
readme = "README.md"
requires-python = ">=3.8"
license = {text = "MIT"}
keywords = ["minecraft", "mojang", "python3"]
authors = [
{name = "Lucino772", email = "lucapalmi772@gmail.com"},
]
classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
dependencies = [
"requests>=2.31,<2.33",
"validators>=0.31.0,<0.35.0",
"pyjwt[crypto]>=2.8,<2.10",
"msal>=1.28,<1.32",
]
[project.urls]
Homepage = "https://github.com/Lucino772/pymojang"
Documentation = "https://lucino772.github.io/pymojang/"
[tool.towncrier]
name = "PyMojang"
directory = "changes"
package = "mojang"
filename = "CHANGELOG.rst"
title_format = "{name} v{version} ({project_date})"
issue_format = "`#{issue} <https://github.com/Lucino772/pymojang/issues/{issue}>`_"
[tool.pytest.ini_options]
addopts = "--doctest-modules --cov=./ --cov-report=xml ./tests"
[tool.coverage.run]
source_pkgs = ["mojang"]
branch = true
parallel = true
[tool.coverage.paths]
mojang = ["src/mojang", "*/pymojang/src/mojang"]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"@(abc\\.)?abstractmethod",
]
omit = ["tests/*"]
[tool.ruff]
line-length = 88
indent-width = 4
extend-exclude = [ "docs/**.py" ]
[tool.ruff.isort]
known-first-party = ["mojang"]
[tool.hatch]
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "src/mojang/_version.py"
[tool.hatch.build.targets.wheel]
packages = ["src/mojang"]
[tool.hatch.env]
requires = [
"hatch-pip-compile"
]
[tool.hatch.envs.default]
type = "pip-compile"
pip-compile-resolver = "uv"
pip-compile-installer = "uv"
dependencies = [
"towncrier==23.11.0",
]
[tool.hatch.envs.test]
type = "pip-compile"
pip-compile-resolver = "uv"
pip-compile-installer = "uv"
dependencies = [
"pytest",
"pytest-cov",
"responses"
]
[tool.hatch.envs.test.scripts]
run = "pytest {args:tests}"
[[tool.hatch.envs.test.matrix]]
python = ["3.8", "3.9", "3.10", "3.11"]
[tool.hatch.envs.docs]
type = "pip-compile"
pip-compile-resolver = "uv"
pip-compile-installer = "uv"
dependencies = [
"sphinx==7.1.2",
"sphinxext-opengraph==0.9.1",
"sphinx-copybutton==0.5.2",
"sphinx_issues==4.1.0",
"sphinx-autobuild==2021.3.14",
"importlib-metadata==7.1.0",
"furo==2024.5.6"
]
[tool.hatch.envs.docs.scripts]
build = "sphinx-build -b dirhtml docs/ docs/_build/html/"
serve = "sphinx-autobuild -b dirhtml docs/ docs/_build/html/ --open-browser"
[tool.hatch.envs.hatch-static-analysis]
type = "pip-compile"
pip-compile-resolver = "uv"
pip-compile-installer = "uv"