@@ -9,23 +9,13 @@ Contributions are always welcome!
99Development Installation
1010^^^^^^^^^^^^^^^^^^^^^^^^
1111
12- Instead of pip- installing the latest release from PyPI _, you should get the
12+ Instead of installing the latest release from PyPI _, you should get the
1313newest development version from Github _::
1414
1515 git clone https://github.com/sfstoolbox/sfs-python.git
1616 cd sfs-python
1717 uv sync
1818
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.
24-
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.
28-
2919.. _PyPI : https://pypi.org/project/sfs/
3020.. _Github : https://github.com/sfstoolbox/sfs-python/
3121
@@ -34,47 +24,40 @@ Building the Documentation
3424^^^^^^^^^^^^^^^^^^^^^^^^^^
3525
3626If you make changes to the documentation, you can re-create the HTML pages
37- using Sphinx _.
38- From the main ``sfs-python `` directory,
39- you can install it and a few other necessary packages with::
40-
41- uv pip install -r doc/requirements.txt
42-
43- To create the HTML pages, use::
27+ using Sphinx _. From the main ``sfs-python `` directory, run::
4428
45- uv run -m sphinx doc _build
29+ uv run sphinx-build doc _build
4630
4731The generated files will be available in the directory ``_build/ ``.
4832
49- To create the PDF file, use::
33+ .. _ Sphinx : http://sphinx-doc.org/
5034
51- uv run -m sphinx doc _build -b latex
5235
53- Afterwards go to the folder ``_build/ `` and run LaTeX to create the
54- PDF file. If you don’t know how to create a PDF file from the LaTeX output, you
55- should have a look at Latexmk _ (see also this `Latexmk tutorial `_).
36+ Running the Tests
37+ ^^^^^^^^^^^^^^^^^
5638
57- It is also possible to automatically check if all links are still valid::
39+ You'll need pytest _, which will be installed automatically.
40+ To execute the tests, simply run::
5841
59- uv run -m sphinx doc _build -b linkcheck
42+ uv run pytest
6043
61- .. _Sphinx : http://sphinx-doc.org/
62- .. _Latexmk : https://www.cantab.net/users/johncollins/latexmk/
63- .. _Latexmk tutorial : https://mg.readthedocs.io/latexmk.html
44+ .. _pytest : https://pytest.org/
6445
65- Running the Tests
66- ^^^^^^^^^^^^^^^^^
6746
68- You'll need pytest _ for that.
69- It can be installed with::
47+ Editable Installation
48+ ^^^^^^^^^^^^^^^^^^^^^
7049
71- uv pip install -r tests/requirements.txt
50+ If you want to work in a different directory on your own files,
51+ but using the latest development version (or a custom branch) of
52+ the ``sfs `` module, you can switch to a directory of your choice
53+ and enter this::
7254
73- To execute the tests, simply run::
55+ uv init --bare
56+ uv add --editable path/to/your/sfs/repo
7457
75- uv run -m pytest
58+ You can install further packages with ``uv add `` and then run
59+ whatever you need with ``uv run ``.
7660
77- .. _pytest : https://pytest.org/
7861
7962Creating a New Release
8063^^^^^^^^^^^^^^^^^^^^^^
0 commit comments