-
-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathpyproject.toml
More file actions
115 lines (105 loc) · 2.7 KB
/
Copy pathpyproject.toml
File metadata and controls
115 lines (105 loc) · 2.7 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
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
109
110
111
112
113
114
115
[project]
name = "wslink"
version = "2.5.7"
authors = [
{ name = "Aron Helser", email = "Aron.helser@kitware.com" },
{ name = "Scott Wittenburg", email = "scott.wittenburg@kitware.com" },
{ name = "Alessandro Genova", email = "alessandro.genova@kitware.com" },
{ name = "Sebastien Jourdain", email = "sebastien.jourdain@kitware.com" },
]
description = "Python/JavaScript library for communicating over WebSocket"
readme = "README.md"
requires-python = ">=3.10"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering",
]
dependencies = [
"aiohttp<4",
"msgpack>=1,<2",
]
[project.optional-dependencies]
ssl = [
"cryptography",
]
build = ["uv>=0.10.7,<0.12.0"]
[dependency-groups]
test = [
"pytest >=6",
"pytest-asyncio",
"pytest-cov >=3",
]
dev = [
"pytest >=6",
"pytest-asyncio",
"pytest-cov >=3",
"pre-commit",
"ruff",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build]
include = [
"/src/wslink/**/*.py",
]
[tool.hatch.build.targets.wheel]
packages = ["src/wslink"]
[tool.ruff]
[tool.ruff.lint]
extend-select = [
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"EM", # flake8-errmsg
"EXE", # flake8-executable
"G", # flake8-logging-format
"I", # isort
"ICN", # flake8-import-conventions
"NPY", # NumPy specific rules
"PD", # pandas-vet
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"RET", # flake8-return
"RUF", # Ruff-specific
"SIM", # flake8-simplify
"T20", # flake8-print
"UP", # pyupgrade
"YTT", # flake8-2020
]
ignore = [
"PLR09", # Too many <...>
"PLR2004", # Magic value used in comparison
"ISC001", # Conflicts with formatter
]
isort.required-imports = []
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["T20", "PT", "RUF059", "PLC0415"]
"examples/**" = ["T20"]
"src/wslink/launcher.py" = ["T20"]
[tool.semantic_release]
version_toml = [
"pyproject.toml:project.version",
]
version_variables = [
"src/wslink/__init__.py:__version__",
"js-lib/package.json:version",
]
build_command = """
python -m pip install -e '.[build]'
uv lock --upgrade-package "$PACKAGE_NAME"
git add uv.lock
uv build
"""
[tool.semantic_release.publish]
dist_glob_patterns = ["dist/*"]
upload_to_vcs_release = true