codestrain 0.1.1__tar.gz → 0.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,80 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+
8
+ jobs:
9
+ build:
10
+ name: Build distributions
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Checkout
14
+ uses: actions/checkout@v4
15
+
16
+ - name: Set up Python
17
+ uses: actions/setup-python@v5
18
+ with:
19
+ python-version: "3.12"
20
+
21
+ - name: Install build tooling
22
+ run: python -m pip install --upgrade build
23
+
24
+ - name: Build sdist and wheel
25
+ working-directory: .
26
+ run: python -m build
27
+
28
+ - name: Upload distributions
29
+ uses: actions/upload-artifact@v4
30
+ with:
31
+ name: dist
32
+ path: dist/
33
+
34
+ publish:
35
+ name: Publish to PyPI
36
+ needs: build
37
+ runs-on: ubuntu-latest
38
+ environment: pypi
39
+ permissions:
40
+ id-token: write
41
+ steps:
42
+ - name: Download distributions
43
+ uses: actions/download-artifact@v4
44
+ with:
45
+ name: dist
46
+ path: dist/
47
+
48
+ - name: Publish to PyPI via Trusted Publisher
49
+ uses: pypa/gh-action-pypi-publish@release/v1
50
+
51
+ bump-homebrew:
52
+ name: Bump Homebrew Formula
53
+ needs: publish
54
+ runs-on: ubuntu-latest
55
+ if: ${{ !contains(github.ref_name, 'rc') && !contains(github.ref_name, 'a') && !contains(github.ref_name, 'b') }}
56
+ steps:
57
+ # Wait briefly so the new sdist is queryable on PyPI's CDN.
58
+ - name: Wait for PyPI propagation
59
+ run: sleep 30
60
+
61
+ - name: Open PR against codestrain/homebrew-tap
62
+ uses: mislav/bump-homebrew-formula-action@v3
63
+ with:
64
+ formula-name: codestrain
65
+ formula-path: Formula/codestrain.rb
66
+ homebrew-tap: codestrain/homebrew-tap
67
+ base-branch: main
68
+ # Compute download URL from the just-published PyPI sdist.
69
+ # mislav/bump-homebrew-formula-action auto-strips `v` prefix from
70
+ # github.ref_name, so v0.1.2 → 0.1.2 in the URL.
71
+ download-url: https://files.pythonhosted.org/packages/source/c/codestrain/codestrain-${{ github.ref_name }}.tar.gz
72
+ commit-message: |
73
+ codestrain {{version}}
74
+
75
+ Auto-bumped by mislav/bump-homebrew-formula-action.
76
+ Source: https://github.com/codestrain/codestrain-cli/releases/tag/${{ github.ref_name }}
77
+ env:
78
+ # Fine-grained PAT with `Contents: write` on codestrain/homebrew-tap.
79
+ # Stored as a repo secret in codestrain/codestrain-cli.
80
+ COMMITTER_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: codestrain
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Your AI coding recovery score, from the terminal.
5
5
  Project-URL: Homepage, https://codestrain.dev
6
6
  Project-URL: Repository, https://github.com/codestrain/codestrain-cli
