Skip to content

Commit da4e422

Browse files
sanchitram1mxcl
authored andcommitted
--script is deprecated for uv
1 parent d47d9e0 commit da4e422

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

docs/scripting.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ Using `env` to invoke `pkgx` is typical for tools that have no POSIX location.
2222
The `-S` parameter is required to pass multiple arguments.
2323
{% endhint %}
2424

25-
2625
## Including Additional pkgs
2726

2827
Scripts are the glue that allows open source to be composed into powerful new
@@ -47,22 +46,14 @@ source <(pkgx dev --shellcode)
4746

4847
{% endhint %}
4948

50-
5149
## Scripting for Various Languages & Their Dependencies
5250

5351
### Python
5452

5553
Use `uv` to import PyPi dependencies:
5654

5755
```python
58-
#!/usr/bin/env -S pkgx +python@3.11 uv run --script
59-
60-
# /// script
61-
# dependencies = [
62-
# "requests<3",
63-
# "rich",
64-
# ]
65-
# ///
56+
#!/usr/bin/env -S pkgx +python@3.11 uv run --with requests<=3 --with rich
6657

6758
import requests
6859
from rich.pretty import pprint
@@ -107,19 +98,16 @@ Use [Scriptisto]:
10798
# snip… type `pkgx scriptisto new cargo` for the rest.
10899
```
109100

110-
111101
## Mash
112102

113103
We think `pkgx` scripting is so powerful that we made a whole package
114104
manager to show it off.
115105

116106
> [https://github.com/pkgxdev/mash](https://github.com/pkgxdev/mash)
117107
118-
119108
## Other Examples
120109

121110
We make use of `pkgx` scripting all over our repositories. Check them out!
122111

123-
124112
[shebang]: https://en.wikipedia.org/wiki/Shebang_(Unix)
125113
[Scriptisto]: https://github.com/igor-petruk/scriptisto

0 commit comments

Comments
 (0)