Commit cabc631
authored
🐛 fix(build): match hatchling floor to python-requires (#94)
Installing python-discovery from source on Python 3.8 or 3.9 fails at
the build step with `No matching distribution found for
hatchling>=1.28`, reported in #92. The build pin `hatchling>=1.28`
requires Python `>=3.10`, yet the project declares `requires-python =
">=3.8"` and tests against 3.8/3.9, so pip cannot find a backend when it
builds the sdist on those interpreters.
Nothing needs that specific floor; it landed during the standalone
rewrite in #28. An environment marker splits the requirement so
interpreters below 3.10 pull `hatchling>=1.27`, the last release
supporting `<3.10`, while 3.10 and newer keep `hatchling>=1.28`.
Published wheels ship prebuilt and skip the backend, so they stay
unchanged. This restores source builds on the older interpreters the
package already supports.1 parent 952c6e5 commit cabc631
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
0 commit comments