xenfra 0.1.3__tar.gz → 0.1.5__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: xenfra
3
- Version: 0.1.3
3
+ Version: 0.1.5
4
4
  Summary: A 'Zen Mode' infrastructure engine for Python developers.
5
5
  Author: xenfra-cloud
6
6
  Author-email: xenfra-cloud <xenfracloud@gmail.com>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "xenfra"
3
- version = "0.1.3"
3
+ version = "0.1.5"
4
4
  description = "A 'Zen Mode' infrastructure engine for Python developers."
5
5
  readme = "README.md"
6
6
  authors = [
@@ -63,25 +63,28 @@ def generate_deployment_assets(context):
63
63
  # Modern pip can install from pyproject.toml directly
64
64
  install_cmd = "RUN pip install ."
65
65
 
66
- dockerfile_content = f"""# Generated by Xenfra
67
- FROM python:3.11-slim
66
+ dockerfile_content = f"""# Generated by Xenfra (Robust v2)
67
+ FROM python:3.13-slim
68
68
 
69
69
  WORKDIR /app
70
70
 
71
- # Install System Deps
72
- RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
71
+ # Install uv via pip
72
+ RUN pip install uv
73
73
 
74
- # Copy all dependency definition files
75
- COPY requirements.txt* .
76
- COPY pyproject.toml* .
77
- COPY uv.lock* .
74
+ # Copy only the dependency file first to leverage Docker layer caching
75
+ COPY pyproject.toml .
78
76
 
79
- # Install Python Deps
80
- {install_cmd}
77
+ # Install dependencies from pyproject.toml
78
+ # This is more robust than `pip install .` as it doesn't build the local package
79
+ RUN uv pip install --system -r pyproject.toml
81
80
 
82
- # Copy Code
81
+ # Copy the rest of the application code
83
82
  COPY . .
84
83
 
84
+ # Add the 'src' directory to Python's path
85
+ # This allows imports to work correctly for projects with a src/ layout
86
+ ENV PYTHONPATH="${{PYTHONPATH}}:/app/src"
87
+
85
88
  # Expose Port
86
89
  EXPOSE {port}
87
90
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes