Skip to content

Commit 226c52a

Browse files
committed
Rename CapoToKeys to Capo2Keys across project
1 parent dc5f752 commit 226c52a

12 files changed

Lines changed: 48 additions & 45 deletions

File tree

.github/workflows/desktop-release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Desktop Release
1+
name: Desktop Release
22

33
on:
44
push:
@@ -30,24 +30,24 @@ jobs:
3030
- name: Build executable
3131
shell: powershell
3232
run: |
33-
pyinstaller --noconfirm --onefile --windowed --name CapoToKeys `
33+
pyinstaller --noconfirm --onefile --windowed --name Capo2Keys `
3434
--add-data "templates;templates" `
3535
--add-data "static;static" `
3636
desktop_app.py
3737
3838
- name: Archive artifact
3939
shell: powershell
4040
run: |
41-
Compress-Archive -Path dist\CapoToKeys.exe -DestinationPath dist\CapoToKeys-windows.zip -Force
41+
Compress-Archive -Path dist\Capo2Keys.exe -DestinationPath dist\Capo2Keys-windows.zip -Force
4242
4343
- name: Upload build artifact
4444
uses: actions/upload-artifact@v4
4545
with:
46-
name: CapoToKeys-windows
47-
path: dist/CapoToKeys-windows.zip
46+
name: Capo2Keys-windows
47+
path: dist/Capo2Keys-windows.zip
4848

4949
- name: Attach to GitHub Release
5050
if: startsWith(github.ref, 'refs/tags/v')
5151
uses: softprops/action-gh-release@v2
5252
with:
53-
files: dist/CapoToKeys-windows.zip
53+
files: dist/Capo2Keys-windows.zip

.github/workflows/docker-ghcr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Docker GHCR
1+
name: Docker GHCR
22

33
on:
44
push:
@@ -35,7 +35,7 @@ jobs:
3535
id: meta
3636
uses: docker/metadata-action@v5
3737
with:
38-
images: ghcr.io/reprodev/capotokeys
38+
images: ghcr.io/reprodev/Capo2Keys
3939
tags: |
4040
type=sha,prefix=sha-
4141
type=ref,event=branch

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__pycache__/
1+
__pycache__/
22
*.py[cod]
33
*.pyo
44
*.pyd
@@ -7,8 +7,8 @@
77
.ruff_cache/
88

