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: docs/integration_tests.md
+8-30Lines changed: 8 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -31,10 +31,12 @@ The documentation describes what we do to have one, using [Synapse](https://gith
31
31
32
32
Steps:
33
33
34
-
- Install virtualenv
34
+
- Install poetry
35
35
36
36
```bash
37
-
python3 -m pip install virtualenv
37
+
pip install --user pipx
38
+
pipx install poetry
39
+
python3 -m pipx ensurepath # To run if `pipx install poetry` complained about PATH not being correctly set
38
40
```
39
41
40
42
- Clone Synapse repository
@@ -52,11 +54,8 @@ You should have the develop branch cloned by default.
52
54
- Run synapse, from the Synapse folder you just cloned
53
55
54
56
```bash
55
-
virtualenv -p python3 env
56
-
source env/bin/activate
57
-
pip install -e .
58
-
demo/start.sh --no-rate-limit
59
-
57
+
poetry install --extras all
58
+
poetry run ./demo/start.sh --no-rate-limit
60
59
```
61
60
62
61
Alternatively, to install the latest Synapse release package (and not a cloned branch) you can run the following instead of `git clone` and `pip install -e .`:
@@ -86,13 +85,7 @@ It can be done using this command:
86
85
To stop Synapse, you can run the following commands:
87
86
88
87
```bash
89
-
./demo/stop.sh
90
-
```
91
-
92
-
And you can deactivate the virtualenv:
93
-
94
-
```bash
95
-
deactivate
88
+
poetry run ./demo/stop.sh
96
89
```
97
90
98
91
## Troubleshoot
@@ -113,19 +106,4 @@ Ensure you have the following configuration in `demo/etc/8080.config`.
113
106
public_baseurl: http://10.0.2.2:8080/
114
107
```
115
108
116
-
After changing this you will need to restart synapse using `demo/stop.sh` and `demo/start.sh` to load the new configuration.
117
-
118
-
### virtualenv command fails
119
-
120
-
You can try using
121
-
```bash
122
-
python3 -m venv env
123
-
```
124
-
or
125
-
```bash
126
-
python3 -m virtualenv env
127
-
```
128
-
instead of
129
-
```bash
130
-
virtualenv -p python3 env
131
-
```
109
+
After changing this you will need to restart synapse using `poetry run demo/stop.sh` and `poetry run demo/start.sh` to load the new configuration.
0 commit comments