Skip to content

Commit f66250e

Browse files
chore: update dependencies (#97)
### Chores - Update dependencies - Let dependabot update docker, github-actions and uv - Replace update uv.lock workflow with dependabot CI
1 parent 85bf96c commit f66250e

File tree

8 files changed

+402
-309
lines changed

8 files changed

+402
-309
lines changed

.dockerignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
!/src/
66
!pyproject.toml
77
!uv.lock
8-
!LICENSE
8+
!LICENSE

.github/dependabot.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
1+
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/optimizing-pr-creation-version-updates#setting-up-a-cooldown-period-for-dependency-updates
2+
13
version: 2
24
updates:
3-
- package-ecosystem: "pip"
5+
- package-ecosystem: "docker"
6+
directory: "/"
7+
schedule:
8+
interval: "weekly"
9+
- package-ecosystem: "github-actions"
10+
directory: "/"
11+
schedule:
12+
interval: "weekly"
13+
groups: # https://docs.github.com/en/code-security/dependabot/working-with-dependabot/dependabot-options-reference#groups--
14+
actions:
15+
patterns: ["*"] # Combine all images of last week
16+
- package-ecosystem: "uv"
417
directory: "/"
518
schedule:
619
interval: "daily"

.github/workflows/ci.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
env:
1212
CI: true
1313
COLUMNS: 120
14+
PYTHON_VERSION: "3.13"
1415

1516
permissions:
1617
contents: read
@@ -23,7 +24,7 @@ jobs:
2324

2425
- uses: astral-sh/setup-uv@0c5e2b8115b80b4c7c5ddf6ffdd634974642d182 # v5.4.1
2526
with:
26-
python-version: "3.12"
27+
python-version: ${{ env.PYTHON_VERSION }}
2728

2829
- name: Install dependencies
2930
run: uv sync --frozen --all-extras --all-packages
@@ -44,7 +45,7 @@ jobs:
4445

4546
- uses: astral-sh/setup-uv@0c5e2b8115b80b4c7c5ddf6ffdd634974642d182 # v5.4.1
4647
with:
47-
python-version: "3.12"
48+
python-version: ${{ env.PYTHON_VERSION }}
4849

4950
- name: Install dependencies
5051
run: uv sync --frozen --all-extras --all-packages
@@ -94,7 +95,7 @@ jobs:
9495

9596
- uses: astral-sh/setup-uv@0c5e2b8115b80b4c7c5ddf6ffdd634974642d182 # v5.4.1
9697
with:
97-
python-version: "3.12"
98+
python-version: ${{ env.PYTHON_VERSION }}
9899

99100
- run: uv sync --frozen
100101
- run: uv run --frozen coverage combine coverage
@@ -134,7 +135,7 @@ jobs:
134135

135136
- uses: astral-sh/setup-uv@0c5e2b8115b80b4c7c5ddf6ffdd634974642d182 # v5.4.1
136137
with:
137-
python-version: "3.12"
138+
python-version: ${{ env.PYTHON_VERSION }}
138139

139140
- name: check GITHUB_REF matches package version
140141
uses: samuelcolvin/check-python-version@758a13b52c26833cffda0f2ed4f3c9e54d9186d9 # v4.1

.github/workflows/dependabot.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Dependabot Automation
2+
on: pull_request
3+
4+
permissions:
5+
contents: write
6+
pull-requests: write
7+
8+
jobs:
9+
automerge:
10+
runs-on: ubuntu-latest
11+
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'sparfenyuk/mcp-proxy'
12+
steps:
13+
- name: Fetch metadata
14+
id: metadata
15+
uses: dependabot/fetch-metadata@v2
16+
with:
17+
github-token: "${{ secrets.GITHUB_TOKEN }}"
18+
- name: Auto-merge Patch PRs
19+
if: steps.metadata.outputs.update-type == 'version-update:semver-patch'
20+
run: gh pr merge --auto --merge "$PR_URL"
21+
env:
22+
PR_URL: ${{github.event.pull_request.html_url}}
23+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/update-uv-lock.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build stage with explicit platform specification
2-
FROM ghcr.io/astral-sh/uv:python3.12-alpine AS uv
2+
FROM ghcr.io/astral-sh/uv:python3.13-alpine AS uv
33

44
# Install the project into /app
55
WORKDIR /app
@@ -25,7 +25,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \
2525
RUN apk add --update --no-cache catatonit
2626

2727
# Final stage with explicit platform specification
28-
FROM python:3.12-alpine
28+
FROM python:3.13-alpine
2929

3030
COPY --from=uv --chown=app:app /app/.venv /app/.venv
3131
COPY --from=uv /usr/bin/catatonit /usr/bin/

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ classifiers = [
2727
]
2828
version = "0.8.2"
2929
requires-python = ">=3.10"
30-
dependencies = ["mcp>=1.8.0,<2.0.0", "uvicorn>=0.34.0"]
30+
dependencies = ["mcp==1.9.4", "uvicorn>=0.34.0"]
3131

3232
[build-system]
3333
requires = ["setuptools"]

uv.lock

Lines changed: 356 additions & 276 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)