Commit a289533
authored
fix: ambigious tilde specifier requires-python with
Clients generated like this:
```
uv run openapi-python-client generate --path openapi.json --overwrite --output-path client --meta uv
```
Generate these warnings during installation with `uv`:
> warning: The `requires-python` specifier (`~=3.9`) in `client` uses
the tilde specifier (`~=`) without a patch version. This will be
interpreted as `>=3.9, <4`. Did you mean `~=3.9.0` to constrain the
version as `>=3.9.0, <3.10`? We recommend only using the tilde specifier
with a patch version to avoid ambiguity.--meta=uv (openapi-generators#1321)1 parent afdf068 commit a289533
File tree
2 files changed
+2
-2
lines changed- end_to_end_tests/metadata_snapshots
- openapi_python_client/templates
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
0 commit comments