From 404d8656b3654fbf8ce6d70e2876529fa3d5af92 Mon Sep 17 00:00:00 2001 From: Lauri Gates Date: Thu, 15 Jun 2023 10:28:28 +0300 Subject: [PATCH] Use pyproject.toml in all services - Add tool.setuptools section to avoid this mysterious issue: https://github.com/jazzband/pip-tools/issues/1711 --- service-deviceregistry/pyproject.toml | 26 ++++++++++++++++++++++++++ service-deviceregistry/requirements.in | 8 -------- service-endpoint/pyproject.toml | 4 ++++ service-parser/pyproject.toml | 4 ++++ 4 files changed, 34 insertions(+), 8 deletions(-) delete mode 100644 service-deviceregistry/requirements.in diff --git a/service-deviceregistry/pyproject.toml b/service-deviceregistry/pyproject.toml index d30c08e..f366296 100644 --- a/service-deviceregistry/pyproject.toml +++ b/service-deviceregistry/pyproject.toml @@ -1,3 +1,29 @@ +[tool.setuptools] +py-modules = [] + +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[project] +name = "mittaridataputki-deviceregistry" +description = "" +readme = "README.md" +requires-python = ">=3.9" +dynamic = ["version"] + +dependencies = [ + "django-environ", + "Django == 4.2.1, < 5.0", + "Pillow", + "django-rest-framework", + "psycopg2-binary", + "pytest", + "pytest-django", + "sqlparse", + "unittest-parametrize", +] + [tool.black] line-length = 120 target-version = ['py39', 'py310', 'py311'] diff --git a/service-deviceregistry/requirements.in b/service-deviceregistry/requirements.in deleted file mode 100644 index e816dd4..0000000 --- a/service-deviceregistry/requirements.in +++ /dev/null @@ -1,8 +0,0 @@ -Django>=4.2.1,<5.0 -Pillow -django-rest-framework -psycopg2-binary -pytest -pytest-django -sqlparse -unittest-parametrize diff --git a/service-endpoint/pyproject.toml b/service-endpoint/pyproject.toml index 2e5dde4..48860c2 100644 --- a/service-endpoint/pyproject.toml +++ b/service-endpoint/pyproject.toml @@ -1,6 +1,10 @@ [tool.setuptools] py-modules = [] +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + [project] name = "mittaridataputki-endpoint" description = "" diff --git a/service-parser/pyproject.toml b/service-parser/pyproject.toml index ad834c3..df24142 100644 --- a/service-parser/pyproject.toml +++ b/service-parser/pyproject.toml @@ -1,6 +1,10 @@ [tool.setuptools] py-modules = [] +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + [project] name = "mittaridataputki-parser" description = ""