You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/README.md
+26-13Lines changed: 26 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,8 @@ http://cabal.readthedocs.io/
11
11
12
12
### How to build it
13
13
14
-
Building the documentation requires Python 3, PIP, and `pip-tools` (see the second note below for how to install it). Run the following command either from the root of the cabal repository or from the `docs/` subdirectory:
14
+
Building the documentation requires uv and Python 3. Run the following command
15
+
either from the root of the cabal repository or from the `docs/` subdirectory:
15
16
16
17
```console
17
18
> make users-guide
@@ -20,25 +21,37 @@ Building the documentation requires Python 3, PIP, and `pip-tools` (see the seco
20
21
Note: Python on Mac OS X dislikes `LC_CTYPE=UTF-8`, so unset the variable
21
22
and instead set `LC_ALL=en_US.UTF-8`.
22
23
23
-
Note: You can use a vendor package for `pip-tools`, or run
24
-
25
-
```console
26
-
> pip install pip-tools
27
-
```
28
-
29
-
Make sure the installation directory (often `$HOME/.local/bin`) is on your `$PATH`.
30
-
31
24
### How to update dependencies
32
25
33
-
The list of transitive dependencies (`requirements.txt`) is generated from the list of direct dependencies in `requirements.in`. To perform the generation step, run
26
+
The list of transitive dependencies (`requirements.txt`) is generated from the
27
+
list of direct dependencies in `pyproject.toml`. Find outdated dependencies with:
34
28
35
29
```console
36
-
> make users-guide-requirements
30
+
> cd doc
31
+
> uv pip list --outdated
32
+
Package Version Latest Type
33
+
------------------ ---------- -------- -----
34
+
certifi 2025.11.12 2026.1.4 wheel
35
+
docutils 0.21.2 0.22.4 wheel
36
+
sphinx 8.2.3 9.1.0 wheel
37
+
sphinxnotes-strike 1.5 2.0 wheel
38
+
urllib3 2.6.2 2.6.3 wheel
37
39
```
38
40
39
-
either from the root of the cabal repository or from the `docs/` subdirectory. You will need to do this before building documentation the first time, but should only need to repeat it after a `git clean` or if the dependencies in `requirements.in` change.
41
+
Upgrade the lock file to the latest satisfiable requirements with:
42
+
43
+
```console
44
+
> uv sync --upgrade
45
+
...
46
+
- certifi==2025.11.12
47
+
+ certifi==2026.1.4
48
+
- sphinxnotes-strike==1.5
49
+
+ sphinxnotes-strike==2.0
50
+
- urllib3==2.6.2
51
+
+ urllib3==2.6.3
52
+
```
40
53
41
-
In some cases, you may have to add a bound manually to `requirements.in`, e.g. `requests >= 2.31.0`.
54
+
In some cases, you may have to add a bound manually to `pyproject.toml`, e.g. `requests >= 2.31.0`.
0 commit comments