Skip to content

Commit

Permalink
Use pyproject.toml in all services
Browse files Browse the repository at this point in the history
- Add tool.setuptools section to avoid this mysterious issue: jazzband/pip-tools#1711
  • Loading branch information
laurigates committed Jun 15, 2023
1 parent d1dbe2e commit 404d865
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 8 deletions.
26 changes: 26 additions & 0 deletions service-deviceregistry/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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']
Expand Down
8 changes: 0 additions & 8 deletions service-deviceregistry/requirements.in

This file was deleted.

4 changes: 4 additions & 0 deletions service-endpoint/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[tool.setuptools]
py-modules = []

[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "mittaridataputki-endpoint"
description = ""
Expand Down
4 changes: 4 additions & 0 deletions service-parser/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[tool.setuptools]
py-modules = []

[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "mittaridataputki-parser"
description = ""
Expand Down

0 comments on commit 404d865

Please sign in to comment.