From 0f8cb1a5edf2e8431c08afaff311ad308b638e11 Mon Sep 17 00:00:00 2001 From: jo Date: Sat, 22 Jan 2022 16:48:32 +0100 Subject: [PATCH] chore: set python build system in pyproject.toml - fix local package install - local packages requirement url format --- analyzer/pyproject.toml | 3 +++ analyzer/setup.py | 4 ++-- api/pyproject.toml | 3 +++ api_client/pyproject.toml | 3 +++ playout/pyproject.toml | 3 +++ playout/setup.py | 4 ++-- shared/pyproject.toml | 3 +++ tools/pyproject.toml | 3 +++ worker/pyproject.toml | 3 +++ 9 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 analyzer/pyproject.toml create mode 100644 api/pyproject.toml create mode 100644 api_client/pyproject.toml create mode 100644 playout/pyproject.toml create mode 100644 shared/pyproject.toml create mode 100644 tools/pyproject.toml create mode 100644 worker/pyproject.toml diff --git a/analyzer/pyproject.toml b/analyzer/pyproject.toml new file mode 100644 index 000000000..9787c3bdf --- /dev/null +++ b/analyzer/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools", "wheel"] +build-backend = "setuptools.build_meta" diff --git a/analyzer/setup.py b/analyzer/setup.py index db46cec42..c50b77282 100644 --- a/analyzer/setup.py +++ b/analyzer/setup.py @@ -38,8 +38,8 @@ setup( extras_require={ "dev": [ "distro", - f"libretime-api-client @ file://localhost/{here.parent / 'api_client'}#egg=libretime_api_client", - f"libretime-shared @ file://localhost/{here.parent / 'shared'}#egg=libretime_shared", + f"libretime-api-client @ file://localhost{here.parent / 'api_client'}", + f"libretime-shared @ file://localhost{here.parent / 'shared'}", ], }, zip_safe=False, diff --git a/api/pyproject.toml b/api/pyproject.toml new file mode 100644 index 000000000..9787c3bdf --- /dev/null +++ b/api/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools", "wheel"] +build-backend = "setuptools.build_meta" diff --git a/api_client/pyproject.toml b/api_client/pyproject.toml new file mode 100644 index 000000000..9787c3bdf --- /dev/null +++ b/api_client/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools", "wheel"] +build-backend = "setuptools.build_meta" diff --git a/playout/pyproject.toml b/playout/pyproject.toml new file mode 100644 index 000000000..9787c3bdf --- /dev/null +++ b/playout/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools", "wheel"] +build-backend = "setuptools.build_meta" diff --git a/playout/setup.py b/playout/setup.py index bb155191c..e8b11aa89 100644 --- a/playout/setup.py +++ b/playout/setup.py @@ -46,8 +46,8 @@ setup( ], extras_require={ "dev": [ - f"libretime-shared @ file://localhost/{here.parent / 'shared'}#egg=libretime_shared", - f"libretime-api-client @ file://localhost/{here.parent / 'api_client'}#egg=libretime_api_client", + f"libretime-api-client @ file://localhost{here.parent / 'api_client'}", + f"libretime-shared @ file://localhost{here.parent / 'shared'}", ], }, zip_safe=False, diff --git a/shared/pyproject.toml b/shared/pyproject.toml new file mode 100644 index 000000000..9787c3bdf --- /dev/null +++ b/shared/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools", "wheel"] +build-backend = "setuptools.build_meta" diff --git a/tools/pyproject.toml b/tools/pyproject.toml new file mode 100644 index 000000000..9787c3bdf --- /dev/null +++ b/tools/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools", "wheel"] +build-backend = "setuptools.build_meta" diff --git a/worker/pyproject.toml b/worker/pyproject.toml new file mode 100644 index 000000000..9787c3bdf --- /dev/null +++ b/worker/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools", "wheel"] +build-backend = "setuptools.build_meta"