csm-dashboard 0.2.1__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.
Files changed (43) hide show
  1. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/Dockerfile +8 -11
  2. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/PKG-INFO +1 -1
  3. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/pyproject.toml +1 -1
  4. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/.dockerignore +0 -0
  5. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/.env.example +0 -0
  6. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/.github/workflows/docker-publish.yaml +0 -0
  7. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/.github/workflows/release.yaml +0 -0
  8. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/.gitignore +0 -0
  9. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/README.md +0 -0
  10. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/docker-compose.yml +0 -0
  11. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/img/csm-dash-cli.png +0 -0
  12. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/img/csm-dash-web.png +0 -0
  13. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/img/logo.png +0 -0
  14. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/requirements.txt +0 -0
  15. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/__init__.py +0 -0
  16. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/abis/CSAccounting.json +0 -0
  17. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/abis/CSFeeDistributor.json +0 -0
  18. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/abis/CSModule.json +0 -0
  19. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/abis/__init__.py +0 -0
  20. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/abis/stETH.json +0 -0
  21. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/cli/__init__.py +0 -0
  22. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/cli/commands.py +0 -0
  23. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/core/__init__.py +0 -0
  24. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/core/config.py +0 -0
  25. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/core/contracts.py +0 -0
  26. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/core/types.py +0 -0
  27. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/data/__init__.py +0 -0
  28. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/data/beacon.py +0 -0
  29. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/data/cache.py +0 -0
  30. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/data/etherscan.py +0 -0
  31. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/data/ipfs_logs.py +0 -0
  32. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/data/known_cids.py +0 -0
  33. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/data/lido_api.py +0 -0
  34. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/data/onchain.py +0 -0
  35. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/data/rewards_tree.py +0 -0
  36. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/data/strikes.py +0 -0
  37. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/main.py +0 -0
  38. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/services/__init__.py +0 -0
  39. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/services/operator_service.py +0 -0
  40. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/web/__init__.py +0 -0
  41. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/web/app.py +0 -0
  42. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/web/routes.py +0 -0
  43. {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/tests/__init__.py +0 -0
@@ -17,6 +17,11 @@ ENV PATH="/opt/venv/bin:$PATH"
17
17
  RUN pip install --upgrade pip && \
18
18
  pip install --no-cache-dir -r requirements.txt
19
19
 
20
+ # Copy package files and install
21
+ COPY pyproject.toml README.md ./
22
+ COPY src ./src
23
+ RUN pip install --no-cache-dir .
24
+
20
25
  # Final stage
21
26
  FROM python:3.11-slim
22
27
 
@@ -27,21 +32,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
27
32
  curl \
28
33
  && rm -rf /var/lib/apt/lists/*
29
34
 
30
- # Copy virtual environment from builder
35
+ # Copy virtual environment from builder (includes installed package)
31
36
  COPY --from=builder /opt/venv /opt/venv
32
37
 
33
- # Copy application code (includes abis inside src/)
34
- COPY src ./src
35
-
36
- # Create csm alias script
37
- RUN echo '#!/bin/sh\npython -m src.main "$@"' > /usr/local/bin/csm && \
38
- chmod +x /usr/local/bin/csm
39
-
40
38
  # Set environment variables
41
39
  ENV PATH="/opt/venv/bin:$PATH" \
42
40
  PYTHONUNBUFFERED=1 \
43
- PYTHONDONTWRITEBYTECODE=1 \
44
- PYTHONPATH=/app
41
+ PYTHONDONTWRITEBYTECODE=1
45
42
 
46
43
  # Health check
47
44
  HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \
@@ -50,5 +47,5 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \
50
47
  # Expose port for web dashboard
51
48
  EXPOSE 3000
52
49
 
53
- # Default command - run the web dashboard using csm alias
50
+ # Default command - csm is now a proper entry point from pip install
54
51
  CMD ["csm", "serve", "--host", "0.0.0.0", "--port", "3000"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: csm-dashboard
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: Lido CSM Operator Dashboard for tracking validator earnings
5
5
  Requires-Python: >=3.11
6
6
  Requires-Dist: fastapi>=0.104
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "csm-dashboard"
3
- version = "0.2.1"
3
+ version = "0.2.2"
4
4
  description = "Lido CSM Operator Dashboard for tracking validator earnings"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
File without changes
File without changes
File without changes