Commit b1d243c
Update buildpack (#1509)
* Kiro steering documents
* specs
* feat: establish baseline for Poetry to uv migration
- Analyze current Poetry configuration in pyproject.toml
- Document build performance metrics (17.4s total build time)
- Verify application functionality with Docker setup
- Confirm migration readiness (no conflicting package managers)
- Create comprehensive baseline analysis documentation
Baseline metrics:
- Poetry install: 6.4s
- Dependencies install: 9.4s
- Application startup: ~3s
- HTTP response: 200 OK
Ready for uv migration implementation.
* feat: migrate Docker configuration from Poetry to uv
- Replace Poetry with uv for dependency management in Dockerfile
- Install uv instead of Poetry and use `uv sync --frozen` for deps
- Remove Poetry-specific environment variables
- Add .python-version file for Python 3.11.9 specification
- Convert pyproject.toml to uv-compatible format with [project] section
- Generate uv.lock to replace poetry.lock
- Update .dockerignore to include .python-version
- Activate virtual environment in Docker with PATH update
Improves build performance with uv's faster dependency resolution
and installation (61 packages in 181ms vs Poetry's slower process).
Addresses requirements 1.1 and 4.1 for Heroku buildpack migration.
* feat: migrate from Poetry to uv for dependency management
- Remove Poetry-specific configuration from pyproject.toml
- Keep standard PEP 621 project configuration for uv compatibility
- Generate new uv.lock file with all dependencies resolved
- Remove poetry.lock to ensure uv takes precedence
- Maintain Python 3.11.9 specification via .python-version file
This migration prepares the project for Heroku's native Python buildpack
which has better uv support than Poetry.
* feat: verify removal of conflicting package manager files
- Confirmed poetry.lock has been removed (replaced by uv.lock)
- Verified no requirements.txt files exist in project
- Confirmed no Pipfile or Pipfile.lock files present
- Ensures uv takes precedence as package manager for Heroku deployment
Refs: heroku-buildpack-migration task 4
* test: verify uv dependencies work in Docker environment
- Successfully tested uv sync with 61 packages installing in 201ms
- Verified Django 5.2.4 application starts with Gunicorn in Docker
- Confirmed all database migrations and fixtures load correctly
- Validated key dependencies (psycopg 3.2.9, boto3 1.39.13) function properly
- Docker build time improved to ~8 seconds with excellent layer caching
- All Django management commands working with uv virtual environment
Resolves task 5 of heroku-buildpack-migration spec
* Remove deprecated Poetry buildpack from Heroku staging
- Remove moneymeets/python-poetry-buildpack from staging-wac
- Staging now uses native heroku/python buildpack with uv support
- Production buildpack removal pending staging validation
Refs: heroku-buildpack-migration task 6
* Update app.json to use native Python buildpack with uv support
* Add .python-version file for Heroku uv support
* Update pyproject.toml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update Dockerfile
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* pin python 3.11
* Update uv.lock file to sync with pyproject.toml dependencies
* Update uv.lock file to sync with pyproject.toml dependencies
* Cleanup
* chore: clean up and organize project configuration files
- Reorganize .gitignore with logical sections and remove duplicates
- Streamline .dockerignore for better build performance
- Group pyproject.toml dependencies by purpose with clear comments
- Fix malformed Black and isort tool configurations
- Remove redundant patterns and improve maintainability
This improves development workflow and ensures consistent tooling across
the Django 5.2 + uv + Docker environment.
* Update pyproject.toml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent b1a05b1 commit b1d243c
File tree
12 files changed
+1240
-1629
lines changed- .kiro/steering
12 files changed
+1240
-1629
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
10 | 6 | | |
11 | | - | |
| 7 | + | |
12 | 8 | | |
13 | 9 | | |
14 | 10 | | |
15 | | - | |
16 | 11 | | |
17 | 12 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 13 | + | |
| 14 | + | |
22 | 15 | | |
23 | 16 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
58 | 24 | | |
59 | | - | |
60 | | - | |
61 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
62 | 29 | | |
63 | | - | |
| 30 | + | |
64 | 31 | | |
65 | | - | |
66 | | - | |
67 | 32 | | |
68 | 33 | | |
69 | | - | |
70 | | - | |
71 | 34 | | |
72 | 35 | | |
73 | 36 | | |
74 | 37 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
95 | 47 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | 48 | | |
131 | 49 | | |
132 | 50 | | |
133 | | - | |
134 | | - | |
135 | 51 | | |
| 52 | + | |
136 | 53 | | |
137 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
138 | 61 | | |
139 | | - | |
140 | | - | |
| 62 | + | |
| 63 | + | |
141 | 64 | | |
142 | | - | |
143 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
144 | 91 | | |
145 | 92 | | |
146 | 93 | | |
| |||
167 | 114 | | |
168 | 115 | | |
169 | 116 | | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
| 117 | + | |
177 | 118 | | |
178 | 119 | | |
179 | 120 | | |
180 | | - | |
181 | | - | |
182 | 121 | | |
183 | | - | |
184 | | - | |
185 | 122 | | |
186 | | - | |
187 | | - | |
188 | 123 | | |
189 | | - | |
190 | | - | |
191 | 124 | | |
192 | 125 | | |
193 | 126 | | |
194 | 127 | | |
195 | 128 | | |
196 | | - | |
197 | | - | |
198 | 129 | | |
199 | 130 | | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | 131 | | |
206 | 132 | | |
207 | 133 | | |
208 | 134 | | |
209 | 135 | | |
210 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
211 | 144 | | |
212 | 145 | | |
213 | 146 | | |
214 | 147 | | |
215 | | - | |
216 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
0 commit comments