File: pyproject.toml

package info (click to toggle)
bleak 2.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,076 kB
  • sloc: python: 11,282; makefile: 165; java: 105
file content (101 lines) | stat: -rw-r--r-- 3,651 bytes parent folder | download
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
[project]
name = "bleak"
version = "2.1.1"
description = "Bluetooth Low Energy platform Agnostic Klient"
authors = [{ name = "Henrik Blidh", email = "henrik.blidh@nedomkull.com" }]
license = "MIT"
readme = "README.rst"
requires-python = ">=3.10"
dynamic = ["classifiers", "dependencies"]

[project.urls]
"Homepage"      = "https://github.com/hbldh/bleak"
"Documentation" = "https://bleak.readthedocs.io"
"Changelog"     =  "https://github.com/hbldh/bleak/blob/develop/CHANGELOG.rst"
"Support"       =  "https://github.com/hbldh/bleak/discussions"
"Issues"        =  "https://github.com/hbldh/bleak/issues"

[tool.poetry]
classifiers = [
    "Development Status :: 4 - Beta",
    "Framework :: AsyncIO",
    "Operating System :: Microsoft :: Windows :: Windows 10",
    "Operating System :: POSIX :: Linux",
    "Operating System :: MacOS :: MacOS X",
    "Operating System :: Android",
]

[tool.poetry.dependencies]
async-timeout = { version = ">=3.0.0", python = "<3.11" }
typing-extensions = { version = ">=4.7.0", python = "<3.12" }
pyobjc-core = { version = ">=10.3", markers = "platform_system=='Darwin'" }
pyobjc-framework-CoreBluetooth = { version = ">=10.3", markers = "platform_system=='Darwin'" }
pyobjc-framework-libdispatch = { version = ">=10.3", markers = "platform_system=='Darwin'" }
"winrt-runtime" = { version = ">=3.1", markers = "platform_system=='Windows'" }
"winrt-Windows.Devices.Bluetooth" = { version = ">=3.1", markers = "platform_system=='Windows'" }
"winrt-Windows.Devices.Bluetooth.Advertisement" = { version = ">=3.1", markers = "platform_system=='Windows'" }
"winrt-Windows.Devices.Bluetooth.GenericAttributeProfile" = { version = ">=3.1", markers = "platform_system=='Windows'" }
"winrt-Windows.Devices.Enumeration" = { version = ">=3.1", markers = "platform_system=='Windows'" }
"winrt-Windows.Devices.Radios" = { version = ">=3.1", markers = "platform_system=='Windows'" }
"winrt-Windows.Foundation" = { version = ">=3.1", markers = "platform_system=='Windows'" }
"winrt-Windows.Foundation.Collections" = { version = ">=3.1", markers = "platform_system=='Windows'" }
"winrt-Windows.Storage.Streams" = { version = ">=3.1", markers = "platform_system=='Windows'" }
dbus-fast = { version = ">=1.83.0", markers = "platform_system == 'Linux'" }

[project.optional-dependencies]
pythonista = ["bleak-pythonista>=0.1.1"]

[tool.poetry.group.docs]
optional = true

[tool.poetry.group.docs.dependencies]
Sphinx = { version = ">=8.2.3", python = ">=3.11" }
sphinx-rtd-theme = { version = ">=3.0.2", python = ">=3.11" }

[tool.poetry.group.lint.dependencies]
black = ">=24.3,<25.0"
flake8 = "^7.1.1"
isort = "^5.13.2"

[tool.poetry.group.test.dependencies]
pytest = "^8.2.1"
pytest-asyncio = "^1.2.0"
pytest-cov = "^7.0.0 "
bumble = "^0.0.220"

[build-system]
requires = ["poetry-core>=2.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.isort]
profile = "black"
py_version=310
src_paths = ["bleak", "examples", "tests"]
extend_skip = [".buildozer", "docs"]

[tool.mypy]
python_version = "3.10"
disable_error_code = ["import-not-found"]
exclude = "(.venv|kivy|recipes)/"
mypy_path = "typings"

[tool.pyright]
typeCheckingMode = "strict"
exclude = ["**/.venv/**", "**/kivy/**", "**/recipes/**"]

[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
filterwarnings = [
    "error",
    # There is an issue with coverage binary extensions on Python 3.10 on Linux.
    # Not a big deal, just reduces performance a bit.
    '''ignore:Couldn't import C tracer:coverage.exceptions.CoverageWarning''',
]

addopts = """
--cov=bleak
--cov-branch
--cov-report html
"""