You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move Python virtual environment into venv from root (#1769)
* Move Python virtual environment into venv from root
`--clear` is the recommended way to wipe and recreate a clean virtual environment. `python3 -m venv venv --clear` will purge files and directories, such as `.git` and `.my_special_config`, from the current directory. This would be Very Bad™.
- Enhance `make distclean` such that it cleans both the docs directory and the virtual environment, then recreates the virtual environment and installs requirements into it. This is useful when your project gets confused about what exactly is in your virtual environment
- Update internal Makefile command. No change to user commands.
Credit to @MrTango
* Add to .gitignore
deps: bin/python docs/volto docs/plone.restapi docs/plone.api ## Create Python virtual environment, install requirements, initialize or update the volto, plone.restapi, and plone.api submodules, and finally create symlinks to the source files.
71
+
deps: venv/bin/python docs/volto docs/plone.restapi docs/plone.api ## Create Python virtual environment, install requirements, initialize or update the volto, plone.restapi, and plone.api submodules, and finally create symlinks to the source files.
66
72
67
73
68
74
.PHONY: html
@@ -196,8 +202,8 @@ linkcheckbroken: deps ## Run linkcheck and show only broken links
196
202
197
203
.PHONY: vale
198
204
vale: deps ## Run Vale style, grammar, and spell checks
199
-
bin/vale sync
200
-
bin/vale --no-wrap $(VALEFILES)
205
+
venv/bin/vale sync
206
+
venv/bin/vale --no-wrap$(VALEOPTS)$(VALEFILES)
201
207
@echo
202
208
@echo "Vale is finished; look for any errors in the above output."
0 commit comments