Switch to "uv" for package and project management. Currently the pdm backend is still used to perform the build due to its built-in scm versioning and flexible build hooks. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
94 lines
2.6 KiB
TOML
94 lines
2.6 KiB
TOML
[project]
|
|
name = "moonraker"
|
|
dynamic = ["version"]
|
|
description = "API Server for Klipper"
|
|
authors = [
|
|
{name = "Eric Callahan", email = "arksine.code@gmail.com"},
|
|
]
|
|
dependencies = [
|
|
"tornado>=6.2.0, <=6.5.4",
|
|
"pyserial==3.4",
|
|
"pillow>=9.5.0, <=12.1.0",
|
|
"streaming-form-data>=1.11.0, <=1.19.1",
|
|
"distro==1.9.0",
|
|
"inotify-simple==2.0.1",
|
|
"libnacl==2.1.0",
|
|
"paho-mqtt==2.1.0",
|
|
"zeroconf>=0.131.0, <=0.148.0",
|
|
"preprocess-cancellation==0.2.1",
|
|
"jinja2==3.1.6",
|
|
"dbus-fast>=2.21.3, <=3.1.2",
|
|
"apprise>=1.9.3, <=1.9.6",
|
|
"ldap3==2.9.1",
|
|
"python-periphery==2.4.1",
|
|
"importlib_metadata>=6.7.0, <=8.7.1"
|
|
]
|
|
requires-python = ">=3.7"
|
|
readme = "README.md"
|
|
license = {text = "GPL-3.0-only"}
|
|
keywords = ["klipper", "3D printing", "server", "moonraker"]
|
|
classifiers = [
|
|
"Development Status :: 4 - Beta",
|
|
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
|
|
"Programming Language :: Python :: 3",
|
|
"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",
|
|
"Programming Language :: Python :: 3.13",
|
|
"Programming Language :: Python :: 3.14"
|
|
]
|
|
|
|
[project.urls]
|
|
homepage = "https://github.com/Arksine/moonraker"
|
|
repository = "https://github.com/Arksine/moonraker"
|
|
documentation = "https://moonraker.readthedocs.io"
|
|
changelog = "https://moonraker.readthedocs.io/en/latest/changelog/"
|
|
|
|
[dependency-groups]
|
|
dev = ["pre-commit", "mypy", "ruff", "build"]
|
|
docs = [
|
|
"mkdocs-material==9.5.50",
|
|
"pymdown-extensions~=10.14.1",
|
|
"compact_tables",
|
|
"pymdown_extras"
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
msgspec = ["msgspec>=0.18.4 ; python_version>='3.8'"]
|
|
uvloop = ["uvloop>=0.17.0"]
|
|
speedups = [
|
|
"msgspec>=0.18.4 ; python_version>='3.8'",
|
|
"uvloop>=0.17.0"
|
|
]
|
|
|
|
[tool.uv]
|
|
extra-build-variables = { zeroconf = { SKIP_CYTHON = "1" } }
|
|
|
|
[tool.uv.sources]
|
|
compact_tables = { git = "https://github.com/Arksine/markdown-compact-tables", tag = "v1.1.0" }
|
|
pymdown_extras = { path = "./docs/pymdown-extras" }
|
|
|
|
[tool.uv.dependency-groups]
|
|
docs = {requires-python = ">=3.9"}
|
|
|
|
[tool.pdm.version]
|
|
source = "scm"
|
|
write_to = "moonraker/__version__.py"
|
|
write_template = "__version__ = '{}'\n"
|
|
|
|
[tool.pdm.build]
|
|
excludes = ["./**/.git", "moonraker/moonraker.py"]
|
|
includes = ["moonraker"]
|
|
editable-backend = "path"
|
|
custom-hook = "pdm_build.py"
|
|
|
|
[project.scripts]
|
|
moonraker = "moonraker.server:main"
|
|
|
|
[build-system]
|
|
requires = ["pdm-backend<=2.4.7"]
|
|
build-backend = "pdm.backend"
|