@@ -36,23 +36,38 @@ Both of these fields are automatically inferred (by means of ``git describe``) a
3636developer.
3737
3838
39- Package Management and Development Workflows with PDM
40- -----------------------------------------------------
39+ Package Management and Development Workflows with UV
40+ ----------------------------------------------------
4141
42- We use `PDM <https://pdm-project.org/en/latest/ >`_ to manage dependencies of IBLRIG.
43- PDM can also be used to run various commands with relevance to the development process without having to activate a virtual
44- environment first.
45- Please refer to `PDM's documentation <https://pdm-project.org/en/latest/#installation >`_ for help with installing PDM.
42+ This project is utilizing `UV <https://github.com/astral-sh/uv >`_ as its package
43+ manager for managing dependencies and ensuring consistent and reproducible environments.
44+ To install UV:
45+
46+ .. tab-set ::
47+
48+ .. tab-item :: Linux and macOS
49+
50+ .. code-block :: console
51+
52+ $ curl -LsSf https://astral.sh/uv/install.sh | sh
53+
54+ .. tab-item :: Windows
55+
56+ .. code-block :: pwsh-session
57+
58+ PS> powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
59+
60+ See `UV's documentation <https://docs.astral.sh/uv/ >`_ for details.
4661
4762
4863Installing Developer Dependencies
4964^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5065
51- To install additional dependencies needed for working on IBLRIG's code-base, run :
66+ To install IBLRIG as an editable package including all developer dependencies :
5267
53- .. code-block :: console
68+ .. code-block :: pwsh-session
5469
55- pdm sync -d
70+ PS> uv sync
5671
5772
5873 Running Unit Tests
@@ -62,7 +77,7 @@ To run unit tests locally, run:
6277
6378.. code-block :: console
6479
65- pdm run pytest
80+ uv run --frozen pytest
6681
6782 This will also generate a HTML based coverage report which can be found in the ``htmlcov `` directory.
6883
@@ -77,15 +92,15 @@ To lint your code, run:
7792
7893.. code-block :: console
7994
80- pdm run ruff check
95+ uv run --frozen ruff check
8196
8297 Appending the flag ``--fix `` to the above command will automatically fix issues that are deemed safe to handle.
8398
8499To reformat your code according to the `Black code style <https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html >`_ run:
85100
86101.. code-block :: console
87102
88- pdm run ruff format
103+ uv run --frozen uff format
89104
90105 Appending the flag ``--check `` to the above command will check your code for formatting issues without applying any changes.
91106Refer to `Ruff Formater's documentation <https://docs.astral.sh/ruff/formatter/ >`_ for further details.
@@ -116,13 +131,13 @@ To build the documentation, run:
116131
117132.. code-block :: console
118133
119- pdm run sphinx-autobuild ./docs/source ./docs/build
134+ uv run --frozen sphinx-autobuild ./docs/source ./docs/build
120135
121136 You can also export the documentation to a PDF file:
122137
123138.. code-block :: console
124139
125- pdm run make -C docs/ simplepdf
140+ uv run --frozen make -C docs/ simplepdf
126141
127142 Find the exported PDF file in ``docs/build/simplepdf ``.
128143
0 commit comments