Implement Edit Feature #28
2 changed files with 19 additions and 21 deletions
|
|
@ -21,6 +21,3 @@ jobs:
|
||||||
|
|
||||||
- name: Test with PyTest
|
- name: Test with PyTest
|
||||||
run: nix develop .#impure --command bash -c "uv run pytest --junit-xml test-report.xml"
|
run: nix develop .#impure --command bash -c "uv run pytest --junit-xml test-report.xml"
|
||||||
|
|
||||||
- name: Check with PyRight
|
|
||||||
run: nix develop .#impure --command bash -c "uv run pyright"
|
|
||||||
|
|
|
||||||
37
flake.nix
37
flake.nix
|
|
@ -88,12 +88,14 @@
|
||||||
# Package a virtual environment as our main application.
|
# Package a virtual environment as our main application.
|
||||||
#
|
#
|
||||||
# Enable no optional dependencies for production build.
|
# Enable no optional dependencies for production build.
|
||||||
packages.x86_64-linux = let
|
packages.x86_64-linux =
|
||||||
streamer = pythonSet.mkVirtualEnv "streamer-env" workspace.deps.default;
|
let
|
||||||
in {
|
streamer = pythonSet.mkVirtualEnv "streamer-env" workspace.deps.default;
|
||||||
inherit streamer;
|
in
|
||||||
default = streamer;
|
{
|
||||||
};
|
inherit streamer;
|
||||||
|
default = streamer;
|
||||||
|
};
|
||||||
|
|
||||||
# Make streamer runnable with `nix run`
|
# Make streamer runnable with `nix run`
|
||||||
apps.x86_64-linux = {
|
apps.x86_64-linux = {
|
||||||
|
|
@ -116,18 +118,17 @@
|
||||||
pre-commit
|
pre-commit
|
||||||
bashInteractive
|
bashInteractive
|
||||||
];
|
];
|
||||||
env =
|
env = {
|
||||||
{
|
# Prevent uv from managing Python downloads
|
||||||
# Prevent uv from managing Python downloads
|
UV_PYTHON_DOWNLOADS = "never";
|
||||||
UV_PYTHON_DOWNLOADS = "never";
|
# Force uv to use nixpkgs Python interpreter
|
||||||
# Force uv to use nixpkgs Python interpreter
|
UV_PYTHON = python.interpreter;
|
||||||
UV_PYTHON = python.interpreter;
|
}
|
||||||
}
|
// lib.optionalAttrs pkgs.stdenv.isLinux {
|
||||||
// lib.optionalAttrs pkgs.stdenv.isLinux {
|
# Python libraries often load native shared objects using dlopen(3).
|
||||||
# Python libraries often load native shared objects using dlopen(3).
|
# Setting LD_LIBRARY_PATH makes the dynamic library loader aware of libraries without using RPATH for lookup.
|
||||||
# Setting LD_LIBRARY_PATH makes the dynamic library loader aware of libraries without using RPATH for lookup.
|
LD_LIBRARY_PATH = lib.makeLibraryPath pkgs.pythonManylinuxPackages.manylinux1;
|
||||||
LD_LIBRARY_PATH = lib.makeLibraryPath pkgs.pythonManylinuxPackages.manylinux1;
|
};
|
||||||
};
|
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
unset PYTHONPATH
|
unset PYTHONPATH
|
||||||
'';
|
'';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue