Commit fb73697
authored
bug - 236: fix CI issues (#237)
## Summary
This PR fixes the GitHub Actions test failures caused by Hatch 1.16.1's
stricter enforcement of PEP 503 normalization.
## Changes
- **pyproject.toml**: Renamed `async_http` to `async-http` in
`[project.optional-dependencies]` to comply with PEP 503 normalization
- **makefile**: Added `make hatch-upgrade` command to help developers
upgrade Hatch to match CI version
- **docs/releases/0.11.md**: Added bugfix entry documenting the issue
and fix
## Problem
All GitHub Actions test workflows were failing with:
```
ValueError: Feature `async-http` of field `tool.hatch.envs.hatch-test.py3.X-pysparkY.features` is not defined in the dynamic field `project.optional-dependencies`
```
## Root Cause
- GitHub Actions uses Hatch 1.16.1 which enforces PEP 503 normalization
(underscores → hyphens)
- Local environments using Hatch 1.14.1 didn't enforce this, causing
tests to pass locally but fail in CI
- The `async_http` feature was being normalized to `async-http` during
validation but the definition used an underscore
## Testing
- Upgraded local Hatch to 1.16.1
- Verified tests now pass with the fix: `hatch test --python=3.12 -i
version=pyspark352r`
- The `async_http` tests are passing successfully
## Impact
This unblocks all PRs and restores CI functionality. The fix aligns with
Python packaging standards (PEP 503).
Fixes #236
---------
Co-authored-by: Danny Meijer <10511979+dannymeijer@users.noreply.github.com>1 parent e5636b5 commit fb73697
4 files changed
Lines changed: 42 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | 76 | | |
85 | 77 | | |
86 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
44 | 62 | | |
45 | 63 | | |
46 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
| |||
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
58 | | - | |
| 57 | + | |
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
| |||
267 | 266 | | |
268 | 267 | | |
269 | 268 | | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | 269 | | |
275 | 270 | | |
276 | 271 | | |
| |||
289 | 284 | | |
290 | 285 | | |
291 | 286 | | |
| 287 | + | |
292 | 288 | | |
293 | 289 | | |
| 290 | + | |
294 | 291 | | |
295 | 292 | | |
296 | 293 | | |
297 | 294 | | |
| 295 | + | |
298 | 296 | | |
299 | 297 | | |
| 298 | + | |
300 | 299 | | |
301 | 300 | | |
302 | 301 | | |
| |||
0 commit comments