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: DEVELOPER.md
+27-9Lines changed: 27 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,30 @@ It's recommended that you use `RSXML-RiverscapesXML.code-workspace` if you're in
4
4
5
5
Always work on a branch and use a pull request.
6
6
7
+
### Prerequisites
8
+
9
+
-[uv](https://github.com/astral-sh/uv) for dependency management.
10
+
-[pre-commit](https://pre-commit.com/) for git hooks.
11
+
12
+
### Setup
13
+
14
+
1. Install dependencies:
15
+
```bash
16
+
uv sync --all-extras --dev
17
+
```
18
+
2. Install pre-commit hooks:
19
+
```bash
20
+
pre-commit install
21
+
```
22
+
23
+
## Running tests
24
+
25
+
We use `nox` to run tests across multiple Python versions.
26
+
27
+
```bash
28
+
nox
29
+
```
30
+
7
31
## Running examples locally
8
32
9
33
In order to run the examples you will need to install `rsxml`. If you want that installed version to be editable, you can use `pip install -e .` from the root rsxml directory.
@@ -12,13 +36,7 @@ In order to run the examples you will need to install `rsxml`. If you want that
12
36
13
37
There are two scripts to deploy the package to PyPI:
14
38
15
-
-`build.sh` - builds the package and puts it in `dist/`. This script also does some checking for compliance with PyPI's requirements.
16
-
-`deploy.sh` - Push the package to the PyPI server. This script will prompt you for your PyPI credentials.
39
+
-`build.sh` - builds the package and puts it in `dist/`.
40
+
-`deploy.sh` - Push the package to the PyPI server. This script requires `PYPI_TOKEN` environment variable.
17
41
18
-
In order to run these scripts, you'll need to install some dependencies:
19
-
20
-
```bash
21
-
pip install wheel twine
22
-
# On OSX you'll need to install pandoc. (WINDOWS INSTRUCTIONS PENDING)
23
-
brew install pandoc
24
-
```
42
+
The scripts will automatically install `uv` if it is not present.
0 commit comments