Skip to content

Commit 0b20ed0

Browse files
committed
chore: update contribution guide for using UV
1 parent 0bc6957 commit 0b20ed0

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

CONTRIBUTING.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
# Development guide
22

3-
You will need to have Python 3 and Charmcraft installed.
3+
You will need to have Python 3, Charmcraft and [uv](https://docs.astral.sh/uv/) installed.
44
```
55
sudo snap install charmcraft --classic
6+
sudo snap install astral-uv --classic
67
```
78

89
## Setting up the environment
910

1011
Create and activate a virtualenv with the development requirements:
1112

12-
virtualenv -p python3 venv
13-
source venv/bin/activate
14-
pip install -r requirements-dev.txt
13+
```
14+
uv venv
15+
source .venv/bin/activate
16+
uv pip install ".[dev]"
17+
```
1518

1619
## Testing
1720

@@ -80,4 +83,4 @@ You can also do the upload and release in a single step if you'd like:
8083
$ charmcraft upload *.charm --name juju-controller --release latest/stable --release 3.0/stable
8184
Revision [XX] of 'juju-controller' created
8285
Revision [XX] of charm 'juju-controller' released to latest/stable, 3.0/stable
83-
```
86+
```

0 commit comments

Comments
 (0)