|
|
|
|
@ -63,8 +63,6 @@ dependencies = [
|
|
|
|
|
"trio-util >=0.7.0, <0.8.0",
|
|
|
|
|
"trio-websocket >=0.10.3, <0.11.0",
|
|
|
|
|
"typer >=0.9.0, <1.0.0",
|
|
|
|
|
"rapidfuzz >=3.5.2, <4.0.0",
|
|
|
|
|
"pdbp >=1.5.0, <2.0.0",
|
|
|
|
|
"trio >=0.27",
|
|
|
|
|
"pendulum",
|
|
|
|
|
"httpx >=0.27.0, <0.28.0",
|
|
|
|
|
@ -78,23 +76,28 @@ dependencies = [
|
|
|
|
|
"numba>=0.61.0",
|
|
|
|
|
"pyvnc",
|
|
|
|
|
]
|
|
|
|
|
# ------ dependencies ------
|
|
|
|
|
|
|
|
|
|
[project.optional-dependencies]
|
|
|
|
|
|
|
|
|
|
# TODO: add an `--only daemon` group for running non-ui / pikerd
|
|
|
|
|
# service tree in distributed mode B)
|
|
|
|
|
# https://docs.astral.sh/uv/concepts/projects/dependencies/#optional-dependencies
|
|
|
|
|
|
|
|
|
|
[dependency-groups]
|
|
|
|
|
uis = [
|
|
|
|
|
# https://docs.astral.sh/uv/concepts/projects/dependencies/#optional-dependencies
|
|
|
|
|
# TODO: make sure the levenshtein shit compiles on nix..
|
|
|
|
|
# rapidfuzz = {extras = ["speedup"], version = "^0.18.0"}
|
|
|
|
|
"rapidfuzz >=3.2.0, <4.0.0",
|
|
|
|
|
"rapidfuzz >=3.5.2, <4.0.0",
|
|
|
|
|
|
|
|
|
|
# for consideration,
|
|
|
|
|
# - 'visidata'
|
|
|
|
|
|
|
|
|
|
# TODO: add an `--only daemon` group for running non-ui / pikerd
|
|
|
|
|
# service tree in distributed mode B)
|
|
|
|
|
# https://docs.astral.sh/uv/concepts/projects/dependencies/#optional-dependencies
|
|
|
|
|
"qdarkstyle >=3.0.2, <4.0.0",
|
|
|
|
|
"pyqt6 >=6.7.0, <7.0.0",
|
|
|
|
|
"pyqtgraph",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
[dependency-groups]
|
|
|
|
|
# TODO: a toolset that makes debugging a `pikerd` service (tree) easy
|
|
|
|
|
# to hack on directly using more or less the local env:
|
|
|
|
|
# - xonsh + xxh
|
|
|
|
|
@ -103,23 +106,46 @@ uis = [
|
|
|
|
|
#
|
|
|
|
|
# console ehancements and eventually remote debugging extras/helpers.
|
|
|
|
|
# use `uv --dev` to enable
|
|
|
|
|
dev = [
|
|
|
|
|
"pytest",
|
|
|
|
|
"elasticsearch >=8.9.0, <9.0.0",
|
|
|
|
|
"prompt-toolkit ==3.0.40",
|
|
|
|
|
"cython >=3.0.0, <4.0.0",
|
|
|
|
|
repl = [
|
|
|
|
|
# debug
|
|
|
|
|
"pdbp >=1.5.0, <2.0.0",
|
|
|
|
|
"greenback >=1.1.1, <2.0.0",
|
|
|
|
|
"ruff>=0.9.6",
|
|
|
|
|
"pyperclip>=1.9.0",
|
|
|
|
|
"i3ipc>=2.2.1",
|
|
|
|
|
|
|
|
|
|
# ?from git, see below.
|
|
|
|
|
"xonsh",
|
|
|
|
|
"qdarkstyle >=3.0.2, <4.0.0",
|
|
|
|
|
"pyqt6 >=6.7.0, <7.0.0",
|
|
|
|
|
"pyqtgraph",
|
|
|
|
|
"prompt-toolkit ==3.0.40",
|
|
|
|
|
"pyperclip>=1.9.0",
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
testing = [
|
|
|
|
|
"pytest",
|
|
|
|
|
]
|
|
|
|
|
de = [
|
|
|
|
|
# DE-specific
|
|
|
|
|
"i3ipc>=2.2.1",
|
|
|
|
|
]
|
|
|
|
|
dev = [
|
|
|
|
|
# https://docs.astral.sh/uv/concepts/projects/dependencies/#development-dependencies
|
|
|
|
|
"cython >=3.0.0, <4.0.0",
|
|
|
|
|
|
|
|
|
|
# nested deps-groups
|
|
|
|
|
# https://docs.astral.sh/uv/concepts/projects/dependencies/#nesting-groups
|
|
|
|
|
{include-group = 'uis'},
|
|
|
|
|
{include-group = 'repl'},
|
|
|
|
|
{include-group = 'testing'},
|
|
|
|
|
{include-group = 'de'},
|
|
|
|
|
]
|
|
|
|
|
lint = [
|
|
|
|
|
# XXX, with flake.nix needs to be from nixpkgs
|
|
|
|
|
"ruff>=0.9.6"
|
|
|
|
|
#
|
|
|
|
|
# ^TODO? these markers don't work; use deps-flags for now?
|
|
|
|
|
# ; os_name != 'nixos' and platform_system != 'NixOS'",
|
|
|
|
|
# ; defined('IN_NIX_SHELL')",
|
|
|
|
|
]
|
|
|
|
|
dbs = [
|
|
|
|
|
"elasticsearch >=8.9.0, <9.0.0",
|
|
|
|
|
]
|
|
|
|
|
# ------ dependency-groups ------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[tool.pytest.ini_options]
|
|
|
|
|
# https://docs.pytest.org/en/stable/reference/reference.html#configuration-options
|
|
|
|
|
@ -132,24 +158,29 @@ console_output_style = 'progress'
|
|
|
|
|
# https://docs.pytest.org/en/stable/how-to/plugins.html#disabling-plugins-from-autoloading
|
|
|
|
|
# https://docs.pytest.org/en/stable/how-to/plugins.html#deactivating-unregistering-a-plugin-by-name
|
|
|
|
|
addopts = '-p no:xonsh'
|
|
|
|
|
# ------ tool.pytest ------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[project.scripts]
|
|
|
|
|
piker = "piker.cli:cli"
|
|
|
|
|
pikerd = "piker.cli:pikerd"
|
|
|
|
|
ledger = "piker.accounting.cli:ledger"
|
|
|
|
|
# ------ project.scripts ------
|
|
|
|
|
|
|
|
|
|
[tool.hatch.build.targets.sdist]
|
|
|
|
|
include = ["piker"]
|
|
|
|
|
|
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
|
|
|
include = ["piker"]
|
|
|
|
|
# ------ tool.hatch ------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# TODO? move to a `uv.toml`?
|
|
|
|
|
[tool.uv]
|
|
|
|
|
python-preference = 'system'
|
|
|
|
|
python-downloads = 'manual'
|
|
|
|
|
# https://docs.astral.sh/uv/concepts/projects/dependencies/#default-groups
|
|
|
|
|
default-groups = ['uis', 'dev']
|
|
|
|
|
# ------ tool.uv ------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[tool.uv.sources]
|
|
|
|
|
@ -166,3 +197,4 @@ tractor = { git = "https://pikers.dev/goodboy/tractor", branch = "piker_pin" }
|
|
|
|
|
# the runtime being seriously tested here Bp
|
|
|
|
|
# tractor = { path = "../tractor/", editable = true }
|
|
|
|
|
# xonsh = { path = "../xonsh", editable = true }
|
|
|
|
|
# ------ tool.uv.sources ------
|
|
|
|
|
|