Modernize to pyproject.toml and fix test assertion

- Remove requirements.txt and requirements-dev.txt (duplicates pyproject.toml)
- Update Dockerfile to use 'pip install .' instead of requirements.txt
- Update README.md and GitHub workflows to use 'pip install -e .[dev]'
- Fix test_get_valuation_comparables: check for 'deal_date' instead of non-existent 'asset_room_num'
  (rooms field is optional and excluded when None due to exclude_none=True)
- Fix fastmcp version constraint in pyproject.toml (>=2.13.0,<3.0.0)
- Add vcrpy to dev dependencies

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Nitzan P
2025-11-18 23:00:03 +02:00
parent 96ec29dad2
commit 5be68a5b04
9 changed files with 30 additions and 51 deletions
+4 -4
View File
@@ -18,16 +18,16 @@ RUN apt-get update && \
gcc \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first for better layer caching
COPY requirements.txt .
# Copy package files for better layer caching
COPY pyproject.toml .
COPY README.md .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install --no-cache-dir .
# Copy application code
COPY nadlan_mcp/ ./nadlan_mcp/
COPY run_http_server.py .
COPY README.md .
# Create non-root user for security
RUN useradd -m -u 1000 appuser && \