2022-10-28 16:57:06 +01:00
|
|
|
[build-system]
|
|
|
|
requires = ["hatchling"]
|
|
|
|
build-backend = "hatchling.build"
|
|
|
|
|
|
|
|
[project]
|
|
|
|
name = "obsws-python"
|
|
|
|
dynamic = ["version"]
|
|
|
|
description = "A Python SDK for OBS Studio WebSocket v5.0"
|
|
|
|
readme = "README.md"
|
2025-01-25 20:34:27 +00:00
|
|
|
license = { text = "GPL-3.0-only" }
|
2022-12-05 16:49:17 +00:00
|
|
|
requires-python = ">=3.9"
|
2022-10-28 16:57:06 +01:00
|
|
|
authors = [
|
|
|
|
{ name = "Adem Atikturk", email = "aatikturk@gmail.com" },
|
|
|
|
]
|
|
|
|
dependencies = [
|
|
|
|
"tomli >= 2.0.1;python_version < '3.11'",
|
|
|
|
"websocket-client",
|
|
|
|
]
|
|
|
|
|
|
|
|
[project.urls]
|
|
|
|
Homepage = "https://github.com/aatikturk/obsws-python"
|
|
|
|
|
|
|
|
[tool.hatch.version]
|
|
|
|
path = "obsws_python/version.py"
|
|
|
|
|
|
|
|
[tool.hatch.build.targets.sdist]
|
|
|
|
include = [
|
|
|
|
"/obsws_python",
|
|
|
|
]
|
|
|
|
|
2025-02-11 09:51:00 +00:00
|
|
|
[tool.hatch.envs.default]
|
|
|
|
dependencies = ["pre-commit"]
|
|
|
|
|
|
|
|
[tool.hatch.envs.e]
|
|
|
|
dependencies = ["keyboard"]
|
|
|
|
|
2022-10-28 16:57:06 +01:00
|
|
|
[tool.hatch.envs.e.scripts]
|
2022-12-05 16:49:17 +00:00
|
|
|
events = "python {root}\\examples\\events\\."
|
|
|
|
hotkeys = "python {root}\\examples\\hotkeys\\."
|
|
|
|
levels = "python {root}\\examples\\levels\\."
|
|
|
|
scene_rotate = "python {root}\\examples\\scene_rotate\\."
|
|
|
|
|
2025-02-11 09:51:00 +00:00
|
|
|
[tool.hatch.envs.hatch-test]
|
|
|
|
randomize = true
|
|
|
|
|
|
|
|
[tool.hatch.envs.hatch-test.scripts]
|
|
|
|
run = "pytest{env:HATCH_TEST_ARGS:} {args}"
|
|
|
|
|
|
|
|
[[tool.hatch.envs.hatch-test.matrix]]
|
|
|
|
python = ["313", "312", "311", "310", "39"]
|
|
|
|
|
|
|
|
[tool.hatch.envs.style]
|
|
|
|
detached = true
|
2022-12-05 16:49:17 +00:00
|
|
|
dependencies = [
|
2025-02-11 09:51:00 +00:00
|
|
|
"black",
|
|
|
|
"isort",
|
|
|
|
]
|
|
|
|
|
|
|
|
[tool.hatch.envs.style.scripts]
|
|
|
|
check = [
|
|
|
|
"black --check --diff .",
|
|
|
|
"isort --check-only --diff .",
|
|
|
|
]
|
|
|
|
fmt = [
|
|
|
|
"isort .",
|
|
|
|
"black .",
|
2022-12-05 16:49:17 +00:00
|
|
|
]
|
|
|
|
|
2025-02-11 09:51:00 +00:00
|
|
|
[tool.black]
|
|
|
|
line-length = 88
|
|
|
|
include = '\.pyi?$'
|
|
|
|
# 'extend-exclude' excludes files or directories in addition to the defaults
|
|
|
|
extend-exclude = '''
|
|
|
|
(
|
|
|
|
^/\.git/ # exclude all files in the .git directory
|
|
|
|
^/\.hatch/ # exclude all files in the .hatch directory
|
|
|
|
^/\.pytest_cache/ # exclude all files in the .pytest_cache directory
|
|
|
|
| .*_pb2.py # exclude autogenerated Protocol Buffer files anywhere in the project
|
|
|
|
)
|
|
|
|
'''
|
2022-12-05 16:49:17 +00:00
|
|
|
|
2025-02-11 09:51:00 +00:00
|
|
|
[tool.isort]
|
|
|
|
profile = "black"
|
|
|
|
skip = [".gitignore", ".dockerignore"]
|
|
|
|
skip_glob = [".git/*", ".hatch/*", ".pytest_cache/*"]
|