Skip to content

Commit

Permalink
migration working on vagrant
Browse files Browse the repository at this point in the history
  • Loading branch information
apple committed Apr 16, 2024
1 parent 7922521 commit 30c8eba
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 18 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,6 @@ logs/
static/

# Backup files
*~
*~

data
33 changes: 17 additions & 16 deletions .vagrant_provisioning/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .vagrant_provisioning/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ Fabric3
flake8
ipython
tox
CairoSVG==2.4.2

0 comments on commit 30c8eba

Please sign in to comment.