Browse Source

Fix the Boussole watcher not working by freezing its requirements file to where it does still work.

merge-requests/163/head
Bauke 2 months ago
parent
commit
08810b24c1
  1. 18
      ansible/roles/boussole/files/requirements.txt
  2. 12
      ansible/roles/boussole/tasks/main.yml

18
ansible/roles/boussole/files/requirements.txt

@ -0,0 +1,18 @@
# Freeze Boussole otherwise the watcher doesn't work
# https://github.com/sveetch/boussole/issues/48
# Frozen requirement versions from '2.1.2' installation
boussole==2.1.2
click==8.1.7
colorama==0.4.6
colorlog==6.7.0
flake8==6.1.0
libsass==0.22.0
livereload==2.6.3
pyaml==23.9.5
pytest==7.4.2
Sphinx==7.2.5
sphinx-rtd-theme==1.3.0
tox==4.11.3
twine==4.0.2
watchdog==3.0.0

12
ansible/roles/boussole/tasks/main.yml

@ -1,9 +1,17 @@
---
- name: Create venv and install boussole with pip
- name: Create boussole requirements.txt file
copy:
src: "requirements.txt"
dest: "{{ boussole_venv_dir }}/requirements.txt"
owner: "{{ app_username }}"
group: "{{ app_username }}"
mode: 0644
- name: Create boussole venv and install packages
pip:
virtualenv: "{{ boussole_venv_dir }}"
virtualenv_command: python{{ python_version }} -m venv
name: boussole
requirements: "{{ boussole_venv_dir }}/requirements.txt"
- name: Create systemd service file
template:

Loading…
Cancel
Save