build: migrate from `setup.py` to `pyproject.toml`

This commit is contained in:
Doctor 2025-03-12 20:53:21 +03:00
parent e818947513
commit a994cd869e
3 changed files with 1618 additions and 0 deletions

3
.gitignore vendored
View File

@ -10,3 +10,6 @@ target.cfg.d
build/
dist/
*.egg-info
# Intellij IDEs
.idea

51
pyproject.toml Normal file
View File

@ -0,0 +1,51 @@
[project]
name = "websockify"
version = "0.13.0"
description = "Websockify."
readme = "README.md"
authors = [
{ name = "Joel Martin", email = "github@martintribe.org" }
]
requires-python = ">=3.6"
dependencies = [
"jwcrypto>=1.5.1",
"numpy>=1.19.0",
"redis>=4.3.0",
"requests>=2.27.0",
]
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
keywords = ["noVNC", "websockify"]
license = { text = "LGPLv3" }
[project.urls]
Repository ="https://github.com/novnc/websockify"
[project.scripts]
websockify = "websockify.websocketproxy:websockify_init"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = [
"websockify",
]
[dependency-groups]
dev = [
"mypy>=0.971",
"ruff>=0.0.17",
]

1564
uv.lock Normal file

File diff suppressed because it is too large Load Diff