Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
env:
working-directory: ./backend
poetry-version: "1.3.2"
poetry-version: "2.5.1"
strategy:
fail-fast: false
matrix:
Expand All @@ -36,7 +36,7 @@ jobs:
working-directory: ${{ env.working-directory }}

- name: Install dependencies
run: poetry install --no-interaction
run: poetry sync --no-interaction

- name: Lint (flake8)
run: poetry run pre-commit run flake8 --all-files --show-diff-on-failure
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
env:
BACKEND_DIR: ./backend
python-version: "3.10"
poetry-version: "1.3.2"
poetry-version: "2.5.1"
steps:
- uses: actions/checkout@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ WORKDIR /app

COPY ./backend/pyproject.toml ./backend/poetry.lock /app/
ENV PIP_NO_CACHE_DIR=1
RUN pip install poetry==1.8.5 && \
RUN pip install poetry==2.5.1 && \
python -m venv --copies /app/venv && \
. /app/venv/bin/activate && \
poetry install --without=dev --no-interaction
poetry sync --without=dev --no-interaction

FROM python:3.10-slim AS prod

Expand Down
2 changes: 1 addition & 1 deletion backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ helm upgrade --install --values helm-chart/values.yaml streams-explorer streams-
1. Install dependencies using [Poetry](https://python-poetry.org)

```sh
poetry install
poetry sync
```

2. Forward the ports to Prometheus. (Kafka Connect, Schema Registry, and other integrations are optional)
Expand Down
18 changes: 9 additions & 9 deletions backend/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

75 changes: 38 additions & 37 deletions backend/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
[tool.poetry]
[project]
name = "streams-explorer"
version = "2.4.2"
description = "Explore Data Pipelines in Apache Kafka."
readme = "README.md"
authors = ["bakdata"]
repository = "https://github.com/bakdata/streams-explorer"
authors = [{ name = "bakdata" }]
license = "MIT"
keywords = ["kafka", "kubernetes", "stream-processing", "monitoring", "pipelines"]
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
Expand All @@ -19,43 +17,46 @@ classifiers = [
"Intended Audience :: Developers",
"Typing :: Typed",
]
requires-python = ">=3.10,<4.0"
dependencies = [
"loguru>=0.5.3,<0.6.0",
"matplotlib>=3.4.3,<4.0.0",
"networkx>=2.6.3,<3.0.0",
"dynaconf>=3.1.7,<4.0.0",
"httpx>=0.23.1,<0.24.0",
"pydantic>=1.9.1,<2.0.0",
"fastapi-utils>=0.2.1,<0.3.0",
"fastapi>=0.103.1,<0.104.0",
"uvicorn[standard]>=0.20.0,<0.21.0",
"pygraphviz>=1.10,<2.0",
"confluent-kafka==2.4.0",
"cachetools>=4.2.2,<5.0.0",
"kubernetes-asyncio>=32.0.0,<33.0.0",
]

[tool.poetry.urls]
[project.urls]
Repository = "https://github.com/bakdata/streams-explorer"
"Bug Tracker" = "https://github.com/bakdata/streams-explorer/issues"

[tool.poetry.dependencies]
python = "^3.10"
loguru = "^0.5.3"
matplotlib = "^3.4.3"
networkx = "^2.6.3"
dynaconf = "^3.1.7"
httpx = "^0.23.1"
pydantic = "^1.9.1"
fastapi-utils = "^0.2.1"
fastapi = "^0.103.1"
uvicorn = { extras = ["standard"], version = "^0.20.0" }
pygraphviz = "^1.10"
confluent-kafka = "2.4.0"
cachetools = "^4.2.2"
kubernetes-asyncio = "^32.0.0"

[tool.poetry.group.dev.dependencies]
mypy = "^0.981"
flake8 = "^4.0.1"
black = "^22.6.0"
isort = "^5.12.0"
pytest = "^7.2.0"
pre-commit = "^2.15.0"
pytest-asyncio = "^0.20.1"
pytest-clarity = "^1.0.1"
pytest-cov = "^4.0.0"
pytest-mock = "^3.6.1"
respx = "^0.20.1"
requests = "^2.27.1"

[tool.poetry.scripts]
[project.scripts]
start = "main:start"

[dependency-groups]
dev = [
"mypy>=0.981,<0.982",
"flake8>=4.0.1,<5.0.0",
"black>=22.6.0,<23.0.0",
"isort>=5.12.0,<6.0.0",
"pytest>=7.2.0,<8.0.0",
"pre-commit>=2.15.0,<3.0.0",
"pytest-asyncio>=0.20.1,<0.21.0",
"pytest-clarity>=1.0.1,<2.0.0",
"pytest-cov>=4.0.0,<5.0.0",
"pytest-mock>=3.6.1,<4.0.0",
"respx>=0.20.1,<0.21.0",
"requests>=2.27.1,<3.0.0",
]

[build-system]
requires = ["poetry-core>=1.0.0"]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"
Loading