diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-02-08 12:20:01 +0100 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-02-08 12:20:01 +0100 |
commit | 09daaa102526904748ef81594bd20f2a2f5bf3cf (patch) | |
tree | 8957a39b090bc7a2110bfa10e16d1509cd0ac578 | |
parent | Makefile: use docker-compose for make build (diff) | |
download | cgitize-09daaa102526904748ef81594bd20f2a2f5bf3cf.tar.gz cgitize-09daaa102526904748ef81594bd20f2a2f5bf3cf.zip |
Makefile: update recipe names
-rw-r--r-- | Makefile | 10 | ||||
-rw-r--r-- | README.md | 14 |
2 files changed, 19 insertions, 5 deletions
@@ -99,19 +99,19 @@ buildx/push: venv_dir := .venv -.PHONY: venv-reset -venv-reset: +.PHONY: venv/reset +venv/reset: rm -rf -- '$(call escape,$(venv_dir))' mkdir -p -- '$(call escape,$(venv_dir))' python -m venv -- '$(call escape,$(venv_dir))' .PHONY: venv -venv: venv-reset +venv: venv/reset . '$(call escape,$(venv_dir))/bin/activate' && pip install -r requirements.txt # Is there a better way? -.PHONY: venv-update -venv-update: venv-reset +.PHONY: venv/upgrade +venv/upgrade: venv/reset . '$(call escape,$(venv_dir))/bin/activate' \ && pip install . \ && pip uninstall --yes "$$( python setup.py --name )" \ @@ -51,6 +51,20 @@ Update the URL of an existing repository mirror: Development ----------- +### Virtual environment + +Create a virtual environment: + + make venv + +Load a REPL: + + make repl + +Upgrade virtual environment packages (this will also update requirements.txt): + + make venv/upgrade + ### Linting Requires [Pylint]. |