99
# local generated outputs
10-
appdata/config/capotokeys/outputs/*
11-
!appdata/config/capotokeys/outputs/.gitkeep
10+
appdata/config/Capo2Keys/outputs/*
11+
!appdata/config/Capo2Keys/outputs/.gitkeep
1212

1313
# local test scratch
1414
tests/.tmp/

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# CapoToKeys
1+
# Capo2Keys
22

33
Convert guitar capo chord charts into piano-ready keys while preserving lyrics and chord structure.
44

5-
CapoToKeys provides a Docker-first Flask WebUI, a CLI mode for scripts, and an optional desktop app build from the same codebase.
5+
Capo2Keys provides a Docker-first Flask WebUI, a CLI mode for scripts, and an optional desktop app build from the same codebase.
66

77
## Features
88

@@ -35,7 +35,7 @@ CapoToKeys provides a Docker-first Flask WebUI, a CLI mode for scripts, and an o
3535
docker build -t capo-to-keys:latest -f dockerfile .
3636

3737
docker run -d \
38-
--name capotokeys \
38+
--name Capo2Keys \
3939
-p 4506:4506 \
4040
-v "./data:/data" \
4141
capo-to-keys:latest
@@ -50,12 +50,12 @@ Outputs are written to `/data/outputs` (mapped to your local volume path).
5050
## Pull From GHCR (No Local Build)
5151

5252
```bash
53-
docker pull ghcr.io/reprodev/capotokeys:latest
53+
docker pull ghcr.io/reprodev/Capo2Keys:latest
5454
docker run -d \
55-
--name capotokeys \
55+
--name Capo2Keys \
5656
-p 4506:4506 \
5757
-v "./data:/data" \
58-
ghcr.io/reprodev/capotokeys:latest
58+
ghcr.io/reprodev/Capo2Keys:latest
5959
```
6060

6161
## Quick Start (GHCR + Compose)
@@ -68,7 +68,7 @@ docker compose up -d
6868

6969
Default image reference in that file:
7070

71-
- `ghcr.io/reprodev/capotokeys:latest`
71+
- `ghcr.io/reprodev/Capo2Keys:latest`
7272

7373
If the package is private, authenticate first:
7474

@@ -150,7 +150,7 @@ python desktop_app.py
150150
Build executable:
151151

152152
```bash
153-
pyinstaller --noconfirm --onefile --windowed --name CapoToKeys desktop_app.py
153+
pyinstaller --noconfirm --onefile --windowed --name Capo2Keys desktop_app.py
154154
```
155155

156156
## Development

desktop_app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import os
1+
import os
22
import socket
33
import threading
44
import time
@@ -26,7 +26,7 @@ def _run_server(host: str, port: int):
2626
def main():
2727
if "DATA_DIR" not in os.environ:
2828
repo_root = Path(__file__).resolve().parent
29-
os.environ["DATA_DIR"] = str(repo_root / "appdata" / "config" / "capotokeys")
29+
os.environ["DATA_DIR"] = str(repo_root / "appdata" / "config" / "Capo2Keys")
3030

3131
host = "127.0.0.1"
3232
port = int(os.getenv("DESKTOP_PORT", "4506"))
@@ -42,7 +42,7 @@ def main():
4242
except ImportError as exc:
4343
raise SystemExit("Desktop mode needs pywebview. Install requirements-desktop.txt") from exc
4444

45-
# Let links with target=_blank open in the system browser.`r`n # This ensures file downloads work in desktop executable mode.`r`n webview.settings["OPEN_EXTERNAL_LINKS_IN_BROWSER"] = True`r`n webview.create_window("CapoToKeys", f"http://{host}:{port}", min_size=(960, 700))
45+
# Let links with target=_blank open in the system browser.`r`n # This ensures file downloads work in desktop executable mode.`r`n webview.settings["OPEN_EXTERNAL_LINKS_IN_BROWSER"] = True`r`n webview.create_window("Capo2Keys", f"http://{host}:{port}", min_size=(960, 700))
4646
webview.start()
4747

4848

docker-compose.ghcr.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
services:
2-
capotokeys:
3-
image: ghcr.io/reprodev/capotokeys:latest
4-
container_name: capotokeys
1+
services:
2+
Capo2Keys:
3+
image: ghcr.io/reprodev/capo2keys:latest
4+
container_name: Capo2Keys
55
ports:
66
- "4506:4506"
77
volumes:

docker-compose.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
services:
2-
capotokeys:
3-
image: ghcr.io/reprodev/capotokeys:latest
4-
container_name: capotokeys
1+
services:
2+
Capo2Keys:
3+
build:
4+
context: .
5+
dockerfile: dockerfile
6+
image: capo2keys:local
7+
container_name: capo2keys
58
ports:
69
- "4506:4506"
710
volumes:
811
- ./data:/data
9-
restart: unless-stopped
12+
restart: unless-stopped

docs/GHCR_SETUP.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# GHCR Setup For Docker Compose
1+
# GHCR Setup For Docker Compose
22

33
This project publishes container images to GitHub Container Registry (GHCR).
44

@@ -32,7 +32,7 @@ Tags produced include:
3232
Image path format:
3333

3434
- `ghcr.io/<owner>/<repo>:<tag>`
35-
- For this repo: `ghcr.io/reprodev/capotokeys:<tag>`
35+
- For this repo: `ghcr.io/reprodev/Capo2Keys:<tag>`
3636

3737
## 3) Make Image Pullable From Compose
3838

@@ -57,12 +57,12 @@ docker compose -f docker-compose.ghcr.yml up -d
5757

5858
For non-release testing from `dev`, use:
5959

60-
- `ghcr.io/reprodev/capotokeys:dev`
60+
- `ghcr.io/reprodev/Capo2Keys:dev`
6161

6262
For stable release usage, prefer:
6363

64-
- `ghcr.io/reprodev/capotokeys:v1.0`
65-
- or explicit version tags like `ghcr.io/reprodev/capotokeys:v1.1.0`
64+
- `ghcr.io/reprodev/Capo2Keys:v1.0`
65+
- or explicit version tags like `ghcr.io/reprodev/Capo2Keys:v1.1.0`
6666

6767

6868

entrypoint.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import os
1+
import os
22
import sys
33
import argparse
44
from datetime import datetime
@@ -24,7 +24,7 @@ def prompt_capo() -> int:
2424

2525

2626
def main():
27-
parser = argparse.ArgumentParser(description="CapoToKeys CLI (no LLM)")
27+
parser = argparse.ArgumentParser(description="Capo2Keys CLI (no LLM)")
2828
parser.add_argument("--list", action="store_true", help="List saved outputs")
2929
parser.add_argument("--capo", type=int, help="Capo number (0-11)")
3030
parser.add_argument("--semitones", type=int, help="Transpose by semitones (0-11; overrides capo)")

templates/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
<!doctype html>
1+
<!doctype html>
22
<html lang="en">
33

44
<head>
55
<meta charset="utf-8" />
66
<meta name="viewport" content="width=device-width,initial-scale=1" />
7-
<title>CapoToKeys | Premium Chord Conversion</title>
7+
<title>Capo2Keys | Premium Chord Conversion</title>
88
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
99
</head>
1010

1111
<body>
1212
<div class="container">
1313
<header>
14-
<h2>CapoToKeys</h2>
14+
<h2>Capo2Keys</h2>
1515
<p class="muted">Convert guitar capo chord charts into piano-ready keys with precision and style.</p>
1616
</header>
1717

0 commit comments

Comments
 (0)