@@ -14,12 +14,17 @@ newest development version from Github_::
14
14
15
15
git clone https://github.com/sfstoolbox/sfs-python.git
16
16
cd sfs-python
17
- python3 -m pip install --user -e .
17
+ uv sync
18
18
19
- ... where ``-e `` stands for ``--editable ``.
19
+ This creates a virtual environment where the latest development version
20
+ of the SFS Toolbox is installed.
21
+ Note that you can activate this environment from any directory
22
+ (e.g. one where you have some Python scripts using the ``sfs `` module),
23
+ it doesn't have to be the directory where you cloned the Git repository.
20
24
21
- This way, your installation always stays up-to-date, even if you pull new
22
- changes from the Github repository.
25
+ Wherever you activate that environment from,
26
+ it will always stay up-to-date, even if you pull new
27
+ changes from the Github repository or switch branches.
23
28
24
29
.. _PyPI : https://pypi.org/project/sfs/
25
30
.. _Github : https://github.com/sfstoolbox/sfs-python/
@@ -30,37 +35,31 @@ Building the Documentation
30
35
31
36
If you make changes to the documentation, you can re-create the HTML pages
32
37
using Sphinx _.
33
- You can install it and a few other necessary packages with::
38
+ From the main ``sfs-python `` directory,
39
+ you can install it and a few other necessary packages with::
34
40
35
- python3 -m pip install -r doc/requirements.txt --user
41
+ uv pip install -r doc/requirements.txt
36
42
37
43
To create the HTML pages, use::
38
44
39
- python3 setup.py build_sphinx
45
+ uv run -m sphinx doc _build
40
46
41
- The generated files will be available in the directory ``build/sphinx/html/ ``.
42
-
43
- To create the EPUB file, use::
44
-
45
- python3 setup.py build_sphinx -b epub
46
-
47
- The generated EPUB file will be available in the directory
48
- ``build/sphinx/epub/ ``.
47
+ The generated files will be available in the directory ``_build/ ``.
49
48
50
49
To create the PDF file, use::
51
50
52
- python3 setup.py build_sphinx -b latex
51
+ uv run -m sphinx doc _build -b latex
53
52
54
- Afterwards go to the folder ``build/sphinx/latex / `` and run LaTeX to create the
53
+ Afterwards go to the folder ``_build / `` and run LaTeX to create the
55
54
PDF file. If you don’t know how to create a PDF file from the LaTeX output, you
56
55
should have a look at Latexmk _ (see also this `Latexmk tutorial `_).
57
56
58
57
It is also possible to automatically check if all links are still valid::
59
58
60
- python3 setup.py build_sphinx -b linkcheck
59
+ uv run -m sphinx doc _build -b linkcheck
61
60
62
61
.. _Sphinx : http://sphinx-doc.org/
63
- .. _Latexmk : http ://personal.psu.edu/jcc8/software /latexmk-jcc /
62
+ .. _Latexmk : https ://www.cantab.net/users/johncollins /latexmk/
64
63
.. _Latexmk tutorial : https://mg.readthedocs.io/latexmk.html
65
64
66
65
Running the Tests
@@ -69,11 +68,11 @@ Running the Tests
69
68
You'll need pytest _ for that.
70
69
It can be installed with::
71
70
72
- python3 -m pip install -r tests/requirements.txt --user
71
+ uv pip install -r tests/requirements.txt
73
72
74
73
To execute the tests, simply run::
75
74
76
- python3 -m pytest
75
+ uv run -m pytest
77
76
78
77
.. _pytest : https://pytest.org/
79
78
0 commit comments