1
1
include:
2
2
- nginx
3
3
4
+ deadsnakes-ppa :
5
+ pkgrepo.managed :
6
+ - ppa: fkrull/deadsnakes
7
+
4
8
5
9
# Various packages required for building documentation.
6
10
doc-pkgs :
@@ -10,14 +14,16 @@ doc-pkgs:
10
14
- git
11
15
- mercurial
12
16
- python-dev
13
- - python3-dev
17
+ - python3.6 -dev
14
18
- python-virtualenv
15
19
- texlive
16
20
- texlive-latex-extra
17
21
- texlive-latex-recommended
18
22
- texlive-fonts-recommended
19
23
- texlive-lang-all
20
24
- zip
25
+ - require:
26
+ - pkgrepo: deadsnakes-ppa
21
27
22
28
docsbuild:
23
29
user.present :
@@ -46,17 +52,40 @@ docsbuild-scripts:
46
52
# Theses are needed to build C extensions.
47
53
- pkg: doc-pkgs
48
54
49
- / srv/docsbuild/venv/ :
50
- virtualenv.managed :
55
+ py36-virtualenv :
56
+ cmd.run :
51
57
- user: docsbuild
52
- - no_deps: True
53
- - python: python3
54
- - requirements: /srv/docsbuild/scripts/requirements.txt
58
+ - name: ' python3.6 -m venv --without-pip /srv/docsbuild/venv'
59
+ - creates: /srv/docsbuild/venv/bin/python
55
60
- require:
56
- - git: docsbuild-scripts
57
- # Theses are needed to build C extensions.
58
61
- pkg: doc-pkgs
59
62
63
+ /srv/docsbuild/venv/get-pip.py :
64
+ file.managed :
65
+ - user: docsbuild
66
+ - source: https://bootstrap.pypa.io/get-pip.py
67
+ - source_hash: sha256=19dae841a150c86e2a09d475b5eb0602861f2a5b7761ec268049a662dbd2bd0c
68
+ - require:
69
+ - cmd: py36-virtualenv
70
+
71
+ py36-virtualenv-pip :
72
+ cmd.run :
73
+ - user: docsbuild
74
+ - name: /srv/docsbuild/venv/bin/python /srv/docsbuild/venv/get-pip.py
75
+ - creates: /srv/docsbuild/venv/bin/pip
76
+ - require:
77
+ - file: /srv/docsbuild/venv/get-pip.py
78
+
79
+ py36-virtualenv-dependencies :
80
+ cmd.run :
81
+ - user: docsbuild
82
+ - cwd: /srv/docsbuild/scripts
83
+ - name: /srv/docsbuild/venv/bin/pip install -r /srv/docsbuild/scripts/requirements.txt
84
+ - require:
85
+ - cmd: py36-virtualenv-pip
86
+ - onchanges:
87
+ - git: docsbuild-scripts
88
+
60
89
docsbuild-full :
61
90
cron.present :
62
91
- identifier: docsbuild-full
0 commit comments