-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
108 lines (95 loc) · 2.67 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
[tool.poetry]
name = "philipstv"
version = "0.0.0" # this will be set during build by poetry-dynamic-versioning
description = "CLI and library to control Philips Android-powered TVs."
license = "MIT"
authors = ["Bazyli Cyran <[email protected]>"]
readme = "README.rst"
repository = "https://github.com/bcyran/philipstv"
documentation = "https://philipstv.readthedocs.io"
keywords = ["cli", "tv", "api-wrapper", "philips", "ambilight"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Typing :: Typed"
]
packages = [
{ include = "philipstv", from = "src"}
]
include = [
{ path = "src/philipstv/**/*.py" },
{ path = "src/philipstv/py.typed" },
{ path = "tests/**/*.py", format = "sdist" }
]
[tool.poetry.scripts]
philipstv = "philipstv.__main__:wrapped_cli"
[tool.poetry.dependencies]
python = "^3.9"
requests = "^2.27.1"
pydantic = "^2.4.2"
click = { version = "^8.0.3", optional = true }
appdirs = { version = "^1.4.4", optional = true }
Sphinx = { version = "^7.2.6", optional = true }
furo = { version = "^2024.1.29", optional = true }
enum-tools = {extras = ["sphinx"], version = "^0.12.0", optional = true }
[tool.poetry.extras]
cli = ["click", "appdirs"]
docs = ["sphinx", "furo", "enum-tools"]
[tool.poetry.dev-dependencies]
pytest = "^8.3.3"
black = "^24.10.0"
mypy = "^1.13"
flake8 = "^7.1.1"
isort = "^5.13.2"
tox = "^4.23.2"
types-requests = "^2.32.0"
requests-mock = "^1.12.1"
pytest-cov = "^5.0.0"
types-appdirs = "^1.4.3"
sphinx-autobuild = "^2024.10.3"
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
build-backend = "poetry_dynamic_versioning.backend"
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
style = "semver"
pattern = """(?x)
^(?P<base>\\d+(\\.\\d+)*)
(-?((?P<stage>[a-zA-Z]+)\\.?(?P<revision>\\d+)?))?
(\\+(?P<tagged_metadata>.+))?$
"""
[tool.poetry-dynamic-versioning.substitution]
files = ["src/philipstv/__init__.py"]
[tool.mypy]
strict = true
show_error_codes = true
plugins = [
"pydantic.mypy"
]
[tool.black]
line-length = 100
[tool.isort]
profile = "black"
line_length = 100
[tool.coverage.run]
source = ["philipstv"]
omit = [
"src/philipstv/__main__.py"
]
[tool.coverage.report]
show_missing = true
skip_covered = true
skip_empty = true
exclude_lines = [
"raise NotImplementedError",
"pass"
]