chore: install local python deps in editable mode
This commit is contained in:
parent
e97b06496a
commit
b93e1e5570
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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",
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue