@@ -14,12 +14,17 @@ newest development version from Github_::
1414
1515 git clone https://github.com/sfstoolbox/sfs-python.git
1616 cd sfs-python
17- python3 -m pip install --user -e .
17+ uv sync
1818
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.
2024
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.
2328
2429.. _PyPI : https://pypi.org/project/sfs/
2530.. _Github : https://github.com/sfstoolbox/sfs-python/
@@ -30,37 +35,31 @@ Building the Documentation
3035
3136If you make changes to the documentation, you can re-create the HTML pages
3237using 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::
3440
35- python3 -m pip install -r doc/requirements.txt --user
41+ uv pip install -r doc/requirements.txt
3642
3743To create the HTML pages, use::
3844
39- python3 setup.py build_sphinx
45+ uv run -m sphinx doc _build
4046
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/ ``.
4948
5049To create the PDF file, use::
5150
52- python3 setup.py build_sphinx -b latex
51+ uv run -m sphinx doc _build -b latex
5352
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
5554PDF file. If you don’t know how to create a PDF file from the LaTeX output, you
5655should have a look at Latexmk _ (see also this `Latexmk tutorial `_).
5756
5857It is also possible to automatically check if all links are still valid::
5958
60- python3 setup.py build_sphinx -b linkcheck
59+ uv run -m sphinx doc _build -b linkcheck
6160
6261.. _Sphinx : http://sphinx-doc.org/
63- .. _Latexmk : http ://personal.psu.edu/jcc8/software /latexmk-jcc /
62+ .. _Latexmk : https ://www.cantab.net/users/johncollins /latexmk/
6463.. _Latexmk tutorial : https://mg.readthedocs.io/latexmk.html
6564
6665Running the Tests
@@ -69,11 +68,11 @@ Running the Tests
6968You'll need pytest _ for that.
7069It can be installed with::
7170
72- python3 -m pip install -r tests/requirements.txt --user
71+ uv pip install -r tests/requirements.txt
7372
7473To execute the tests, simply run::
7574
76- python3 -m pytest
75+ uv run -m pytest
7776
7877.. _pytest : https://pytest.org/
7978
0 commit comments