Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
73 lines (66 loc) · 2.11 KB
/
Copy pathpyproject.toml
File metadata and controls
73 lines (66 loc) · 2.11 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "wger-api-client"
version = "2.7.0"
description = "Typed Python client for the wger workout manager REST API"
readme = "README.md"
requires-python = ">=3.11"
license = "Apache-2.0"
license-files = ["LICENSE.txt", "NOTICE"]
authors = [
{ name = "wger team", email = "hello@wger.de" },
]
keywords = ["wger", "fitness", "openapi", "rest", "client"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Typing :: Typed",
]
dependencies = [
"httpx>=0.23,<0.29",
"attrs>=22.2",
]
[project.urls]
Homepage = "https://github.com/wger-project/api-client"
Issues = "https://github.com/wger-project/api-client/issues"
Changelog = "https://github.com/wger-project/api-client/blob/master/CHANGELOG.md"
"wger server" = "https://github.com/wger-project/wger"
[dependency-groups]
dev = [
"pytest>=8",
"openapi-python-client>=0.29",
"ruff>=0.9",
# scripts/patch_generated.py reads the schema. Declared rather than relied on
# through the generator, which happens to pull the same parser in.
"ruamel.yaml>=0.18",
]
[tool.hatch.build.targets.wheel]
packages = ["wger_api_client"]
[tool.hatch.build.targets.sdist]
include = [
"wger_api_client",
"schema",
"scripts",
"tests",
"openapi-config.yml",
"LICENSE.txt",
"NOTICE",
"README.md",
"CHANGELOG.md",
]
[tool.ruff]
# The package is generated, so it is formatted by the generator, not by us.
extend-exclude = ["wger_api_client"]
# Deliberately no line-length or quote-style: the generator runs "ruff format"
# inside the output directory, which walks up and finds this file. Anything set
# here would change the generated code, and scripts/generate.sh --check would
# then depend on whether it generated inside the repo or in a temp directory.
[tool.pytest.ini_options]
testpaths = ["tests"]