craft-code 0.1.7__tar.gz → 0.1.9__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.
Files changed (26) hide show
  1. {craft_code-0.1.7 → craft_code-0.1.9}/.github/workflows/release.yml +4 -2
  2. {craft_code-0.1.7 → craft_code-0.1.9}/PKG-INFO +1 -1
  3. {craft_code-0.1.7 → craft_code-0.1.9}/pyproject.toml +1 -1
  4. {craft_code-0.1.7 → craft_code-0.1.9}/scripts/generate_formula.sh +8 -7
  5. {craft_code-0.1.7 → craft_code-0.1.9}/.env.example +0 -0
  6. {craft_code-0.1.7 → craft_code-0.1.9}/.github/workflows/claude-code-review.yml +0 -0
  7. {craft_code-0.1.7 → craft_code-0.1.9}/.github/workflows/claude.yml +0 -0
  8. {craft_code-0.1.7 → craft_code-0.1.9}/.gitignore +0 -0
  9. {craft_code-0.1.7 → craft_code-0.1.9}/AGENTS.md +0 -0
  10. {craft_code-0.1.7 → craft_code-0.1.9}/LICENSE +0 -0
  11. {craft_code-0.1.7 → craft_code-0.1.9}/README.md +0 -0
  12. {craft_code-0.1.7 → craft_code-0.1.9}/code_craft/AGENTS.md +0 -0
  13. {craft_code-0.1.7 → craft_code-0.1.9}/code_craft/__init__.py +0 -0
  14. {craft_code-0.1.7 → craft_code-0.1.9}/code_craft/__main__.py +0 -0
  15. {craft_code-0.1.7 → craft_code-0.1.9}/code_craft/agent.py +0 -0
  16. {craft_code-0.1.7 → craft_code-0.1.9}/code_craft/auth.py +0 -0
  17. {craft_code-0.1.7 → craft_code-0.1.9}/code_craft/cli.py +0 -0
  18. {craft_code-0.1.7 → craft_code-0.1.9}/code_craft/config.py +0 -0
  19. {craft_code-0.1.7 → craft_code-0.1.9}/code_craft/interrupt_handler.py +0 -0
  20. {craft_code-0.1.7 → craft_code-0.1.9}/code_craft/prompts.py +0 -0
  21. {craft_code-0.1.7 → craft_code-0.1.9}/code_craft/skills/code-review/SKILL.md +0 -0
  22. {craft_code-0.1.7 → craft_code-0.1.9}/code_craft/skills/testing/SKILL.md +0 -0
  23. {craft_code-0.1.7 → craft_code-0.1.9}/code_craft/tools.py +0 -0
  24. {craft_code-0.1.7 → craft_code-0.1.9}/example.py +0 -0
  25. {craft_code-0.1.7 → craft_code-0.1.9}/skills/code-review/SKILL.md +0 -0
  26. {craft_code-0.1.7 → craft_code-0.1.9}/skills/testing/SKILL.md +0 -0
@@ -63,8 +63,10 @@ jobs:
63
63
  id: version
64
64
  run: echo "version=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"
65
65
 
66
- - name: Install homebrew-pypi-poet
67
- run: pip install homebrew-pypi-poet craft-code==${{ steps.version.outputs.version }}
66
+ - name: Install dependencies
67
+ run: |
68
+ pip install --upgrade pip setuptools wheel
69
+ pip install homebrew-pypi-poet craft-code==${{ steps.version.outputs.version }}
68
70
 
69
71
  - name: Generate formula
70
72
  run: ./scripts/generate_formula.sh ${{ steps.version.outputs.version }}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: craft-code
3
- Version: 0.1.7
3
+ Version: 0.1.9
4
4
  Summary: An AI coding assistant
5
5
  Project-URL: Homepage, https://github.com/Shubham-1994/code-craft
6
6
  Project-URL: Repository, https://github.com/Shubham-1994/code-craft
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "craft-code"
3
- version = "0.1.7"
3
+ version = "0.1.9"
4
4
  description = "An AI coding assistant"
5
5
  requires-python = ">=3.11"
6
6
  license = { text = "MIT" }
@@ -41,15 +41,16 @@ else
41
41
  fi
42
42
  echo " sha256: ${SHA256}"
43
43
 
44
- # ---- 2. Install homebrew-pypi-poet if missing --------------------------
45
- if ! command -v poet &>/dev/null; then
46
- echo "==> Installing homebrew-pypi-poet..."
47
- pip install --quiet homebrew-pypi-poet
48
- fi
44
+ # ---- 2. Install homebrew-pypi-poet ------------------------------------
45
+ pip install --quiet setuptools homebrew-pypi-poet
46
+
47
+ # Resolve poet from the same Python environment (avoids shebang mismatch
48
+ # when multiple Python installations exist, e.g. on macOS GitHub runners)
49
+ POET=$(python3 -c "import sysconfig; print(sysconfig.get_path('scripts'))")/poet
49
50
 
50
- # ---- 3. Generate resource blocks with poet -----------------------------
51
+ # ---- 3. Generate resource blocks with poet ----------------------------
51
52
  echo "==> Generating resource blocks (this may take a moment)..."
52
- RESOURCES=$(poet craft-code)
53
+ RESOURCES=$("${POET}" craft-code)
53
54
 
54
55
  if [[ -z "${RESOURCES}" ]]; then
55
56
  echo "ERROR: poet returned empty output for craft-code."
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes