Compare commits

..

No commits in common. "b969ef2687286e885eeb37a8872bd96a20cd36bb" and "8338dd7f457aec2db6424ab6c3c5940e462963e9" have entirely different histories.

2 changed files with 24 additions and 60 deletions

View File

@ -38,10 +38,6 @@
bashInteractive bashInteractive
bash-completion bash-completion
# dev utils
ruff
pypkgs.ruff
qt6.qtwayland qt6.qtwayland
qt6.qtbase qt6.qtbase
@ -89,7 +85,7 @@
# - always use the ./py313/ venv-subdir # - always use the ./py313/ venv-subdir
export UV_PROJECT_ENVIRONMENT="py313" export UV_PROJECT_ENVIRONMENT="py313"
# sync project-env with all extras # sync project-env with all extras
uv sync --dev --all-extras --no-group lint uv sync --dev --all-extras
# ------ TIPS ------ # ------ TIPS ------
# NOTE, to launch the py-venv installed `xonsh` (like @goodboy) # NOTE, to launch the py-venv installed `xonsh` (like @goodboy)

View File

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