Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
80 lines (64 loc) · 1.81 KB
/
Copy pathpyproject.toml
File metadata and controls
80 lines (64 loc) · 1.81 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
[build-system]
requires = ["setuptools>=69.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "woffu_client"
version = "0.0.0" # This will be replaced by the CI pipeline
requires-python = ">=3.10,<3.15" #43
description = "Woffu API client with access to several endpoints."
authors = [{name="Marc Palacín Marfil", email="marc.palacin.marfil@gmail.com"}]
readme = "README.md"
license = {text = "MIT"}
dependencies = [
"tzlocal==5.3.1",
"tzdata==2025.2"
]
[project.optional-dependencies]
dev = [
"pytest==8.1.1",
"pytest-cov>=6.0.0",
"pre-commit==4.3.0"
]
gui = ["PyGObject"]
[project.urls]
Homepage = "https://github.com/ProtossGP32/woffu-client"
[project.scripts]
woffu-cli = "woffu_client.cli:main"
woffu-applet = "woffu_client.applet:main"
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
woffu_client = ["icons/*.svg", "icons/*.png", "data/*.desktop"]
[tool.coverage.run]
branch = true
omit = [
# Omit test directory
#"./tests/*"
]
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_also = [
# Don't complain about missing debug-only code:
"def __repr__",
"if self\\.debug",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
# Don't complain about abstract methods, they aren't run:
"@(abc\\.)?abstractmethod",
]
ignore_errors = true
skip_empty = true
[tool.coverage.html]
directory = "coverage_html_report"
[tool.twine]
repository = "pypi"
[tool.twine.repositories.pypi]
repository = "https://upload.pypi.org/legacy/"
#username = "__token__"
#password = "{env:PYPI_API_TOKEN}"