@@ -38,7 +38,7 @@ There are several ways to install Argus.
3838
3939* Python 3.10+
4040* Django 5.2
41- * pip
41+ * [ uv ] ( https://docs.astral.sh/uv/ )
4242* PostgreSQL 14+
4343
4444#### Optional requirements
@@ -76,10 +76,10 @@ the release was tested on. The file `constraints.txt` is for controlling
7676versions of sub-dependencies so as to not poison the pyproject.toml. The wheel
7777package does not contain either of these two files.
7878
79- To install from the lock-file use pip :
79+ To install from the lock-file use uv :
8080
8181``` console
82- $ pip install -c constraints.txt --upgrade -r requirements.txt
82+ $ uv pip install -c constraints.txt --upgrade -r requirements.txt
8383```
8484
8585### First run
@@ -110,7 +110,7 @@ $ python manage.py runserver
110110To update the dependency lock-files, use ` tox ` :
111111
112112``` console
113- $ pip install " tox>=4"
113+ $ uv pip install " tox>=4" tox-uv
114114$ tox run -e upgrade-deps -- -U
115115```
116116
@@ -171,39 +171,34 @@ $ git clone https://github.com/Uninett/Argus.git
171171$ cd Argus
172172```
173173
174- We recommend using virtualenv or virtualenvwrapper to create
175- a place to stash Argus' dependencies.
176-
177174Create and activate a Python virtual environment.
178175``` console
179- $ python -m venv venv
180- $ source venv/bin/activate
176+ $ uv venv
177+ $ source . venv/bin/activate
181178```
182179
183180Install Argus' requirements into the virtual env.
184181``` console
185- $ pip install -r requirements-django52.txt
186- $ pip install -r requirements/dev.txt
182+ $ uv pip install -r requirements-django52.txt
183+ $ uv pip install -r requirements/dev.txt
187184```
188185
189186### Step 2: Setting environment variables and Django settings
190187
191- Copy the ` cmd.sh- template` to ` cmd.sh ` and make it executable
188+ Copy ` .env. template` to ` .env ` and fill in the values.
192189``` console
193- $ cp cmd.sh-template cmd.sh
194- $ chmod u+x cmd.sh
190+ $ cp .env.template .env
195191```
196- Now set the environment variables in the file using an editor.
197192
198- Required settings in ` cmd.sh ` are
193+ Required settings in ` .env ` are
199194
200195- ` DATABASE_URL ` ,
201196- ` DJANGO_SETTINGS_MODULE ` and
202197- ` SECRET_KEY ` .
203198
204199` DJANGO_SETTINGS_MODULE ` can be set to ` argus.site.settings.dev ` .
205200
206- If you need more complex settings than environment variables and `` cmd.sh `` can provide,
201+ If you need more complex settings than environment variables can provide,
207202we recommend having a ` localsettings.py ` in the same directory as ` manage.py ` with any
208203overrides.
209204
@@ -217,10 +212,10 @@ See https://argus-server.readthedocs.io/en/latest/reference/htmx-frontend.html.
217212
218213### Step 3: Run Argus in development
219214
220- Afterwards, run the initial Argus setup and start the server.
215+ ` uv run` automatically loads the ` .env ` file. Run the initial Argus setup and start the server.
221216``` console
222- $ python manage.py initial_setup
223- $ python manage.py runserver
217+ $ uv run manage.py initial_setup
218+ $ uv run manage.py runserver
224219```
225220
226221You will find Argus running at http://localhost:8000/ .
0 commit comments