From 30c8eba5e710478f73d805351158de057f2c5b7b Mon Sep 17 00:00:00 2001 From: apple Date: Tue, 16 Apr 2024 13:06:42 +0100 Subject: [PATCH] migration working on vagrant --- .gitignore | 4 +++- .vagrant_provisioning/playbook.yml | 33 +++++++++++++++--------------- .vagrant_provisioning/vars.yml | 2 +- requirements-dev.txt | 1 + 4 files changed, 22 insertions(+), 18 deletions(-) diff --git a/.gitignore b/.gitignore index 918d4fd..9447d4f 100644 --- a/.gitignore +++ b/.gitignore @@ -65,4 +65,6 @@ logs/ static/ # Backup files -*~ \ No newline at end of file +*~ + +data \ No newline at end of file diff --git a/.vagrant_provisioning/playbook.yml b/.vagrant_provisioning/playbook.yml index 81482b3..e0b3b7b 100644 --- a/.vagrant_provisioning/playbook.yml +++ b/.vagrant_provisioning/playbook.yml @@ -99,31 +99,32 @@ path: /usr/bin/python3 priority: 10 - - name: pip | install virtualenv - become: yes - pip: - name: virtualenv - state: latest - tags: - - python + # - name: pip | install virtualenv + # become: yes + # pip: + # name: virtualenv==20.0.9 + # state: present + # tags: + # - python - name: pip | setup virtualenv file: path={{ python.virtualenv_location }} state=directory - - command: virtualenv {{ python.virtualenv_location }} + # - command: virtualenv {{ python.virtualenv_location }} + - command: python -m venv {{ python.virtualenv_location }} tags: - python - - name: pip | update setuptools - pip: - name: setuptools - virtualenv: "{{ python.virtualenv_location }}" - state: latest - tags: - - python + # - name: pip | update setuptools + # pip: + # name: setuptools + # virtualenv: "{{ python.virtualenv_location }}" + # state: latest + # tags: + # - python - name: pip | update pip pip: - name: pip + name: "pip>=20,<21" virtualenv: "{{ python.virtualenv_location }}" state: latest tags: diff --git a/.vagrant_provisioning/vars.yml b/.vagrant_provisioning/vars.yml index 0d86dc8..a7cd2bc 100644 --- a/.vagrant_provisioning/vars.yml +++ b/.vagrant_provisioning/vars.yml @@ -9,6 +9,6 @@ python: {requirements: requirements-dev.txt, virtualenv_location: /home/vagrant/ system_packages: [ack-grep, adminer, aptitude, binutils, elasticsearch, gdal-bin, git, git-core, libcairo2, libffi-dev, libgdal-dev, libgdk-pixbuf2.0-0, libjpeg-dev, libldap2-dev, libpango-1.0-0, libpangocairo-1.0-0, libproj-dev, libsasl2-dev, libssl-dev, libxml2-dev, libxslt-dev, nfs-common, open-vm-tools, openjdk-8-jre, postgis, postgresql, postgresql-client, postgresql-server-dev-all, python3-cffi, python3-dev, python3-gdal, - python3-pip, python3-psycopg2, python3-setuptools, shared-mime-info, vim-nox, zsh] + python3-pip, python3-psycopg2, python3-setuptools, python3-venv, shared-mime-info, vim-nox, zsh] user_home: /home/vagrant zsh: {oh_my_zsh: 'https://github.com/robbyrussell/oh-my-zsh.git', zshrc: zshrc} diff --git a/requirements-dev.txt b/requirements-dev.txt index 849d89c..baf3c1c 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -4,3 +4,4 @@ Fabric3 flake8 ipython tox +CairoSVG==2.4.2 \ No newline at end of file