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: DEVELOPING.md
+22-16Lines changed: 22 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,15 +8,18 @@ Documentation for the INTERSECT Python SDK can be viewed at https://intersect-py
8
8
9
9
## Quickstart (developers)
10
10
11
-
This project uses [PDM](https://pdm.fming.dev/latest/) for Python tooling. Install PDM and run `pdm install -G:all`, or `pdm update` if resyncing the repository.
11
+
This project uses UV for Python tooling. For initial setup:
12
12
13
-
To install pre-commit hooks, run `pdm run pre-commit install` after installation.
14
-
15
-
Main commands are specified under `tool.pdm.scripts` in `pyproject.toml`
# container for CI/CD or development - NOT meant to be an extensible Docker image with the installed package
1
+
# Development Dockerfile. Installs all development dependencies, runs as root (so the environment is mutable), intends for you to mount the directory as a volume if you're developing inside of it.
Copy file name to clipboardExpand all lines: docs/contributing.rst
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ Read the sections below if you would like to contribute to the development of th
6
6
Installing for package development
7
7
----------------------------------
8
8
9
-
Follow the steps discussed in this section to install the intersect-sdk package in a Python development environment. First, install Python and PDM on your local machine. See the :doc:`installation` page for more details. Next, clone the sdk repository as follows:
9
+
Follow the steps discussed in this section to install the intersect-sdk package in a Python development environment. First, install Python and UV on your local machine. See the :doc:`installation` page for more details. Next, clone the sdk repository as follows:
10
10
11
11
.. code-block:: bash
12
12
@@ -17,27 +17,27 @@ Create a Python virtual environment in the root level of the repository and acti
17
17
.. code-block:: bash
18
18
19
19
# Create a virtual environment and activate it
20
-
cd sdk
21
-
python -m venv venv
22
-
source venv/bin/activate
20
+
cdpython-sdk
21
+
uv venv .venv
22
+
source.venv/bin/activate
23
23
24
-
Use PDM to install the intersect-sdk package and its dependencies into the virtual environment.
24
+
Use UV to install the intersect-sdk package and its dependencies into the virtual environment.
25
25
26
26
.. code-block:: bash
27
27
28
-
# Install the intersect-sdk package into the virtual environment using PDM
29
-
pdm install
28
+
# Install the intersect-sdk package into the virtual environment using UV
29
+
uv sync --all-extras --all-groups
30
30
31
31
Check the installation by running one of the examples, such as the :doc:`examples/hello-world` example. Use the command shown below to deactivate the virtual environment:
32
32
33
33
.. code-block:: bash
34
34
35
35
deactivate
36
36
37
-
PDM
37
+
UV
38
38
------
39
39
40
-
The `PDM<https://pdm.fming.dev/latest/>`_ packaging and dependency management tool is used to install the intersect-sdk package in editable (developer) mode. It is also used to run linter checks, formatter checks, and unit tests. Download and install PDM using the instructions on the PDM website.
40
+
The `UV<https://docs.astral.sh/uv//>`_ packaging and dependency management tool is used to install the intersect-sdk package in editable (developer) mode. It is also used to run linter checks, formatter checks, and unit tests. Download and install UV using the instructions on the UV website.
0 commit comments