@@ -290,10 +290,7 @@ $ uv add git+https://github.com/encode/httpx --tag 0.27.0
290
290
dependencies = [" httpx" ]
291
291
292
292
[tool .uv .sources ]
293
- httpx = {
294
- git = " https://github.com/encode/httpx" ,
295
- tag = " 0.27.0"
296
- }
293
+ httpx = { git = " https://github.com/encode/httpx" , tag = " 0.27.0" }
297
294
```
298
295
299
296
Or, a branch:
@@ -307,10 +304,7 @@ $ uv add git+https://github.com/encode/httpx --branch main
307
304
dependencies = [" httpx" ]
308
305
309
306
[tool .uv .sources ]
310
- httpx = {
311
- git = " https://github.com/encode/httpx" ,
312
- branch = " main"
313
- }
307
+ httpx = { git = " https://github.com/encode/httpx" , branch = " main" }
314
308
```
315
309
316
310
Or, a revision (commit):
@@ -324,10 +318,7 @@ $ uv add git+https://github.com/encode/httpx --rev 326b9431c761e1ef1e00b9f760d1f
324
318
dependencies = [" httpx" ]
325
319
326
320
[tool .uv .sources ]
327
- httpx = {
328
- git = " https://github.com/encode/httpx" ,
329
- rev = " 326b9431c761e1ef1e00b9f760d1f654c8db48c6"
330
- }
321
+ httpx = { git = " https://github.com/encode/httpx" , rev = " 326b9431c761e1ef1e00b9f760d1f654c8db48c6" }
331
322
```
332
323
333
324
A ` subdirectory ` may be specified if the package isn't in the repository root.
@@ -438,11 +429,7 @@ For example, to pull `httpx` from GitHub, but only on macOS, use the following:
438
429
dependencies = [" httpx" ]
439
430
440
431
[tool .uv .sources ]
441
- httpx = {
442
- git = " https://github.com/encode/httpx" ,
443
- tag = " 0.27.2" ,
444
- marker = " sys_platform == 'darwin'"
445
- }
432
+ httpx = { git = " https://github.com/encode/httpx" , tag = " 0.27.2" , marker = " sys_platform == 'darwin'" }
446
433
```
447
434
448
435
By specifying the marker on the source, uv will still include ` httpx ` on all platforms, but will
@@ -462,16 +449,8 @@ dependencies = ["httpx"]
462
449
463
450
[tool .uv .sources ]
464
451
httpx = [
465
- {
466
- git = " https://github.com/encode/httpx" ,
467
- tag = " 0.27.2" ,
468
- marker = " sys_platform == 'darwin'"
469
- },
470
- {
471
- git = " https://github.com/encode/httpx" ,
472
- tag = " 0.24.1" ,
473
- marker = " sys_platform == 'linux'"
474
- },
452
+ { git = " https://github.com/encode/httpx" , tag = " 0.27.2" , marker = " sys_platform == 'darwin'" },
453
+ { git = " https://github.com/encode/httpx" , tag = " 0.24.1" , marker = " sys_platform == 'linux'" },
475
454
]
476
455
```
477
456
0 commit comments