chore: install local python deps in editable mode

This commit is contained in:
jo 2022-07-27 12:44:18 +02:00 committed by Kyle Robbertze
parent e97b06496a
commit b93e1e5570
11 changed files with 17 additions and 14 deletions

View File

@ -2,7 +2,9 @@ all: lint test
include ../tools/python.mk
PIP_INSTALL := --editable .[dev]
PIP_INSTALL := \
--editable ../shared \
--editable .[dev]
PYLINT_ARG := libretime_analyzer tests || true
MYPY_ARG := libretime_analyzer tests || true
BANDIT_ARG := libretime_analyzer || true

View File

@ -36,7 +36,6 @@ setup(
"dev": [
"distro",
"types-requests",
f"libretime-shared @ file://localhost{here.parent / 'shared'}",
],
},
zip_safe=False,

View File

@ -2,7 +2,9 @@ all: lint test
include ../tools/python.mk
PIP_INSTALL := --editable .[dev]
PIP_INSTALL := \
--editable ../shared \
--editable .[dev]
PYLINT_ARG := libretime_api_client tests || true
MYPY_ARG := libretime_api_client tests || true
BANDIT_ARG := libretime_api_client || true

View File

@ -29,7 +29,6 @@ setup(
"dev": [
"requests-mock",
"types-requests",
f"libretime-shared @ file://localhost{here.parent / 'shared'}",
],
},
zip_safe=False,

View File

@ -2,7 +2,9 @@ all: lint
include ../tools/python.mk
PIP_INSTALL := --editable .[dev]
PIP_INSTALL := \
--editable ../shared \
--editable .[dev]
PYLINT_ARG := libretime_api
MYPY_ARG := libretime_api
BANDIT_ARG := --exclude '*/tests/*' libretime_api || true

View File

@ -50,7 +50,6 @@ setup(
"pylint-django",
"pytest-django",
"requests-mock",
f"libretime-shared @ file://localhost/{here.parent / 'shared'}#egg=libretime_shared",
],
},
)

View File

@ -2,7 +2,10 @@ all: lint
include ../tools/python.mk
PIP_INSTALL := --editable .[dev]
PIP_INSTALL := \
--editable ../api-client \
--editable ../shared \
--editable .[dev]
PYLINT_ARG := libretime_playout tests || true
MYPY_ARG := libretime_playout tests || true
BANDIT_ARG := libretime_playout || true

View File

@ -41,8 +41,6 @@ setup(
"dev": [
"distro",
"requests-mock",
f"libretime-api-client @ file://localhost{here.parent / 'api-client'}",
f"libretime-shared @ file://localhost{here.parent / 'shared'}",
],
},
zip_safe=False,

View File

@ -31,7 +31,6 @@ install: $(VENV)
source $(VENV)/bin/activate
pip install --upgrade pip setuptools wheel
pip install $(SHARED_DEV_REQUIREMENTS)
pip cache remove 'libretime_*'
[[ -z "$(PIP_INSTALL)" ]] || pip install $(PIP_INSTALL)
.PHONY: .format

View File

@ -2,7 +2,9 @@ all: lint
include ../tools/python.mk
PIP_INSTALL := --editable .[dev]
PIP_INSTALL := \
--editable ../shared \
--editable .[dev]
PYLINT_ARG := libretime_worker || true
MYPY_ARG := libretime_worker || true
BANDIT_ARG := libretime_worker || true

View File

@ -28,9 +28,7 @@ setup(
"requests>=2.25.1,<2.29",
],
extras_require={
"dev": [
f"libretime-shared @ file://localhost{here.parent / 'shared'}",
],
"dev": [],
},
zip_safe=False,
)