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 include ../tools/python.mk
PIP_INSTALL := --editable .[dev] PIP_INSTALL := \
--editable ../shared \
--editable .[dev]
PYLINT_ARG := libretime_analyzer tests || true PYLINT_ARG := libretime_analyzer tests || true
MYPY_ARG := libretime_analyzer tests || true MYPY_ARG := libretime_analyzer tests || true
BANDIT_ARG := libretime_analyzer || true BANDIT_ARG := libretime_analyzer || true

View File

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

View File

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

View File

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

View File

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

View File

@ -50,7 +50,6 @@ setup(
"pylint-django", "pylint-django",
"pytest-django", "pytest-django",
"requests-mock", "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 include ../tools/python.mk
PIP_INSTALL := --editable .[dev] PIP_INSTALL := \
--editable ../api-client \
--editable ../shared \
--editable .[dev]
PYLINT_ARG := libretime_playout tests || true PYLINT_ARG := libretime_playout tests || true
MYPY_ARG := libretime_playout tests || true MYPY_ARG := libretime_playout tests || true
BANDIT_ARG := libretime_playout || true BANDIT_ARG := libretime_playout || true

View File

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

View File

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

View File

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

View File

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