@@ -42,25 +42,33 @@ CodeStrain parses the Claude Code JSONL session logs already on your disk (`~/.c
42
42
 
43
43
  ## Install
44
44
 
45
- The CLI is a single command, but `pip install codestrain` alone often leaves the binary off your `$PATH` (macOS / many Linuxes ship Python under PEP 668). Use **pipx** or **uv** — they put the command on `$PATH` and isolate the env:
45
+ The CLI is a single command. Pick the install path your machine prefers all three put `codestrain` on your `$PATH`:
46
46
 
47
47
  ```bash
48
- # pipx — recommended for global use
48
+ # macOS — recommended (Homebrew)
49
+ brew install codestrain/tap/codestrain
50
+ codestrain --help
51
+ ```
52
+
53
+ ```bash
54
+ # any OS — pipx, isolated venv + symlink on PATH
49
55
  pipx install codestrain
50
56
  codestrain --help
51
57
  ```
52
58
 
53
59
  ```bash
54
- # uv toolfastest, same outcome
60
+ # any OSuv tool, fastest
55
61
  uv tool install codestrain
56
62
  codestrain --help
57
63
  ```
58
64
 
59
65
  ```bash
60
- # one-liner — detects python, picks pipx/uv/pip --user automatically
66
+ # one-liner installer — detects pipx/uv/pip and adds PATH automatically
61
67
  curl -fsSL codestrain.dev/install | sh
62
68
  ```
63
69
 
70
+ `pip install codestrain` works too, but leaves the binary off your `$PATH` on macOS (PEP 668 / user-install convention). See troubleshooting below.
71
+
64
72
  <details>
65
73
  <summary>If <code>codestrain: command not found</code> after <code>pip install codestrain</code></summary>
66
74
 
@@ -17,25 +17,33 @@ CodeStrain parses the Claude Code JSONL session logs already on your disk (`~/.c
17
17
 
18
18
  ## Install
19
19
 
20
- The CLI is a single command, but `pip install codestrain` alone often leaves the binary off your `$PATH` (macOS / many Linuxes ship Python under PEP 668). Use **pipx** or **uv** — they put the command on `$PATH` and isolate the env:
20
+ The CLI is a single command. Pick the install path your machine prefers all three put `codestrain` on your `$PATH`:
21
21
 
22
22
  ```bash
23
- # pipx — recommended for global use
23
+ # macOS — recommended (Homebrew)
24
+ brew install codestrain/tap/codestrain
25
+ codestrain --help
26
+ ```
27
+
28
+ ```bash
29
+ # any OS — pipx, isolated venv + symlink on PATH
24
30
  pipx install codestrain
25
31
  codestrain --help
26
32
  ```
27
33
 
28
34
  ```bash
29
- # uv toolfastest, same outcome
35
+ # any OSuv tool, fastest
30
36
  uv tool install codestrain
31
37
  codestrain --help
32
38
  ```
33
39
 
34
40
  ```bash
35
- # one-liner — detects python, picks pipx/uv/pip --user automatically
41
+ # one-liner installer — detects pipx/uv/pip and adds PATH automatically
36
42
  curl -fsSL codestrain.dev/install | sh
37
43
  ```
38
44
 
45
+ `pip install codestrain` works too, but leaves the binary off your `$PATH` on macOS (PEP 668 / user-install convention). See troubleshooting below.
46
+
39
47
  <details>
40
48
  <summary>If <code>codestrain: command not found</code> after <code>pip install codestrain</code></summary>
41
49
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "codestrain"
3
- version = "0.1.1"
3
+ version = "0.1.2"
4
4
  description = "Your AI coding recovery score, from the terminal."
5
5
  requires-python = ">=3.9"
6
6
  readme = "README.md"
@@ -1,49 +0,0 @@
1
- name: Release
2
-
3
- on:
4
- push:
5
- tags:
6
- - "v*"
7
-
8
- jobs:
9
- build:
10
- name: Build distributions
11
- runs-on: ubuntu-latest
12
- steps:
13
- - name: Checkout
14
- uses: actions/checkout@v4
15
-
16
- - name: Set up Python
17
- uses: actions/setup-python@v5
18
- with:
19
- python-version: "3.12"
20
-
21
- - name: Install build tooling
22
- run: python -m pip install --upgrade build
23
-
24
- - name: Build sdist and wheel
25
- working-directory: .
26
- run: python -m build
27
-
28
- - name: Upload distributions
29
- uses: actions/upload-artifact@v4
30
- with:
31
- name: dist
32
- path: dist/
33
-
34
- publish:
35
- name: Publish to PyPI
36
- needs: build
37
- runs-on: ubuntu-latest
38
- environment: pypi
39
- permissions:
40
- id-token: write
41
- steps:
42
- - name: Download distributions
43
- uses: actions/download-artifact@v4
44
- with:
45
- name: dist
46
- path: dist/
47
-
48
- - name: Publish to PyPI via Trusted Publisher
49
- uses: pypa/gh-action-pypi-publish@release/v1
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes