Skip to content

Commit ef2bdaf

Browse files
authored
fix: use python virtual env (#1544)
Signed-off-by: Charles-Edouard Brétéché <[email protected]>
1 parent 70d1569 commit ef2bdaf

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
.gopath/
33
.temp/
44
.tools/
5+
.venv/
56
chainsaw
67
coverage.out
78
website/site

Makefile

+3-7
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,7 @@ codegen-mkdocs: codegen-cli-docs
171171
codegen-mkdocs: codegen-api-docs
172172
codegen-mkdocs: codegen-jp-docs
173173
@echo Generate mkdocs website... >&2
174-
@$(PIP) install mkdocs
175-
@$(PIP) install --upgrade pip
176-
@$(PIP) install -U mkdocs-material mkdocs-redirects mkdocs-minify-plugin mkdocs-include-markdown-plugin lunr mkdocs-rss-plugin mike Pillow cairosvg
174+
@$(PIP) install -r requirements.txt
177175
@mkdocs build -f ./website/mkdocs.yaml
178176

179177
.PHONY: codegen-schemas-openapi
@@ -198,7 +196,7 @@ codegen-schemas-openapi: $(KIND)
198196
codegen-schemas-json: ## Generate json schemas
199197
codegen-schemas-json: codegen-schemas-openapi
200198
@echo Generate json schema... >&2
201-
@$(PIP) install openapi2jsonschema --no-build-isolation
199+
@$(PIP) install -r requirements.txt
202200
@rm -rf ./.temp/.schemas/json
203201
@rm -rf ./.schemas/json
204202
@openapi2jsonschema ./.temp/.schemas/openapi/v2/schema.json --kubernetes --stand-alone --expanded -o ./.temp/.schemas/json
@@ -243,9 +241,7 @@ verify-codegen: codegen
243241
.PHONY: mkdocs-serve
244242
mkdocs-serve: ## Generate and serve mkdocs website
245243
@echo Generate and servemkdocs website... >&2
246-
@$(PIP) install mkdocs
247-
@$(PIP) install --upgrade pip
248-
@$(PIP) install -U mkdocs-material mkdocs-redirects mkdocs-minify-plugin mkdocs-include-markdown-plugin lunr mkdocs-rss-plugin mike Pillow cairosvg
244+
@$(PIP) install -r requirements.txt
249245
@mkdocs serve -f ./website/mkdocs.yaml
250246

251247
#########

requirements.txt

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
cairosvg
2+
lunr
3+
mike
4+
mkdocs
5+
mkdocs-include-markdown-plugin
6+
mkdocs-material
7+
mkdocs-minify-plugin
8+
mkdocs-redirects
9+
mkdocs-rss-plugin
10+
openapi2jsonschema
11+
Pillow

0 commit comments

Comments
 (0)