Repository navigation
feat: Uv install - #1566
Open
jstucke wants to merge 4 commits into
Open
feat: Uv install#1566jstucke wants to merge 4 commits into
jstucke wants to merge 4 commits into
Conversation
…installer.py and binwalk/install.py Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…th uv Declare FACT's Python dependencies in pyproject.toml, alongside the existing requirements files: - core dependencies (needed by the installer and all components) as project dependencies - component-specific ones as dependency groups (frontend, backend, test, lint; dev includes all of them) - every analysis plugin as a uv workspace member with its own pyproject.toml listing the plugin's dependencies uv.lock pins the resolved versions. version.py now reads the version from pyproject.toml, so it is only maintained in one place. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The installer installs FACT's Python dependencies from uv.lock into a venv instead of pip-installing requirements files: - pre_install.sh installs uv (if missing) and the core dependencies. It uses the active venv or creates .venv in the repository root. - the installer components sync their dependency groups (frontend, backend) and the plugin dependencies (workspace members) into the venv of the running installer. The syncs are additive, so installing one component does not remove the dependencies of another one. - installing outside a venv is no longer supported. Removes all requirements files, the pip helpers, the pip-specific steps (pip bootstrap, flask-security uninstall, binwalk pip build; binwalk is a plugin dependency now) and pre_install_fedora.sh. Third-party plugins need a pyproject.toml for their Python dependencies (and an updated uv.lock). The shutdown signal handler identifies FACT's main process by its PID instead of the process group, so that FACT also shuts down when it is not started as a process group leader (e.g. with `uv run`). Updates the build CI and the documentation (INSTALL.md, README.md, AGENTS.md) accordingly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Move the documentation dependencies from docsrc/doc_dependencies.txt to the docs dependency group in pyproject.toml. The docs workflows install them with astral-sh/setup-uv and build the docs with uv run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1566 +/- ##
==========================================
- Coverage 93.13% 92.54% -0.60%
==========================================
Files 377 370 -7
Lines 23829 21310 -2519
==========================================
- Hits 22193 19721 -2472
+ Misses 1636 1589 -47 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pyproject.tomland uv instead ofrequirements.txtand pippyproject.tomlinstead of arequirements.txt