Skip to content

vendor(dfm): populate upstream snapshot + add scripts/stoa-dfm fork - #67

Merged
VictorGSchneider merged 2 commits into
mainfrom
claude/create-dfm-vendor-JgxKP
Apr 21, 2026
Merged

VictorGSchneider merged 2 commits into
mainfrom
claude/create-dfm-vendor-JgxKP

Conversation

@VictorGSchneider

@VictorGSchneider VictorGSchneider commented Apr 21, 2026 •

Copy link
Copy Markdown
Owner

Summary

Brings DFM to full parity with the BRCS vendor pattern: a pristine upstream snapshot plus a Stoa fork where customizations can land.

Commit 1 — vendor(dfm): populate upstream snapshot to match brcs pattern

  • Fills scripts/vendor/dfm/ with the full upstream DFM source (63 files: LICENSE, README.md, dfm/main.py, dfm/core/**, dfm/ui/**, etc.). The previous import (vendor: import DFM upstream as sibling of brcs #66) only laid down the directory skeleton and empty __init__.py stubs.
  • Vendor .gitignore intentionally diverges from upstream: keeps Python build artifacts out but does not re-apply upstream's README.md/LICENSE ignores, since the vendor needs those files present as part of the reference snapshot.

Commit 2 — feat(dfm): add scripts/stoa-dfm/ as Stoa fork of vendored DFM

  • Adds scripts/stoa-dfm/ as the customizable fork — analogous to how scripts/stoa-maintain.sh is the Stoa fork of BRCS.sh. Initial state is byte-for-byte identical to upstream.
  • Fork mirrors dfm/ + setup.py + requirements.txt so it's directly installable (pip install ./scripts/stoa-dfm). LICENSE, README.md, and screenshots/ are not duplicated — Stoa ships its own.
  • sync-upstream.sh: dfm's fork column now points to scripts/stoa-dfm, and the diff-summary block grew a directory-fork branch that walks each fork entry and diffs it against the matching vendor path. The existing single-file logic (brcs → stoa-maintain.sh) is untouched.
  • scripts/vendor/README.md: overview table updated; "reference only" paragraph replaced with the new fork relationship section.

Notes

  • CI already skips scripts/vendor/** (see .github/workflows/ci.yml lines 28-42). scripts/stoa-dfm/ is not excluded, but since the initial contents are pristine upstream Python it passes py_compile locally. Stoa-specific edits will be linted going forward.
  • sync-upstream.sh lives under scripts/vendor/ and is therefore also skipped by CI lint; I ran bash -n locally.

Test plan

  • diff -rq DFM/ scripts/vendor/dfm/ → only the expected .gitignore deviation and the missing .git/
  • diff -rq scripts/vendor/dfm/dfm scripts/stoa-dfm/dfm → identical
  • python3 -m py_compile $(find scripts/stoa-dfm -name '*.py') → passes
  • bash -n scripts/vendor/sync-upstream.sh → clean
  • Directory-diff branch of sync-upstream.sh exercised locally against scripts/vendor/dfm vs scripts/stoa-dfm → reports "fork is identical to upstream" as expected
  • Reviewer: spot-check a couple of scripts/vendor/dfm/dfm/** files match upstream main byte-for-byte

https://claude.ai/code/session_01WUjDRqmn1csYKReripLB43

claude added 2 commits April 21, 2026 18:06
The previous import (#66) only laid down the directory skeleton and
empty __init__.py stubs. Mirror the full upstream DFM repo under
scripts/vendor/dfm so the vendor is a pristine snapshot of
VictorGSchneider/DFM@main — matching how scripts/vendor/brcs carries
a verbatim copy of VictorGSchneider/BRCS.sh.

Adds LICENSE, README.md, dfm/main.py, and the full dfm/core and dfm/ui
subpackages. The vendor .gitignore keeps Python build artifacts out but
intentionally does NOT re-apply upstream's README.md/LICENSE ignores —
the vendor needs those files present for reference.

CI already skips scripts/vendor/** so this has no effect on lint/tests;
sync-upstream.sh and scripts/vendor/README.md were wired up in #66 and
don't need further changes.

https://claude.ai/code/session_01WUjDRqmn1csYKReripLB43
Treat DFM the same way as BRCS: scripts/vendor/dfm/ remains the
pristine upstream snapshot, and scripts/stoa-dfm/ is now the Stoa
fork where customizations (palette, banners, default paths, Stoa
integration) can land without touching the vendor.

Initial fork state is byte-for-byte identical to upstream — mirroring
the dfm/ package, setup.py, and requirements.txt so the fork is
directly installable (`pip install ./scripts/stoa-dfm`). LICENSE,
README.md, and screenshots/ are not duplicated; Stoa ships its own.

- sync-upstream.sh: dfm's fork column now points to scripts/stoa-dfm,
  and the diff-summary block grew a directory-fork branch that walks
  each fork entry and diffs against the matching vendor path. The
  existing single-file logic (brcs → stoa-maintain.sh) is untouched.
- scripts/vendor/README.md: replaces the "reference only" paragraph
  with the fork relationship and updates the overview table.

CI already skips scripts/vendor/** and scripts/stoa-dfm/ is pure
upstream python right now, so py_compile passes locally.

https://claude.ai/code/session_01WUjDRqmn1csYKReripLB43
@VictorGSchneider VictorGSchneider changed the title vendor(dfm): populate upstream snapshot to match brcs pattern vendor(dfm): populate upstream snapshot + add scripts/stoa-dfm fork Apr 21, 2026
@VictorGSchneider
VictorGSchneider marked this pull request as ready for review April 21, 2026 18:14
@VictorGSchneider
VictorGSchneider merged commit c91b147 into main Apr 21, 2026
1 check passed
@VictorGSchneider VictorGSchneider self-assigned this Apr 21, 2026
@VictorGSchneider
VictorGSchneider deleted the claude/create-dfm-vendor-JgxKP branch April 21, 2026 18:14
VictorGSchneider added a commit that referenced this pull request Apr 21, 2026
## Summary

The vendor/fork scaffolding for DFM landed in #66/#67 but nothing
actually consumed it: `install.sh` skipped DFM entirely, and
`setup/post-install.sh` still `git clone`d `VictorGSchneider/DFM` into
`~/.local/share/dfm-app` on every run, ignoring `scripts/stoa-dfm/`.
This PR makes the installers finally use the in-tree fork.

## What changed

- **`install.sh`** — installs DFM editable from `scripts/stoa-dfm/` via
`pipx` (preferred, PEP 668 friendly) with a user-local venv fallback.
"Editable" preserves the symlink-style semantics the rest of the repo
relies on: `git pull` on StoaLinux propagates DFM changes to the running
binary without re-running the installer, matching the behaviour called
out in the README.
- **`setup/post-install.sh`** — drops the `git clone
https://github.com/VictorGSchneider/DFM.git` block. `install.sh` is
already invoked from post-install, so DFM gets installed once, from the
fork, via the same path as every other `stoa-*` script. Runtime deps in
`$DFM_PKGS` (python / python-gobject / gtk4 / libadwaita) are unchanged.
- **`scripts/stoa-doctor.sh`** — adds a `_check_bin dfm` entry so a
missing binary shows up in the login doctor report instead of only
surfacing when the user hits `Super+G`.
- **`scripts/stoa-dfm/data/dfm.desktop`** — XDG entry for the fork, so
rofi drun / app grids discover DFM. `install.sh` symlinks it into
`~/.local/share/applications/`.
- **`scripts/vendor/dfm/data/dfm.desktop`** — mirrors the fork so the
vendored upstream snapshot stays aligned with the matching commit on
`VictorGSchneider/DFM@claude/integrate-dfm-stoalinux-U50VJ` (the same
`data/dfm.desktop` file is added there). Next `sync-upstream.sh dfm`
after upstream merges will be a no-op for this path.

## Test plan

- [ ] `bash -n install.sh setup/post-install.sh scripts/stoa-doctor.sh`
(done locally, passes)
- [ ] On a fresh Arch box with `pipx`: `./install.sh` — verify `dfm`
resolves to `~/.local/bin/dfm`, launches GTK4 window, and the `.desktop`
entry shows up in rofi drun.
- [ ] On a box without `pipx` (venv fallback): `./install.sh` — verify
`~/.local/share/dfm-venv/bin/dfm` is created and `~/.local/bin/dfm` is
the symlink target.
- [ ] Re-run `./install.sh` — should be idempotent (pipx `--force`
upgrades, venv re-creates without error).
- [ ] `stoa-doctor` with `dfm` uninstalled — verify the `[FAIL]` entry
appears in `~/.config/stoa/doctor.log` and the dunst notification fires.
- [ ] `Super+G` from Hyprland and i3 sessions.

## Paired change

`VictorGSchneider/DFM` on the same branch name adds the matching
upstream `data/dfm.desktop` so the fork/vendor pair tracks upstream
without drift.

https://claude.ai/code/session_01C9MCwSGnmdcwA55X394WfA
VictorGSchneider added a commit that referenced this pull request May 9, 2026
)

## Summary

Brings DFM to full parity with the BRCS vendor pattern: a pristine
upstream snapshot **plus** a Stoa fork where customizations can land.

**Commit 1 — `vendor(dfm): populate upstream snapshot to match brcs
pattern`**
- Fills `scripts/vendor/dfm/` with the full upstream DFM source (63
files: `LICENSE`, `README.md`, `dfm/main.py`, `dfm/core/**`,
`dfm/ui/**`, etc.). The previous import (#66) only laid down the
directory skeleton and empty `__init__.py` stubs.
- Vendor `.gitignore` intentionally diverges from upstream: keeps Python
build artifacts out but does **not** re-apply upstream's
`README.md`/`LICENSE` ignores, since the vendor needs those files
present as part of the reference snapshot.

**Commit 2 — `feat(dfm): add scripts/stoa-dfm/ as Stoa fork of vendored
DFM`**
- Adds `scripts/stoa-dfm/` as the customizable fork — analogous to how
`scripts/stoa-maintain.sh` is the Stoa fork of `BRCS.sh`. Initial state
is byte-for-byte identical to upstream.
- Fork mirrors `dfm/` + `setup.py` + `requirements.txt` so it's directly
installable (`pip install ./scripts/stoa-dfm`). `LICENSE`, `README.md`,
and `screenshots/` are **not** duplicated — Stoa ships its own.
- `sync-upstream.sh`: `dfm`'s fork column now points to
`scripts/stoa-dfm`, and the diff-summary block grew a directory-fork
branch that walks each fork entry and diffs it against the matching
vendor path. The existing single-file logic (`brcs → stoa-maintain.sh`)
is untouched.
- `scripts/vendor/README.md`: overview table updated; "reference only"
paragraph replaced with the new fork relationship section.

## Notes

- CI already skips `scripts/vendor/**` (see `.github/workflows/ci.yml`
lines 28-42). `scripts/stoa-dfm/` is **not** excluded, but since the
initial contents are pristine upstream Python it passes `py_compile`
locally. Stoa-specific edits will be linted going forward.
- `sync-upstream.sh` lives under `scripts/vendor/` and is therefore also
skipped by CI lint; I ran `bash -n` locally.

## Test plan

- [x] `diff -rq DFM/ scripts/vendor/dfm/` → only the expected
`.gitignore` deviation and the missing `.git/`
- [x] `diff -rq scripts/vendor/dfm/dfm scripts/stoa-dfm/dfm` → identical
- [x] `python3 -m py_compile $(find scripts/stoa-dfm -name '*.py')` →
passes
- [x] `bash -n scripts/vendor/sync-upstream.sh` → clean
- [x] Directory-diff branch of `sync-upstream.sh` exercised locally
against `scripts/vendor/dfm` vs `scripts/stoa-dfm` → reports "fork is
identical to upstream" as expected
- [x] Reviewer: spot-check a couple of `scripts/vendor/dfm/dfm/**` files
match upstream `main` byte-for-byte

https://claude.ai/code/session_01WUjDRqmn1csYKReripLB43
VictorGSchneider pushed a commit that referenced this pull request May 9, 2026
The vendor/fork pattern for DFM was scaffolded in #66/#67 but nothing
actually consumed it — install.sh skipped DFM entirely, and
post-install.sh still git-cloned the upstream repo into
~/.local/share/dfm-app on every run, ignoring scripts/stoa-dfm/.

This makes install.sh (the dotfiles-only entry point) install DFM
editable from scripts/stoa-dfm/ via pipx (PEP 668 friendly), falling
back to a user-local venv. "Editable" keeps the symlink-style
semantics the rest of the repo relies on: `git pull` propagates DFM
changes to the running binary without re-running the installer.

The duplicate clone block in post-install.sh is dropped — it now
delegates to install.sh like every other Stoa script does. The
python/gtk4/libadwaita runtime deps it lists stay put.

stoa-doctor.sh now flags a missing `dfm` binary so broken installs
surface on login instead of only when Super+G is pressed.

A data/dfm.desktop entry is added so rofi drun and app grids pick
DFM up; install.sh symlinks it into ~/.local/share/applications/.
The file lives in scripts/stoa-dfm/data/ (the fork) and is mirrored
into scripts/vendor/dfm/data/ to keep the upstream snapshot aligned
with the matching DFM commit on this branch.

https://claude.ai/code/session_01C9MCwSGnmdcwA55X394WfA
VictorGSchneider added a commit that referenced this pull request May 9, 2026
## Summary

The vendor/fork scaffolding for DFM landed in #66/#67 but nothing
actually consumed it: `install.sh` skipped DFM entirely, and
`setup/post-install.sh` still `git clone`d `VictorGSchneider/DFM` into
`~/.local/share/dfm-app` on every run, ignoring `scripts/stoa-dfm/`.
This PR makes the installers finally use the in-tree fork.

## What changed

- **`install.sh`** — installs DFM editable from `scripts/stoa-dfm/` via
`pipx` (preferred, PEP 668 friendly) with a user-local venv fallback.
"Editable" preserves the symlink-style semantics the rest of the repo
relies on: `git pull` on StoaLinux propagates DFM changes to the running
binary without re-running the installer, matching the behaviour called
out in the README.
- **`setup/post-install.sh`** — drops the `git clone
https://github.com/VictorGSchneider/DFM.git` block. `install.sh` is
already invoked from post-install, so DFM gets installed once, from the
fork, via the same path as every other `stoa-*` script. Runtime deps in
`$DFM_PKGS` (python / python-gobject / gtk4 / libadwaita) are unchanged.
- **`scripts/stoa-doctor.sh`** — adds a `_check_bin dfm` entry so a
missing binary shows up in the login doctor report instead of only
surfacing when the user hits `Super+G`.
- **`scripts/stoa-dfm/data/dfm.desktop`** — XDG entry for the fork, so
rofi drun / app grids discover DFM. `install.sh` symlinks it into
`~/.local/share/applications/`.
- **`scripts/vendor/dfm/data/dfm.desktop`** — mirrors the fork so the
vendored upstream snapshot stays aligned with the matching commit on
`VictorGSchneider/DFM@claude/integrate-dfm-stoalinux-U50VJ` (the same
`data/dfm.desktop` file is added there). Next `sync-upstream.sh dfm`
after upstream merges will be a no-op for this path.

## Test plan

- [ ] `bash -n install.sh setup/post-install.sh scripts/stoa-doctor.sh`
(done locally, passes)
- [ ] On a fresh Arch box with `pipx`: `./install.sh` — verify `dfm`
resolves to `~/.local/bin/dfm`, launches GTK4 window, and the `.desktop`
entry shows up in rofi drun.
- [ ] On a box without `pipx` (venv fallback): `./install.sh` — verify
`~/.local/share/dfm-venv/bin/dfm` is created and `~/.local/bin/dfm` is
the symlink target.
- [ ] Re-run `./install.sh` — should be idempotent (pipx `--force`
upgrades, venv re-creates without error).
- [ ] `stoa-doctor` with `dfm` uninstalled — verify the `[FAIL]` entry
appears in `~/.config/stoa/doctor.log` and the dunst notification fires.
- [ ] `Super+G` from Hyprland and i3 sessions.

## Paired change

`VictorGSchneider/DFM` on the same branch name adds the matching
upstream `data/dfm.desktop` so the fork/vendor pair tracks upstream
without drift.

https://claude.ai/code/session_01C9MCwSGnmdcwA55X394WfA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants