kdebug 0.2.0__tar.gz → 0.2.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.
@@ -24,12 +24,12 @@ jobs:
24
24
  environment: pypi
25
25
  steps:
26
26
  - name: Check out
27
- uses: actions/checkout@v4
27
+ uses: actions/checkout@v6
28
28
  with:
29
29
  ref: ${{ inputs.ref || github.ref }}
30
30
 
31
31
  - name: Install uv
32
- uses: astral-sh/setup-uv@v5
32
+ uses: astral-sh/setup-uv@v7
33
33
  with:
34
34
  version: "latest"
35
35
 
@@ -23,7 +23,7 @@ jobs:
23
23
  outputs:
24
24
  version: ${{ steps.new.outputs.version }}
25
25
  steps:
26
- - uses: actions/checkout@v4
26
+ - uses: actions/checkout@v6
27
27
  with:
28
28
  fetch-depth: 0
29
29
 
@@ -0,0 +1,37 @@
1
+ name: Update Homebrew Tap
2
+
3
+ on:
4
+ workflow_call:
5
+ inputs:
6
+ version:
7
+ description: 'Version tag (e.g., v1.0.0)'
8
+ required: false
9
+ type: string
10
+
11
+ jobs:
12
+ update-homebrew-tap:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - name: Get version
16
+ id: release-info
17
+ run: |
18
+ VERSION="${{ inputs.version }}"
19
+ VERSION="${VERSION#v}" # Strip 'v' prefix
20
+ echo "version=$VERSION" >> $GITHUB_OUTPUT
21
+ echo "Release version: $VERSION"
22
+
23
+ - name: Trigger Homebrew tap update
24
+ env:
25
+ GH_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
26
+ run: |
27
+ gh workflow run update-formula.yml \
28
+ --repo jessegoodier/homebrew-kdebug \
29
+ -f version="${{ steps.release-info.outputs.version }}" || {
30
+ echo "::warning::Failed to trigger Homebrew update. Ensure HOMEBREW_TAP_TOKEN secret is set with repo scope for jessegoodier/homebrew-kdebug."
31
+ echo "The daily schedule in homebrew-kdebug will pick up the new version from PyPI automatically."
32
+ }
33
+
34
+ - name: Summary
35
+ run: |
36
+ echo "### Homebrew tap update triggered for kdebug ${{ steps.release-info.outputs.version }}" >> $GITHUB_STEP_SUMMARY
37
+ echo "The [homebrew-kdebug](https://github.com/jessegoodier/homebrew-kdebug) update-formula workflow has been dispatched." >> $GITHUB_STEP_SUMMARY
@@ -112,6 +112,28 @@ source <(kdebug --completions zsh)
112
112
  kdebug --<TAB>
113
113
  ```
114
114
 
115
+ ## GitHub Actions & Dependencies
116
+
117
+ **IMPORTANT: Always use the latest stable versions of GitHub Actions and dependencies to avoid security vulnerabilities (CVEs).**
118
+
119
+ ### Current Action Versions (keep updated)
120
+
121
+ - `actions/checkout@v6`
122
+ - `astral-sh/setup-uv@v7`
123
+
124
+ ### Guidelines
125
+
126
+ 1. **Never hardcode old versions** - Check the action's repository for the latest major version
127
+ 2. **Use major version tags** (e.g., `@v6`) not specific commits or minor versions
128
+ 3. **Dependabot is configured** - Review and merge dependabot PRs promptly
129
+ 4. **When adding new actions** - Always check for the latest version first via the action's GitHub repo or marketplace page
130
+
131
+ ### Workflow Files
132
+
133
+ - `.github/workflows/release.yml` - Main release automation
134
+ - `.github/workflows/pypi-publish.yml` - PyPI publishing with OIDC trusted publisher
135
+ - `.github/workflows/update-homebrew.yml` - Homebrew tap updates
136
+
115
137
  ## Code Conventions
116
138
 
117
139
  - Use `colorize()` for colored output
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kdebug
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: Universal Kubernetes Debug Container Utility
5
5
  Project-URL: Homepage, https://github.com/jessegoodier/kdebug
6
6
  Project-URL: Repository, https://github.com/jessegoodier/kdebug
@@ -20,8 +20,9 @@ Description-Content-Type: text/markdown
20
20
 
21
21
  Simple utility for launching ephemeral debug containers in Kubernetes pods with interactive shell access, backup capabilities, and a colorful TUI for pod selection.
22
22
 
23
- ## Features
23
+ Similar to kpf <https://github.com/jessegoodier/kpf>, this is a python wrapper around `kubectl debug` and `kubectl cp`.
24
24
 
25
+ ## Features
25
26
 
26
27
  - 🐚 **Interactive Shell Access** - Launch bash/zsh sessions in debug containers directly to the directory of your choice
27
28
  - 💾 **Backup Capabilities** - Copy files/directories from pods with optional compression
@@ -2,8 +2,9 @@
2
2
 
3
3
  Simple utility for launching ephemeral debug containers in Kubernetes pods with interactive shell access, backup capabilities, and a colorful TUI for pod selection.
4
4
 
5
- ## Features
5
+ Similar to kpf <https://github.com/jessegoodier/kpf>, this is a python wrapper around `kubectl debug` and `kubectl cp`.
6
6
 
7
+ ## Features
7
8
 
8
9
  - 🐚 **Interactive Shell Access** - Launch bash/zsh sessions in debug containers directly to the directory of your choice
9
10
  - 💾 **Backup Capabilities** - Copy files/directories from pods with optional compression
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "kdebug"
7
- version = "0.2.0"
7
+ version = "0.2.2"
8
8
  description = "Universal Kubernetes Debug Container Utility"
9
9
  readme = "README.md"
10
10
  license = "MIT"
kdebug-0.2.2/uv.lock ADDED
@@ -0,0 +1,8 @@
1
+ version = 1
2
+ revision = 3
3
+ requires-python = ">=3.8"
4
+
5
+ [[package]]
6
+ name = "kdebug"
7
+ version = "0.2.0"
8
+ source = { editable = "." }
@@ -1,50 +0,0 @@
1
- name: Update Homebrew Tap
2
-
3
- on:
4
- release:
5
- types: [published]
6
- workflow_dispatch:
7
- workflow_call:
8
- inputs:
9
- version:
10
- description: 'Version tag (e.g., v1.0.0)'
11
- required: false
12
- type: string
13
-
14
- jobs:
15
- update-homebrew-tap:
16
- runs-on: ubuntu-latest
17
- steps:
18
- - name: Get release info
19
- id: release-info
20
- run: |
21
- # Use input version if provided, otherwise extract from GITHUB_REF
22
- if [[ -n "${{ inputs.version }}" ]]; then
23
- VERSION="${{ inputs.version }}"
24
- else
25
- VERSION=${GITHUB_REF#refs/tags/}
26
- fi
27
- echo "version=$VERSION" >> $GITHUB_OUTPUT
28
- echo "Release version: $VERSION"
29
-
30
- - name: Trigger Homebrew tap update
31
- run: |
32
- curl -L \
33
- -X POST \
34
- -H "Accept: application/vnd.github+json" \
35
- -H "Authorization: Bearer ${{ secrets.HOMEBREW_TAP_TOKEN }}" \
36
- -H "X-GitHub-Api-Version: 2022-11-28" \
37
- https://api.github.com/repos/jessegoodier/homebrew-kdebug/dispatches \
38
- -d '{
39
- "event_type": "update-homebrew-formula",
40
- "client_payload": {
41
- "version": "${{ steps.release-info.outputs.version }}",
42
- "repository": "${{ github.repository }}"
43
- }
44
- }'
45
-
46
- - name: Create workflow summary
47
- run: |
48
- echo "🍺 Triggered Homebrew tap update for kdebug version ${{ steps.release-info.outputs.version }}" >> $GITHUB_STEP_SUMMARY
49
- echo "" >> $GITHUB_STEP_SUMMARY
50
- echo "The Homebrew formula will be updated automatically in the [homebrew-kdebug](https://github.com/jessegoodier/homebrew-kdebug) repository." >> $GITHUB_STEP_SUMMARY
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes