Nomearod Claude Opus 4.6 (1M context) commited on
Commit
9d976db
·
1 Parent(s): e9173a5

fix: Makefile interpreter consistency + setuptools package discovery

Browse files

- Single PYTHON variable (default /usr/local/opt/python@3.11/bin/python3.11)
used for all targets via $(PYTHON) -m pip/pytest/uvicorn
- Explicit package discovery: [tool.setuptools.packages.find] include=["agent_bench*"]
fixes editable install when non-package dirs (docs/plans) exist
- Relax types-PyYAML version constraint for cross-environment compat

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Files changed (2) hide show
  1. Makefile +9 -7
  2. pyproject.toml +4 -1
Makefile CHANGED
@@ -1,10 +1,12 @@
 
 
1
  .PHONY: install test lint serve ingest evaluate-fast evaluate-full benchmark docker
2
 
3
  install:
4
- pip install -e ".[dev]"
5
 
6
  test:
7
- pytest tests/ -v --tb=short
8
 
9
  lint:
10
  ruff check agent_bench/ tests/
@@ -12,19 +14,19 @@ lint:
12
  mypy agent_bench/ --ignore-missing-imports
13
 
14
  serve:
15
- uvicorn agent_bench.serving.app:create_app --factory --reload --port 8000
16
 
17
  ingest:
18
- python3 scripts/ingest.py --config configs/tasks/tech_docs.yaml
19
 
20
  evaluate-fast:
21
- python3 scripts/evaluate.py --config configs/default.yaml --mode deterministic
22
 
23
  evaluate-full:
24
- python3 scripts/evaluate.py --config configs/default.yaml --mode full
25
 
26
  benchmark:
27
- python3 scripts/benchmark.py --output docs/benchmark_report.md
28
 
29
  docker:
30
  docker-compose -f docker/docker-compose.yaml up --build
 
1
+ PYTHON ?= /usr/local/opt/python@3.11/bin/python3.11
2
+
3
  .PHONY: install test lint serve ingest evaluate-fast evaluate-full benchmark docker
4
 
5
  install:
6
+ $(PYTHON) -m pip install -e ".[dev]"
7
 
8
  test:
9
+ $(PYTHON) -m pytest tests/ -v --tb=short
10
 
11
  lint:
12
  ruff check agent_bench/ tests/
 
14
  mypy agent_bench/ --ignore-missing-imports
15
 
16
  serve:
17
+ $(PYTHON) -m uvicorn agent_bench.serving.app:create_app --factory --reload --port 8000
18
 
19
  ingest:
20
+ $(PYTHON) scripts/ingest.py --config configs/tasks/tech_docs.yaml
21
 
22
  evaluate-fast:
23
+ $(PYTHON) scripts/evaluate.py --config configs/default.yaml --mode deterministic
24
 
25
  evaluate-full:
26
+ $(PYTHON) scripts/evaluate.py --config configs/default.yaml --mode full
27
 
28
  benchmark:
29
+ $(PYTHON) scripts/benchmark.py --output docs/benchmark_report.md
30
 
31
  docker:
32
  docker-compose -f docker/docker-compose.yaml up --build
pyproject.toml CHANGED
@@ -27,9 +27,12 @@ dev = [
27
  "ruff>=0.6.0",
28
  "mypy>=1.11.0",
29
  "respx>=0.21.0",
30
- "types-PyYAML>=2024.0.0",
31
  ]
32
 
 
 
 
33
  [build-system]
34
  requires = ["setuptools>=69.0"]
35
  build-backend = "setuptools.build_meta"
 
27
  "ruff>=0.6.0",
28
  "mypy>=1.11.0",
29
  "respx>=0.21.0",
30
+ "types-PyYAML",
31
  ]
32
 
33
+ [tool.setuptools.packages.find]
34
+ include = ["agent_bench*"]
35
+
36
  [build-system]
37
  requires = ["setuptools>=69.0"]
38
  build-backend = "setuptools.build_meta"