[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v5 25/25] python: add 'make develop' target
From: |
John Snow |
Subject: |
[PATCH v5 25/25] python: add 'make develop' target |
Date: |
Thu, 18 Feb 2021 14:27:33 -0500 |
Add a shortcut that canonizes the runes needed to get both the
linting pre-requisites (the "[devel]" part), and the editable
live-install (the "-e" part) of these python libraries.
Signed-off-by: John Snow <jsnow@redhat.com>
---
python/Makefile | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/python/Makefile b/python/Makefile
index 47940846400..2699b77b072 100644
--- a/python/Makefile
+++ b/python/Makefile
@@ -1,4 +1,4 @@
-.PHONY: help venv venv-check check clean distclean
+.PHONY: help venv venv-check check clean distclean develop
help:
@echo "python packaging help:"
@@ -11,8 +11,10 @@ help:
@echo "make venv-check: run linters using pipenv's virtual environment."
@echo " Hint: If you don't know which test to run, run this one!"
@echo ""
+ @echo "make develop: Install deps for 'make check', and"
+ @echo " the qemu libs in editable/development mode."
+ @echo ""
@echo "make check: run linters using the current environment."
- @echo " Hint: Install deps with: 'pip install \".[devel]\"'"
@echo ""
@echo "make clean: remove build output."
@echo ""
@@ -27,6 +29,9 @@ venv: .venv
venv-check: venv
@pipenv run make check
+develop:
+ pip3 install -e .[devel]
+
check:
@pytest
--
2.29.2
- [PATCH v5 14/25] python: Add flake8 to pipenv, (continued)
- [PATCH v5 14/25] python: Add flake8 to pipenv, John Snow, 2021/02/18
- [PATCH v5 15/25] python: move mypy.ini into setup.cfg, John Snow, 2021/02/18
- [PATCH v5 16/25] python: add mypy to pipenv, John Snow, 2021/02/18
- [PATCH v5 17/25] python: move .isort.cfg into setup.cfg, John Snow, 2021/02/18
- [PATCH v5 18/25] python/qemu: add isort to pipenv, John Snow, 2021/02/18
- [PATCH v5 19/25] python/qemu: add qemu package itself to pipenv, John Snow, 2021/02/18
- [PATCH v5 21/25] python: add pytest and tests, John Snow, 2021/02/18
- [PATCH v5 24/25] gitlab: add python linters to CI, John Snow, 2021/02/18
- [PATCH v5 22/25] python: add Makefile for some common tasks, John Snow, 2021/02/18
- [PATCH v5 20/25] python: add devel package requirements to setuptools, John Snow, 2021/02/18
- [PATCH v5 25/25] python: add 'make develop' target,
John Snow <=
- [PATCH v5 23/25] python: add .gitignore, John Snow, 2021/02/18