Skip to content

Commit 9c43628

Browse files
committed
fix: complete migration from Poetry to pixi across entire project
🔄 Comprehensive toolchain migration: - Update Dockerfile to use pixi instead of requirements.txt - Modernize README.md to reflect pixi + uv stack - Update issue templates for pixi workflow - Fix docker-compose helper scripts - Remove legacy CI configuration directory - Fix K8s validation step in CI (use system pip for yamllint) 🐳 Docker improvements: - Install pixi in container for dependency management - Use pixi.toml and pixi.lock for reproducible builds - Update CMD to use pixi run for execution - Maintain Playwright browser support 📚 Documentation updates: - Environment Management: Poetry → Pixi + uv - Issue templates: poetry show → pixi list - Version reporting: Poetry → Pixi versions 🧹 Legacy cleanup: - Remove old deployment/ci-cd/ directory - Update helper scripts for modern workflow - Ensure all references point to new toolchain Result: Complete, consistent pixi-based workflow across development, CI/CD, and production
1 parent b1bca4e commit 9c43628

10 files changed

Lines changed: 18 additions & 407 deletions

File tree

‎.github/ISSUE_TEMPLATE/bug_report.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ A clear and concise description of what you expected to happen.
2626
- Python version: [e.g. 3.11]
2727
- Operating System: [e.g. macOS, Ubuntu]
2828
- Browser: [e.g. chrome, firefox]
29-
- Project dependencies: [output of `poetry show` or `pip list`]
29+
- Project dependencies: [output of `pixi list` or `pip list`]
3030

3131
**Additional Context**
3232
Add any other context about the problem here. Screenshots, logs, or error messages are helpful.
@@ -60,7 +60,7 @@ If applicable, add screenshots to help explain your problem.
6060
- OS: [e.g. macOS, Ubuntu, Windows]
6161
- Python Version: [e.g. 3.9, 3.10, 3.11]
6262
- Project Version/Commit: [e.g. latest, commit hash]
63-
- Poetry Version (if using): [e.g. 1.4.2]
63+
- Pixi Version (if using): [e.g. 0.34.0]
6464

6565
## Error Logs
6666

‎.github/workflows/ci.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ jobs:
5151
5252
- name: Validate Kubernetes manifests
5353
run: |
54-
# Install yamllint for YAML syntax validation
55-
pixi run pip install yamllint
54+
# Install yamllint via pip (outside pixi environment)
55+
pip install yamllint
5656
5757
# Check YAML syntax
5858
echo "🔍 Validating YAML syntax..."
59-
pixi run yamllint deployment/kubernetes/*.yaml || echo "⚠️ YAML lint warnings found"
59+
yamllint deployment/kubernetes/*.yaml || echo "⚠️ YAML lint warnings found"
6060
6161
# Install kubectl for manifest validation
6262
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"

‎Dockerfile‎

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,15 @@ FROM apify/actor-python-playwright:3.12
44
# Set working directory
55
WORKDIR /usr/src/app
66

7-
# Copy requirements and install additional Python dependencies
8-
COPY requirements.txt .
9-
RUN pip install --no-cache-dir -r requirements.txt
7+
# Install pixi
8+
RUN curl -fsSL https://pixi.sh/install.sh | bash
9+
ENV PATH="/root/.pixi/bin:$PATH"
10+
11+
# Copy pixi configuration files
12+
COPY pixi.toml pixi.lock ./
13+
14+
# Install dependencies using pixi
15+
RUN pixi install --frozen
1016

1117
# Copy source code
1218
COPY src/ ./src/
@@ -15,5 +21,5 @@ COPY *.py ./
1521
# Expose port (if needed for web interface)
1622
EXPOSE 8000
1723

18-
# Default command (using the same pattern as Apify's base image)
19-
CMD ["python3", "-m", "src.main"]
24+
# Default command (using pixi environment)
25+
CMD ["pixi", "run", "python", "-m", "src.main"]

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ This project demonstrates enterprise-level software design patterns:
9292
### DevOps & Production Practices
9393
- **CI/CD Pipeline**: Automated testing, quality checks, and deployment
9494
- **Containerization**: Multi-stage Docker builds with security hardening
95-
- **Environment Management**: Poetry for dependency management
95+
- **Environment Management**: Pixi + uv for fast, reliable dependency management
9696
- **Logging & Monitoring**: Structured logging with contextual error tracking
9797
- **Configuration Management**: Flexible configuration with environment support
9898
- **Security**: Dependency scanning and vulnerability assessment

‎deployment/ci-cd/github-templates/ISSUE_TEMPLATE/bug_report.md‎

Lines changed: 0 additions & 73 deletions
This file was deleted.

‎deployment/ci-cd/github-templates/ISSUE_TEMPLATE/feature_request.md‎

Lines changed: 0 additions & 66 deletions
This file was deleted.

‎deployment/ci-cd/github-templates/ISSUE_TEMPLATE/parser_request.md‎

Lines changed: 0 additions & 40 deletions
This file was deleted.

‎deployment/ci-cd/github-templates/pull_request_template.md‎

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)